/* ============================================================
   Пост блога (/blog/<slug>): шапка на кремовом фоне, обложка,
   колонка текста ~720px. Разметку рисует assets/blog.js.
   ============================================================ */

body.theme-v2 .post-page { padding-bottom: 104px; }

/* ----- Хлебные крошки ----- */
body.theme-v2 .page-crumbs { font-size: 14px; font-weight: 500; color: var(--t-muted); }
body.theme-v2 .page-crumbs a { color: var(--t-accent); text-decoration: none; }
body.theme-v2 .page-crumbs a:hover { color: var(--t-ink); }

/* ----- Шапка поста ----- */
body.theme-v2 .post-hero { background: var(--t-cream); padding: 64px 0 168px; }
body.theme-v2 .post-col { max-width: calc(720px + 64px); display: flex; flex-direction: column; gap: 22px; }
body.theme-v2 .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
body.theme-v2 .post-date { font-size: 15px; font-weight: 500; color: var(--t-muted); }
body.theme-v2 .post-hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: break-word;
}

/* ----- Обложка заходит на кремовую шапку ----- */
body.theme-v2 .post-cover {
  max-width: 960px; margin: -120px auto 0; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--t-radius-lg); background: var(--t-tile);
}
body.theme-v2 .post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ----- Текст поста ----- */
body.theme-v2 .post-body {
  max-width: 720px; margin: 56px auto 0;
  font-size: 18px; line-height: 1.7; color: var(--t-ink); overflow-wrap: break-word;
}
body.theme-v2 .post-body > :first-child { margin-top: 0; }
body.theme-v2 .post-body > :first-child:is(p) { font-size: 21px; line-height: 1.6; }
body.theme-v2 .post-body p { margin: 0 0 22px; }
body.theme-v2 .post-body h2 {
  margin: 52px 0 16px; font-size: clamp(26px, 3vw, 32px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance;
}
body.theme-v2 .post-body h3 { margin: 36px 0 12px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
body.theme-v2 .post-body strong { font-weight: 700; }
body.theme-v2 .post-body a { color: var(--t-accent); text-decoration: underline; text-underline-offset: 3px; }
body.theme-v2 .post-body a:hover { color: var(--t-ink); }
body.theme-v2 .post-body ul { margin: 0 0 24px; padding: 0; list-style: none; }
body.theme-v2 .post-body ol { margin: 0 0 24px; padding-left: 28px; }
body.theme-v2 .post-body ul li { position: relative; padding-left: 30px; }
body.theme-v2 .post-body li + li { margin-top: 10px; }
body.theme-v2 .post-body ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--t-accent);
}
body.theme-v2 .post-body ol li::marker { color: var(--t-accent); font-weight: 700; }
body.theme-v2 .post-body blockquote {
  margin: 36px 0; padding: 28px 32px; border: 0; border-radius: var(--t-radius);
  background: var(--t-cream); font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: inset 6px 0 0 var(--t-accent);
}
body.theme-v2 .post-body blockquote p:last-child { margin-bottom: 0; }
body.theme-v2 .post-body img { display: block; max-width: 100%; height: auto; margin: 32px 0; border-radius: var(--t-radius); }
body.theme-v2 .post-body hr { margin: 44px 0; border: 0; border-top: 1px solid var(--t-line); }

/* ----- Поста нет ----- */
body.theme-v2 .post-notfound {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding-top: 104px; text-align: center;
}
body.theme-v2 .post-notfound h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }

@media (max-width: 600px) {
  body.theme-v2 .post-page { padding-bottom: 72px; }
  body.theme-v2 .post-hero { padding: 36px 0 96px; }
  body.theme-v2 .post-col { gap: 16px; }
  body.theme-v2 .post-cover { margin-top: -64px; border-radius: var(--t-radius); }
  body.theme-v2 .post-body { margin-top: 36px; font-size: 17px; }
  body.theme-v2 .post-body > :first-child:is(p) { font-size: 19px; }
  body.theme-v2 .post-body h2 { margin-top: 40px; }
  body.theme-v2 .post-body blockquote { padding: 22px 22px; font-size: 19px; }
}

/* Обложки нет — шапка без запаса под неё */
body.theme-v2 .post-cover[hidden] { display: none; }
body.theme-v2 .post:has(.post-cover[hidden]) .post-hero { padding-bottom: 64px; }
