.book-content-card.book-article {
  padding: clamp(24px, 2.4vw, 30px) clamp(18px, 2.8vw, 34px);
}

.book-article {
  padding: clamp(6px, 0.8vw, 10px);
}

.book-article .section + .section {
  margin-top: clamp(28px, 3vw, 34px);
  padding-top: clamp(28px, 3vw, 34px);
  border-top: 1px solid rgba(111, 129, 156, 0.14);
}

.section {
  display: grid;
  gap: clamp(16px, 1.7vw, 18px);
}

.section h2,
.section h3,
.section h4 {
  font-weight: 760;
  line-height: 1.22;
}

.section h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.section h3 {
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
}

.section h4 {
  font-size: 1rem;
}

.section p,
.section li,
.section td,
.section th,
.section blockquote {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.section strong,
.section th,
.section td strong,
.callout strong,
.prompt-inline-header h3 {
  color: var(--text);
}

.callout,
.prompt-inline-section,
blockquote,
.table-wrap,
.steps,
.feature-list,
.card-grid,
.faq-list {
  border-radius: var(--radius);
}

.callout,
.prompt-inline-section,
.table-wrap,
.steps,
.card-grid {
  padding: clamp(18px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(111, 129, 156, 0.14);
  background: rgba(255, 255, 255, 0.62);
}

.callout {
  display: grid;
  gap: 10px;
}

.callout strong,
.prompt-inline-num {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

blockquote {
  padding: clamp(18px, 1.9vw, 20px) clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(31, 103, 242, 0.12);
  background: linear-gradient(180deg, rgba(31, 103, 242, 0.08), rgba(31, 103, 242, 0.03));
  font-size: 1.02rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
 td {
  padding: clamp(12px, 1.5vw, 14px) clamp(12px, 1.7vw, 16px);
  border-bottom: 1px solid rgba(111, 129, 156, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.feature-list li {
  padding-left: 6px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(31, 103, 242, 0.14), rgba(31, 103, 242, 0.08));
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 800;
}

.prompt-inline-section {
  display: grid;
  gap: 16px;
}

.prompt-inline-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.prompt-inline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
}

.prompt-inline-header h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.prompt-inline-section pre,
pre {
  overflow-x: auto;
  padding: clamp(16px, 1.8vw, 18px) clamp(16px, 2vw, 20px);
  border-radius: calc(var(--radius) - 6px);
  background: var(--bg-code);
  border: 1px solid rgba(111, 129, 156, 0.14);
  color: var(--text);
  line-height: 1.65;
}

code {
  padding: 0.18em 0.42em;
  border-radius: 8px;
  background: rgba(31, 103, 242, 0.08);
  color: var(--accent-strong);
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.section-credit {
  padding-top: 6px;
  border-top: 1px dashed rgba(111, 129, 156, 0.22);
}

figcaption {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .book-article .section {
    gap: 20px;
  }

  .section h2 {
    font-size: 1.72rem;
    line-height: 1.16;
  }

  .section h3 {
    font-size: 1.24rem;
    line-height: 1.26;
  }

  .section p,
  .section li,
  .section td,
  .section th,
  .section blockquote {
    font-size: 1.02rem;
  }

  .step-num {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .prompt-inline-header,
  .step {
    grid-template-columns: 1fr;
  }
}
