/**
 * Заметки (single) — Excalibur longread v2: ширина, таблицы, «Кратко», ритм.
 */

.page-shell--note-single .content {
  max-width: 900px;
}

.page-shell--note-single article {
  width: 100%;
}

.page-shell--note-single article header {
  margin-bottom: 28px;
}

.page-shell--note-single .blog-card__category--single {
  margin-bottom: 12px;
}

.page-shell--note-single .page-title {
  margin-bottom: 12px;
  max-width: 22ch;
  line-height: 1.15;
}

.page-shell--note-single .blog-card__date {
  margin-top: 0;
}

.page-shell--note-single .wp-post-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 36px;
  border-radius: 20px;
}

.page-shell--note-single .prose.entry-content {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

.page-shell--note-single .entry-content p {
  max-width: 72ch;
  margin-top: 0;
}

.page-shell--note-single .entry-content p + p {
  margin-top: 1.15em;
}

.page-shell--note-single .entry-content p strong:first-child,
.page-shell--note-single .entry-content p b:first-child {
  color: var(--color-text);
}

/* Lead + блок «Кратко» / legacy TL;DR */
.page-shell--note-single .entry-content > blockquote {
  margin: 28px 0 32px;
  padding: 20px 24px;
  max-width: 100%;
  border: 1px solid rgba(102, 178, 255, 0.22);
  border-left: 3px solid rgba(102, 178, 255, 0.75);
  border-radius: 0 14px 14px 0;
  background: rgba(102, 178, 255, 0.07);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-body);
}

.page-shell--note-single .entry-content > blockquote b:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #66b2ff;
}

.page-shell--note-single .entry-content h2 {
  margin: 52px 0 20px;
  padding-top: 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--color-text);
  max-width: 26ch;
}

.page-shell--note-single .entry-content h3 {
  margin: 36px 0 14px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
  max-width: 32ch;
}

.page-shell--note-single .entry-content h2 + h3 {
  margin-top: 24px;
}

.page-shell--note-single .entry-content ul,
.page-shell--note-single .entry-content ol {
  margin: 18px 0 24px;
  padding-left: 1.35em;
  max-width: 72ch;
  color: var(--color-text-body);
}

.page-shell--note-single .entry-content li {
  margin: 0;
  padding-left: 0.2em;
}

.page-shell--note-single .entry-content li + li {
  margin-top: 12px;
}

/* Таблицы Excalibur (plain table + note-table) */
.page-shell--note-single .entry-content table,
.page-shell--note-single .entry-content table.note-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.page-shell--note-single .entry-content table thead,
.page-shell--note-single .entry-content table tbody {
  display: table;
  width: 100%;
  min-width: 560px;
}

.page-shell--note-single .entry-content table th,
.page-shell--note-single .entry-content table td {
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-shell--note-single .entry-content table tr:last-child th,
.page-shell--note-single .entry-content table tr:last-child td {
  border-bottom: none;
}

.page-shell--note-single .entry-content table th {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted, #9a9a9b);
  background: rgba(255, 255, 255, 0.04);
}

.page-shell--note-single .entry-content table td {
  color: var(--color-text-body);
}

.page-shell--note-single .entry-content table td b,
.page-shell--note-single .entry-content table td strong {
  color: var(--color-text);
}

.page-shell--note-single figure.inline-quad {
  margin: 28px 0 32px;
  padding: 0;
  max-width: 100%;
}

.page-shell--note-single figure.inline-quad br {
  display: none;
}

.page-shell--note-single figure.inline-quad img,
.page-shell--note-single .entry-content p > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 28px 0 32px;
  border-radius: 16px;
  background: #0a0a0a;
}

.page-shell--note-single .entry-content img:not(.wp-post-image) {
  max-width: 100%;
  height: auto;
}

.page-shell--note-single .note-author {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 17px;
  line-height: 1.5;
  max-width: 72ch;
}

.page-shell--note-single .note-author strong {
  color: var(--color-text);
}

@media (max-width: 767px) {
  .page-shell--note-single .content {
    padding-left: var(--mobile-pl);
    padding-right: var(--mobile-pl);
    max-width: none;
  }

  .page-shell--note-single .page-title {
    max-width: none;
  }

  .page-shell--note-single .breadcrumbs {
    margin-bottom: 20px;
    line-height: 1.4;
    word-break: break-word;
  }

  .page-shell--note-single .prose.entry-content {
    font-size: 17px;
    line-height: 1.6;
  }

  .page-shell--note-single .wp-post-image {
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .page-shell--note-single .entry-content h2 {
    margin-top: 44px;
    font-size: 22px;
    max-width: none;
  }

  .page-shell--note-single .entry-content h3 {
    margin-top: 28px;
    font-size: 18px;
    max-width: none;
  }

  .page-shell--note-single .entry-content > blockquote {
    margin: 24px 0 28px;
    padding: 16px 18px;
    font-size: 16px;
  }

  .page-shell--note-single figure.inline-quad,
  .page-shell--note-single .entry-content p > img {
    margin: 24px 0 28px;
  }

  .page-shell--note-single figure.inline-quad img {
    border-radius: 12px;
  }

  .page-shell--note-single .entry-content p,
  .page-shell--note-single .entry-content ul,
  .page-shell--note-single .entry-content ol,
  .page-shell--note-single .note-author {
    max-width: none;
  }

  .page-shell--note-single .entry-content table {
    margin: 24px 0 28px;
    border-radius: 12px;
    font-size: 14px;
  }

  .page-shell--note-single .entry-content table th,
  .page-shell--note-single .entry-content table td {
    padding: 12px 14px;
  }

  .page-shell--note-single .note-author {
    margin-top: 40px;
    font-size: 16px;
  }
}
