/* Single entries rendered from the CMS (Návody, Články, Dokumenty) and the 404 page.
   Same editorial system as the archives: navy hero, white sheet, serif headings. */
.site-nav__list a[aria-current="page"] { color: var(--teal-300); text-decoration: underline; text-underline-offset: 7px; }
.article-hero { padding-block: 28px 52px; }
.article-hero .container { max-width: calc(860px + 2 * var(--gutter)); }
.article-crumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--on-dark-2); font-size: .8125rem; margin-bottom: 32px; }
.article-crumbs a { color: inherit; }
.article-kicker { color: var(--teal-300); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); color: #fff; text-wrap: balance; }
.article-lead { color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.8; max-width: 62ch; margin-top: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--on-dark-3); font-size: .875rem; margin-top: 22px; }
.article-meta > * + *::before { content: "·"; margin-inline: 10px; }

.article { max-width: calc(860px + 2 * var(--gutter)); padding-block: 48px 64px; }
.article-notice { background: var(--paper-2); border-left: 3px solid var(--teal-700); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 14px 18px; color: var(--ink-2); font-size: .9375rem; margin-bottom: 32px; }
.article-cover { margin: 0 0 36px; }
.article-cover img { width: 100%; border-radius: var(--radius-m); }
.article-pdf { margin-bottom: 32px; }
.article-button { color: var(--paper); background: var(--navy-700); white-space: normal; line-height: 1.5; }
.article-button:hover { background: var(--navy-600); }

/* Body text from the editor (blocksToHtml): only plain elements, no classes except figure.gallery, div.image-row and a.file. */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; margin-top: 1.9em; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li > p + p { margin-top: .6em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.prose blockquote > * + * { margin-top: .8em; }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--radius-s); }
.prose figcaption { color: var(--ink-3); font-size: .875rem; margin-top: 10px; }
.prose figure.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.prose figure.gallery figure { margin: 0; }
/* Images in a row side by side, each as wide as its aspect ratio (--r) so all share one height. */
.prose .image-row { display: flex; gap: 16px; align-items: flex-start; margin-block: 1em; }
.prose .image-row figure { flex: var(--r, 1.5) 1 0; min-width: 0; margin: 0; }
.prose .image-row img { width: 100%; height: auto; }
@media (max-width: 559px) {
  .prose .image-row { flex-direction: column; }
  .prose .image-row figure { flex: none; width: 100%; }
}
/* A portrait on its own would fill several screens at full width: cap its height, centred. */
.prose > figure > img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(720px, 85vh); margin-inline: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose pre { background: var(--paper-2); border-radius: var(--radius-s); padding: 16px 18px; overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.prose code { font-size: .9em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-s); }
/* Wide data tables (the periodic-comet lists) scroll sideways instead of breaking the page. */
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; border-bottom-color: var(--line-strong); background: var(--paper-2); }
.prose a.file { font-weight: 600; }

.article-more { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 40px 48px; }
.article-more .container { max-width: calc(860px + 2 * var(--gutter)); }
.article-more h2 { font-size: 1.65rem; margin-bottom: 20px; }
.article-more ul { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line-strong); }
.article-more li { border-bottom: 1px solid var(--line); }
.article-more li a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 8px; color: var(--ink); text-decoration: none; }
.article-more li a:hover { background: var(--paper); }
.article-more li a:hover strong { color: var(--teal-700); text-decoration: underline; text-underline-offset: 4px; }
.article-more strong { display: block; font: 600 1.125rem/1.4 var(--font-display); }
.article-more small { display: block; color: var(--ink-2); font-size: .875rem; margin-top: 4px; }
.article-more svg { width: 20px; height: 20px; flex: none; color: var(--teal-700); }

.article-tags { max-width: calc(860px + 2 * var(--gutter)); padding-bottom: 48px; }
.article-tags ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.article-tags li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: .8125rem; color: var(--ink-2); }

.not-found__links { list-style: none; margin: 0; padding: 0; }
.not-found__links .more { display: flex; margin-block: 12px; }

@media (max-width: 640px) {
  .article-hero { padding-block: 22px 36px; }
  .article-crumbs { margin-bottom: 24px; }
  .article-lead { font-size: 1rem; }
  .article { padding-block: 32px 44px; }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.5rem; }
}
