/* Article pages (/YYYY/MM/DD/<slug>/, Články) on top of article.css and guide-article.css, which
   supply the shared layout: rail from 1000 px, contents, inline card, Kam dál, phone bars.
   Only the parts that exist on articles alone are here: tags, wide cover, newest list, comet box,
   older / newer. */

/* --- Tags under the title (navy hero) -------------------------------------------- */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; max-width: 720px; }
.hero-tags a, .hero-tags span { display: inline-block; color: var(--on-dark); border: 1px solid var(--on-dark-line); border-radius: 999px; padding: 4px 12px; font-size: .8125rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.hero-tags a { transition: border-color .2s, color .2s; }
.hero-tags a:hover { border-color: var(--teal-300); color: var(--teal-300); }
.hero-tags a:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; }

/* --- Wide cover below the hero --------------------------------------------------- */
.article-cover-wide { max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding-top: 40px; }
.article-cover-wide img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; border-radius: 14px; background: var(--paper-2); }
.article-cover-wide figcaption { color: var(--ink-3); font-size: .8125rem; line-height: 1.5; margin-top: 10px; }
.article-cover-wide + .article-layout .article { padding-top: 40px; }
@media (max-width: 640px) {
  .article-cover-wide { padding-top: 24px; }
  .article-cover-wide img { aspect-ratio: 1.6; border-radius: var(--radius-m); }
  .article-cover-wide + .article-layout .article { padding-top: 28px; }
}

/* --- Newest in the rubrika (rail, and after the article below 1000 px) ------------ */
.latest { list-style: none; margin: 0; padding: 0; }
.latest a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.latest strong { display: block; font: 600 .95rem/1.35 var(--font-display); overflow-wrap: anywhere; }
.latest small { display: block; margin-top: 2px; color: var(--ink-3); font-size: .75rem; }
.latest a:hover strong { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.latest a.is-current strong { color: var(--teal-700); }
.latest a.is-current small { color: var(--teal-700); font-weight: 700; }
.latest a:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 2px; border-radius: 2px; }
/* Seriál: the parts in order (their titles carry the part numbers), above „Nejnovější“. */
.series-box { margin-bottom: 36px; }
.series-box__kicker { font: 700 .75rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.series-box .rail-title { font: 600 1.15rem/1.3 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 6px 0 10px; }
.series-box__parts a { padding: 8px 0; }
.series-box__parts strong { font-size: .9rem; }
.latest-all { display: inline-block; margin-top: 12px; font-size: .8125rem; font-weight: 600; }
.guide-siblings-after .latest a { padding: 12px 0; }
.guide-siblings-after .latest strong { font-size: 1.05rem; }

/* --- Comet box: the comet of the article, tonight ---------------------------------- */
.comet-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 48px; padding: 22px 24px; border-radius: 14px; background: linear-gradient(rgba(11, 32, 54, .55), rgba(11, 32, 54, .55)), var(--navy-900) url("/assets/constellations.png") center / cover; color: var(--on-dark); }
.comet-box__mag { font: 600 2.4rem/1 var(--font-display); color: var(--teal-300); }
.comet-box small { display: block; color: var(--teal-300); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.comet-box h2 { font: 600 1.2rem/1.3 var(--font-display); color: #fff; margin-top: 4px; overflow-wrap: anywhere; }
.comet-box__copy p { color: var(--on-dark-2); font-size: .85rem; margin-top: 4px; }
.comet-box__links a { display: block; color: var(--teal-300); font-weight: 600; font-size: .85rem; margin: 4px 0; white-space: nowrap; }
@media (max-width: 640px) {
  .comet-box { grid-template-columns: auto minmax(0, 1fr); }
  .comet-box__links { grid-column: 1 / -1; }
}

/* --- Older / newer --------------------------------------------------------------- */
.next-wrap--pair { grid-template-columns: 1fr 1fr; }
.next-wrap--solo { grid-template-columns: 1fr; }
.np--newer { text-align: right; }
.np--older strong, .np--newer strong { font-size: 1.15rem; }
@media (max-width: 640px) {
  .next-wrap--pair { grid-template-columns: 1fr; }
  .np--newer { text-align: left; }
}

/* --- A gallery of one image (common in the imported posts) spans the text column ----- */
.prose figure.gallery:has(> figure:only-child) { grid-template-columns: minmax(0, 1fr); }
