@charset "UTF-8";

/* ============================================================
   Default WordPress page template.
   Единая система контента: типографика, отступы, радиусы и тени
   совпадают с post.css и уроками курса (course-prose).
   ============================================================ */

.default-page {
  max-width: 940px;
  padding-top: 2.5em;
  padding-bottom: 5em;
}

.default-page article.page {
  max-width: 820px;
  margin: 0 auto;
}

.default-page article.page > .entry-title {
  max-width: 720px;
  margin: 0 0 1.5em;
  color: #1E1E1E;
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.default-page .post-thumbnail {
  position: relative;
  margin: 0 0 2em;
  overflow: hidden;
  border-radius: 0.75em;
  background: #F5F5F5;
}

.default-page .post-thumbnail::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.default-page .post-thumbnail img {
  display: block;
  width: 100%;
  height: 20em;
  object-fit: cover;
}

.default-page .entry-content {
  color: #1E1E1E;
  font-size: 1em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.default-page .entry-content > *:first-child {
  margin-top: 0;
}

.default-page .entry-content > *:last-child {
  margin-bottom: 0;
}

.default-page .section-intro {
  position: relative;
  transition: max-height 0.35s ease;
}

.default-page .section-intro.is-collapsed {
  max-height: 5.25em;
  overflow: hidden;
}

.default-page .section-intro.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3.5em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
  content: "";
  pointer-events: none;
}

.default-page .section-intro-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0.75em 0 2em;
  padding: 0.65em 1em;
  border: 1px solid #E9E9E9;
  border-radius: 0.625em;
  background: #ECFBF8;
  color: #01A97D;
  font-family: Onest, sans-serif;
  font-size: 0.9375em;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.default-page .section-intro-toggle:hover {
  border-color: #01A97D;
  background: #ECFBF8;
}

.default-page .section-intro-toggle::after {
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-0.12em) rotate(45deg);
  transition: transform 0.2s ease;
}

.default-page .section-intro-toggle[aria-expanded="true"]::after {
  transform: translateY(0.12em) rotate(225deg);
}

.default-page .entry-content p {
  margin: 0 0 1em;
}

.default-page .entry-content h2,
.default-page .entry-content h3,
.default-page .entry-content h4 {
  color: #1E1E1E;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.default-page .entry-content h2 {
  margin: 1.75em 0 0.6em;
  font-size: 1.5em;
  line-height: 1.25;
  font-weight: 700;
}

.default-page .entry-content h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.25em;
  line-height: 1.3;
  font-weight: 600;
}

.default-page .entry-content h4 {
  margin: 1.25em 0 0.4em;
  font-size: 1.125em;
  line-height: 1.35;
  font-weight: 600;
}

.default-page .entry-content ul,
.default-page .entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.default-page .entry-content ul {
  list-style: disc;
}

.default-page .entry-content ol {
  list-style: decimal;
}

.default-page .entry-content li {
  margin-bottom: 0.375em;
}

.default-page .entry-content li::marker {
  color: #01A97D;
  font-weight: 600;
}

.default-page .entry-content a:not(.wp-element-button) {
  color: #01A97D;
  text-decoration-color: rgba(1, 169, 125, 0.4);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.default-page .entry-content a:not(.wp-element-button):hover {
  color: #029F76;
  text-decoration-color: currentColor;
}

.default-page .entry-content blockquote {
  margin: 1.25em 0;
  padding: 1em 1.25em;
  border-left: 4px solid #01A97D;
  border-radius: 0 0.625em 0.625em 0;
  background: #ECFBF8;
  color: #1E1E1E;
}

.default-page .entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.default-page .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
}

.default-page .entry-content figure {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.default-page .entry-content figcaption {
  margin-top: 0.5em;
  color: #4C5355;
  font-size: 0.875em;
  line-height: 1.5;
  text-align: center;
}

.default-page .entry-content hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid #E9E9E9;
}

.default-page .entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: #F5F5F5;
  color: #1E1E1E;
  padding: 0.15em 0.4em;
  border-radius: 0.375em;
}

.default-page .entry-content pre {
  margin: 1.25em 0;
  padding: 1.125em;
  border-radius: 0.625em;
  background: #1E1E1E;
  color: #ECFBF8;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.6;
}

.default-page .entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.default-page .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1em;
  line-height: 1.55;
}

.default-page .entry-content th,
.default-page .entry-content td {
  padding: 0.8em 1em;
  border: 1px solid #E9E9E9;
  text-align: left;
  vertical-align: top;
}

.default-page .entry-content th {
  background: #F5F5F5;
  font-weight: 600;
}

.default-page .entry-footer {
  margin-top: 3em;
  padding-top: 1.25em;
  border-top: 1px solid #E9E9E9;
  color: #4C5355;
  font-size: 0.875em;
}

.default-page .entry-footer a {
  color: #01A97D;
}

@media (max-width: 48em) {
  .default-page {
    width: 100%;
    padding: 2em 1.25em 4em;
  }

  .default-page article.page > .entry-title {
    margin-bottom: 1.25em;
    font-size: 1.75em;
  }

  .default-page .post-thumbnail {
    margin-bottom: 1.5em;
  }

  .default-page .post-thumbnail img {
    height: 16em;
  }

  .default-page .entry-content {
    font-size: 1em;
    line-height: 1.55;
  }

  .default-page .entry-content h2 {
    font-size: 1.375em;
  }

  .default-page .entry-content h3 {
    font-size: 1.1875em;
  }

  .default-page .entry-content h4 {
    font-size: 1.0625em;
  }

  .default-page .entry-content blockquote {
    padding: 0.875em 1em;
  }

  .default-page .section-intro-toggle {
    margin-bottom: 1.75em;
  }
}
