/* ============ Články (podpůrné SEO stránky) ============ */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: #9aa3b8;
}

.article-meta strong {
  color: var(--white);
  font-weight: 500;
}

.article-section {
  padding: 3.6rem 0 4.6rem;
}

.article-container {
  width: min(780px, calc(100% - 2.4rem));
  margin-inline: auto;
}

/* ---- Typografie obsahu ---- */

.prose {
  font-size: 1.04rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 2.8rem 0 1rem;
  scroll-margin-top: 96px;
}

.prose h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  margin: 1.8rem 0 0.6rem;
}

.prose p,
.prose li {
  color: var(--content);
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--blue-dark);
}

.prose strong {
  color: var(--title);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--blue);
  font-weight: 600;
}

/* ---- Obsah článku ---- */

.toc {
  margin: 0 0 2.2rem;
  padding: 1.3rem 1.5rem;
  background: var(--light);
  border-radius: var(--radius);
}

.toc p {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--title);
}

.prose .toc ol {
  margin: 0;
}

.prose .toc li {
  margin: 0.15rem 0;
}

.prose .toc a {
  color: var(--content);
  text-decoration: none;
}

.prose .toc a:hover {
  color: var(--blue);
}

/* ---- Tabulky ---- */

.table-wrap {
  margin: 1.4rem 0 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--light);
  color: var(--title);
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td:first-child {
  color: var(--title);
  font-weight: 500;
}

/* ---- Tip ---- */

.tip {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  background: rgba(91, 200, 109, 0.09);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tip p:last-child {
  margin: 0;
}

/* ---- Checklist ---- */

.prose .checklist {
  list-style: none;
  padding-left: 0;
}

.prose .checklist li {
  position: relative;
  padding-left: 1.9rem;
}

.prose .checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

/* ---- Časté otázky ---- */

.faq details {
  margin-bottom: 0.7rem;
  padding: 0.95rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  position: relative;
  padding-right: 1.8rem;
  font-weight: 600;
  color: var(--title);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.15rem;
  font-size: 1.35rem;
  color: var(--blue);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0.7rem 0 0;
}

/* ---- Autor + CTA ---- */

.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 3.2rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-avatar {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  font-weight: 700;
}

.author-box p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.author-box p:last-child {
  margin: 0;
}

.author-box .author-name {
  color: var(--title);
  font-weight: 600;
}

.author-box a {
  color: var(--blue);
  font-weight: 600;
}

.author-box a:hover {
  color: var(--blue-dark);
}

.article-cta {
  margin-top: 2rem;
}

.article-cta h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.article-cta .btn {
  margin-top: 0.4rem;
}

/* ---- Další články / rozcestník ---- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card .eyebrow {
  margin-bottom: 0.5rem;
}

.related-card h3,
.related-card .h3-like {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
}

.related-card p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.93rem;
}

.related-more {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.hub-intro {
  max-width: 70ch;
  margin-bottom: 2.2rem;
}

.hub-intro a {
  color: var(--blue);
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
  }

  .prose {
    font-size: 1rem;
  }
}
