/* Blog (/blog, /blog/{slug}): bez předlohy v návrhu, složeno z prvků reference a oborů. */
.blog-hero { padding: 40px 0 80px; background: #3a090b; }
.blog-hero--detail { padding-bottom: 64px; }
.blog-hero__title { font-size: 88px; line-height: 0.95; font-weight: 600; letter-spacing: -0.045em; margin: 20px 0 24px; color: var(--fg); text-wrap: balance; }
.blog-hero__title--detail { font-size: 56px; line-height: 1.05; max-width: 960px; margin-top: 16px; }
.blog-hero__lead { font-size: 20px; line-height: 1.5; color: var(--fg-soft); max-width: 680px; margin: 0; text-wrap: pretty; }
.blog-hero__meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--fg-soft); }

.blog-list { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.blog-list__empty { font-size: 16px; color: var(--fg-soft); margin: 0; }
.blog-list__frame { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); }
.blog-list__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -1px -1px 0; }
.blog-card { display: flex; flex-direction: column; color: var(--fg); background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(0,0,0,0.22); position: relative; z-index: 2; }
.blog-card:hover .blog-card__more svg { transform: translateX(3px); }
.blog-card__media { aspect-ratio: 16 / 9; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg-mute); margin-bottom: 12px; }
.blog-card__category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.blog-card__title { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.blog-card__perex { font-size: 13px; line-height: 1.5; color: var(--fg-soft); margin: 0; text-wrap: pretty; }
.blog-card__more { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.blog-card__more svg { transition: transform .2s ease; }
.blog-hero__meta .blog-card__category { color: var(--hero-highlight); }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; font-size: 13px; }
.blog-pager__link { padding: 10px 16px; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--bg); font-weight: 600; color: var(--fg); }
.blog-pager__state { color: var(--fg-mute); }

.blog-article { padding: 64px 0 112px; background: var(--bg); }
.blog-article__container { max-width: 784px; }
.blog-article__cover { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius-card); margin-bottom: 40px; display: block; }
.blog-article__back { display: inline-block; margin-top: 56px; font-size: 14px; font-weight: 600; color: var(--fg); }

.article-content { font-size: 17px; line-height: 1.7; color: var(--fg); overflow-wrap: break-word; }
.article-content > :first-child { margin-top: 0; }
.article-content h2 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; margin: 2em 0 0.6em; }
.article-content h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 1.8em 0 0.5em; }
.article-content p { margin: 0 0 1.2em; text-wrap: pretty; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-content li { margin-bottom: 0.4em; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 0.4em 0; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--fg-soft); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--bg-alt); font-weight: 600; }
.article-content iframe { max-width: 100%; border: 0; }

@media (max-width: 1024px) {
  .blog-list__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .blog-hero { padding-bottom: 56px; }
  .blog-hero__title { font-size: 52px; }
  .blog-hero__title--detail { font-size: 34px; }
  .blog-hero__lead { font-size: 17px; }
  .blog-list { padding: 56px 0; }
  .blog-list__grid { grid-template-columns: 1fr; }
  .blog-article { padding: 40px 0 72px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 24px; }
  .blog-card__perex { font-size: 16px; }
  .blog-article__back, .blog-pager__link { min-height: 44px; display: inline-flex; align-items: center; }
}
.article-content pre { margin: 1.5em 0; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
