/* === Расчёт сил и средств (rtp) === */

.main-content:has(.rtp-page) { padding-top: 0; }

.rtp-page {
  display: flex;
  flex-direction: column;
  padding: 0 0 40px;
  width: 100%;
}

.rtp-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 2px;
}

.rtp-intro {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rtp-intro__heading {
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  font-size: 14px;
}

.rtp-intro__list {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-on-surface);
}

.rtp-block.tool-accordion--card {
  padding: 10px 14px;
}

.rtp-block .tool-accordion__title {
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-primary);
}

.rtp-block .tool-accordion__body-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rtp-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-on-surface);
  margin: 0;
  white-space: normal;
}

.rtp-text b,
.rtp-text i,
.rtp-formula b,
.rtp-formula i {
  font-style: italic;
}

.rtp-text sub,
.rtp-formula sub {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  bottom: -0.3em;
}

.rtp-text sup,
.rtp-formula sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}

.rtp-formula {
  display: block;
  text-align: center;
  margin: 4px auto;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.7;
  font-family: 'Cambria Math', 'STIX Two Math', 'Georgia', serif;
  color: var(--color-on-surface);
  background: color-mix(in srgb, var(--color-primary) 7%, transparent);
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow-x: auto;
}

.rtp-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  box-shadow: var(--shadow);
  align-self: center;
  transition: transform 0.1s;
}
.rtp-image:hover {
  transform: scale(1.005);
}
