/* Sortpair blog — article and index styles (loaded after style.css). */
.blog-main { width: 100%; max-width: 820px; margin: 0 auto; padding: 8px 20px 36px; flex: 1; }
.crumbs { font-size: 15px; margin-bottom: 6px; }
.crumbs a { display: inline-block; padding: 8px 2px; }
.post-title { font-size: clamp(34px, 7vw, 52px); line-height: 1.04; margin: 8px 0 10px; overflow-wrap: break-word; }
.post-meta { font-size: 16px; margin-bottom: 18px; color: #E3E9FF; font-weight: 700; }
.post-meta a { color: #fff; }
.blog-intro { font-size: 21px; line-height: 1.4; margin-bottom: 22px; }

.post {
  background: #fff; color: var(--ink); border-radius: 26px; padding: 26px 24px 30px; box-shadow: var(--shadow);
  font-size: 19px; line-height: 1.7; font-weight: 600;
}
.post p, .post ul, .post ol, .post table, .post figure { margin: 0 0 1.05em; }
.post .lead { font-size: 22px; line-height: 1.55; font-weight: 700; }
.post h2 { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 5vw, 34px); line-height: 1.12; color: var(--navy); text-shadow: none; margin: 1.7em 0 0.5em; }
.post h3 { font-weight: 800; font-size: 21px; line-height: 1.3; margin: 1.3em 0 0.3em; }
.post strong { font-weight: 800; }
.post a { color: var(--blue); font-weight: 800; }
.post a:hover { color: var(--navy); }
.post ul, .post ol { padding-left: 1.35em; }
.post li { margin-bottom: 0.45em; padding-left: 0.2em; }
.post li::marker { color: var(--blue); font-weight: 800; }
.post .note { font-size: 16px; line-height: 1.5; color: var(--muted); }

.post table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 18px; border: 3px solid var(--soft-border); border-radius: 16px; overflow: hidden; }
.post th, .post td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--soft-border); }
.post th { background: var(--soft); font-weight: 800; }
.post tr:last-child td { border-bottom: 0; }
.post td:not(:first-child), .post th:not(:first-child) { text-align: center; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { width: 100%; height: auto; border-radius: 18px; border: 3px solid var(--soft-border); display: block; }
.shots figcaption { grid-column: 1 / -1; font-size: 15px; color: var(--muted); text-align: center; line-height: 1.4; }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 8px; } .shots img { border-radius: 12px; border-width: 2px; } }

.cta {
  margin: 1.6em 0; padding: 22px 20px 24px; border-radius: 22px; background: var(--soft); border: 3px solid var(--blue); text-align: center; line-height: 1.45;
}
.post .cta h2 { margin: 0 0 6px; font-size: 30px; }
.post .cta p { margin-bottom: 14px; }
.post .cta .btn { color: var(--ink); min-height: 64px; font-size: 24px; padding: 0 22px; }
.post .cta .btn:hover { color: var(--ink); }

.more { margin-top: 28px; }
.more h2 { font-size: 30px; margin-bottom: 10px; }
.card-list { list-style: none; display: grid; gap: 10px; }
.card-link {
  display: flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); text-decoration: none; border-radius: 18px;
  padding: 12px 16px; min-height: 64px; font-size: 18px; font-weight: 800; line-height: 1.25; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}
.card-link:hover { background: var(--soft); color: var(--blue); }
.card-emoji { font-size: 32px; line-height: 1; flex: none; }

.post-grid { list-style: none; display: grid; gap: 18px; }
.post-card a {
  display: block; background: #fff; color: var(--ink); text-decoration: none; border-radius: 26px; padding: 22px 22px 20px; box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.post-card a:hover { transform: translateY(-2px); color: var(--ink); }
.post-card .card-emoji { display: block; font-size: 40px; margin-bottom: 6px; }
.card-kicker { display: block; font-size: 15px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.post-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(25px, 4.5vw, 32px); line-height: 1.12; color: var(--navy); text-shadow: none; margin: 0 0 8px; }
.post-card p { font-size: 18px; line-height: 1.5; font-weight: 600; margin-bottom: 10px; }
.card-more { font-weight: 800; color: var(--blue); }

@media (max-width: 560px) {
  .blog-main { padding-left: 14px; padding-right: 14px; }
  .post { padding: 20px 16px 24px; font-size: 18px; }
  .post .lead { font-size: 20px; }
  .post table { font-size: 15px; }
  .post th, .post td { padding: 8px 5px; }
  .post .cta h2 { font-size: 26px; }
  .post .cta .btn { font-size: 21px; padding: 0 14px; }
}

/* narrow phones: long header words (e.g. Russian "Ребёнок") must not push the table past the viewport */
@media (max-width: 400px) {
  .post table { font-size: 13px; }
  .post th, .post td { padding: 7px 3px; overflow-wrap: anywhere; }
  .post th:first-child, .post td:first-child { padding-left: 8px; }
}
