/* Blog – detail článku */

/* --- Karty článků: stejný blok je i v blog.css (kandidát do main.css) --- */
.topic-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--steel); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.post-meta time { white-space: nowrap; }
.post-meta__read { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.post-meta__read svg { flex-shrink: 0; }
.read-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.read-more__ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--flame); color: var(--steel); transition: transform .2s; }
a:hover .read-more__ico { transform: translateX(3px); }
.post-card { height: 100%; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.post-card__media { position: relative; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__media .topic-chip { position: absolute; top: 16px; left: 16px; }
.post-card__body { flex: 1; display: flex; flex-direction: column; padding: 24px 28px 28px; }
.post-card__title { margin-top: 10px; font-size: 24px; line-height: 1.2; }
.post-card__text { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
.post-card__body > .read-more { margin-top: auto; padding-top: 20px; align-self: flex-start; }
a.post-card:hover .post-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 639px) {
  .post-card__body { padding: 20px 20px 24px; }
  .post-card__title { font-size: 22px; }
}
/* --- konec společného bloku --- */

.nowrap { white-space: nowrap; }

/* Hlavička článku */
.post-top { padding-top: 56px; }
.post-head__in { max-width: 960px; margin-top: 32px; }
.post-head__meta { font-size: 15px; }
.post-head__title { margin-top: 16px; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.post-author { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.post-author__avatar { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--flame); font-family: var(--font-head); font-weight: 600; }
.post-author__text { font-size: 15px; line-height: 1.4; }
.post-author__text b { font-weight: 600; }
.post-author__text span { color: var(--muted); }
.post-head__img { margin-top: 40px; width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 1023px) {
  .post-top { padding-top: 32px; }
  .post-head__in { margin-top: 20px; }
  .post-author { margin-top: 20px; }
  .post-head__img { margin-top: 24px; height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  .post-head__img { aspect-ratio: 16 / 10; }
}

/* Tělo + boční panel */
.post-layout { padding-top: 64px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 96px; align-items: start; }
.post-content { max-width: 760px; font-size: 19px; line-height: 1.7; }
.post-content p { text-wrap: pretty; }
.post-content .post-lead { font-size: 22px; line-height: 1.6; font-weight: 500; }
.post-lead + p { margin-top: 20px; }
.post-lead + p + p { margin-top: 16px; }
.post-content a { font-weight: 600; text-decoration: none; }
.post-content a:hover { text-decoration: underline; text-underline-offset: 4px; }

.cause { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 128px; }
.cause__head { display: flex; align-items: flex-start; gap: 20px; }
.cause__num { flex-shrink: 0; padding-bottom: 6px; border-bottom: 4px solid var(--flame); font-family: var(--font-head); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cause h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.cause__head + p { margin-top: 20px; }
.cause > p + p { margin-top: 12px; }
.cause--final h2 { font-size: 32px; line-height: 1.15; }
.cause--final h2 + p { margin-top: 16px; }

.fix { margin-top: 20px; padding: 24px 28px; background: var(--paper); border-radius: 16px; }
.fix__label { font-size: 14px; font-weight: 600; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; }
.fix__list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.55; }
.fix__list li { display: flex; align-items: flex-start; gap: 12px; }
.fix__ico { flex-shrink: 0; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--flame); color: var(--steel); }

.post-cta { margin-top: 32px; padding: 32px; background: var(--cream); border-left: 6px solid var(--flame); border-radius: 0 16px 16px 0; }
.post-cta__title { font-family: var(--font-head); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.post-cta .post-cta__text { margin-top: 12px; font-size: 18px; line-height: 1.6; }
.post-cta .post-cta__btn { margin-top: 24px; min-height: 60px; font-weight: 600; }
.post-cta__btn .btn-arrow__icon { width: 42px; height: 42px; }

.post-tags { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags__label { margin-right: 8px; font-size: 15px; color: var(--muted); }
.post-tags ul { display: contents; }
.post-tags li { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--steel); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; }

/* Boční panel */
.post-aside { display: flex; flex-direction: column; gap: 20px; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 28px 28px 18px; }
.toc__label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { margin-top: 12px; }
.toc a { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgb(47 43 39 / 0.12); font-size: 16px; line-height: 1.4; text-decoration: none; }
.toc a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.toc__num { min-width: 22px; font-family: var(--font-head); font-weight: 500; }
.aside-card { background: var(--steel); color: #fff; border-radius: var(--radius); padding: 44px 32px 40px; }
.aside-card__title { font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; color: var(--flame); }
.aside-card__text { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.aside-card__hours { margin-top: 24px; padding: 20px 0; border-block: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.aside-card__hours div { display: flex; justify-content: space-between; gap: 12px; }
.aside-card__hours dt { color: var(--soft); }
.aside-card__hours dd { font-weight: 600; white-space: nowrap; }
.aside-card__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.aside-card__actions .btn { width: 100%; }
.aside-card .aside-card__tel { min-height: 60px; font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: 0; }
/* lepkavý panel jen tam, kde se celý vejde na výšku okna (jinak by spodek s kontaktem nešel vidět) */
@media (min-width: 1100px) and (min-height: 1100px) { .post-aside { position: sticky; top: 136px; } }

@media (max-width: 1279px) and (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}
@media (max-width: 1023px) {
  .post-layout { display: block; padding-top: 32px; padding-bottom: 64px; }
  .post-content { max-width: 760px; }
  .post-aside { display: none; }
  .cause { scroll-margin-top: 96px; }
}
@media (max-width: 639px) {
  .post-layout { padding-bottom: 48px; }
  .post-content { font-size: 17px; }
  .post-content .post-lead { font-size: 19px; }
  .cause { margin-top: 40px; padding-top: 24px; }
  .cause__head { gap: 14px; }
  .cause__num { font-size: 30px; }
  .cause h2 { font-size: 22px; }
  .cause--final h2 { font-size: 26px; }
  .fix { padding: 18px; }
  .fix__list { font-size: 16px; }
  .post-cta { padding: 24px; }
  .post-cta__title { font-size: 22px; }
  .post-cta .post-cta__text { font-size: 16px; }
  .post-cta .post-cta__btn { display: flex; width: 100%; }
  .post-tags { margin-top: 40px; }
}

/* Mohlo by vás zajímat */
.related { padding-block: 96px; }
.related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.related__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.related__all { flex-shrink: 0; font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.related__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.related__grid > li { display: flex; flex-direction: column; }
.rel-card { background: #fff; }
.rel-card__topic { display: none; }
@media (max-width: 1023px) {
  .related { padding-block: 64px; }
  .related__grid { margin-top: 24px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* kompaktní řádky: náhled vlevo, téma · datum, titulek */
  .rel-card { flex-direction: row; gap: 20px; padding: 12px; border-radius: 20px; }
  .rel-card .post-card__media { flex-shrink: 0; width: 140px; }
  .rel-card .post-card__media img { aspect-ratio: 1; border-radius: 14px; }
  .rel-card .topic-chip, .rel-card .post-meta__read, .rel-card .post-card__text { display: none; }
  .rel-card .post-card__body { padding: 0; justify-content: center; gap: 6px; }
  .rel-card .post-meta { gap: 0; font-size: 13px; }
  .rel-card__topic { display: inline; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.04em; }
  .rel-card time::before { content: "\00a0·\00a0"; }
  .rel-card .post-card__title { margin-top: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
}
@media (max-width: 639px) {
  .related { padding-block: 48px; }
  .related__all { display: none; }
  .related__grid { gap: 20px; }
  .rel-card { gap: 14px; }
  .rel-card .post-card__media { width: 104px; }
  .rel-card .post-card__title { font-size: 18px; }
}
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.prose h2 + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--steel); }
.prose ul li::marker { content: "• "; font-weight: 700; }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose-fig { margin: 40px 0 0; }
.prose-fig img { width: 100%; height: auto; border-radius: var(--radius); }
.prose-fig figcaption { margin-top: 12px; font-size: 15px; font-style: italic; }
.prose .post-cta { margin-top: 56px; }
@media (max-width: 767px) {
  .prose h2 { margin-top: 40px; font-size: 25px; }
}
