/* Blog Page - Consistent with Homepage Design */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background: #ffffff;
}

/* Remove all underlines from blog page links */
.blog-hero-section a,
.blog-content a,
.blog-category a,
.blog-post-items a,
.page-wrapper a {
  text-decoration: none !important;
}

/* Remove focus outline on blog page */
*:focus,
button:focus,
a:focus {
  outline: none;
}

.page-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 0;
  background: #ffffff;
}

.section-wrapper {
  position: relative;
  z-index: 1;
}

.blog-hero-section {
  justify-self: center;
  margin: 6rem auto 4rem;
  width: 100%;
  max-width: 1320px;
  position: relative;
  z-index: 1;
  padding-top: 110px;
}

.blog-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(243, 231, 106, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blog-hero-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(121, 72, 156, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blog-hero-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 2;
}

.blog-hero-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #79489C;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.5px;
  position: relative;
  line-height: 1.2;
  padding-bottom: 1rem;
}

.article-body figure img{
  max-width: 720px;
  
}
.article-header{
  max-width: 720px;
}
.article-body{
  max-width: 720px;
}
.blog-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 3rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  text-align: center;
  padding: 0 2.2rem;
}

.blog-hero-article {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(121, 72, 156, 0.1), 0 4px 6px -2px rgba(121, 72, 156, 0.05);
  height: 100%;
  border: 1px solid rgba(121, 72, 156, 0.08);
  position: relative;
}

.blog-hero-article .new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-hero-article a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-post-item a {
  text-decoration: none;
  color: inherit;
}

.blog-category-item a {
  text-decoration: none;
}

.blog-hero-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(121, 72, 156, 0.15), 0 10px 10px -5px rgba(121, 72, 156, 0.08), 0 0 30px rgba(121, 72, 156, 0.2);
  border-color: rgba(121, 72, 156, 0.15);
}

.text-start {
  text-align: start;
  padding-left: 0;
}

.blog-hero-article img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: #e5e7eb;
  display: block;
}

.blog-hero-article-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  flex: 1;
}

.blog-hero-article-content .meta {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(121, 72, 156, 0.1);
}

.blog-hero-article-content h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.3;
}

.blog-hero-article-content p {
  margin: 0;
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.7;
  flex: 1;
}

.blog-category-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}

.blog-category-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background: linear-gradient(135deg, #79489C 0%, #995bc5 100%);
  margin: 1rem auto 0;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(121, 72, 156, 0.3);
}

.blog-category {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem 0;
}

.blog-category-L {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.blog-category-item a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 6px -1px rgba(121, 72, 156, 0.1), 0 2px 4px -1px rgba(121, 72, 156, 0.06);
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(121, 72, 156, 0.1);
  text-decoration: none;
}

.blog-category-item a:hover {
  background: linear-gradient(135deg, rgba(121, 72, 156, 0.1) 0%, rgba(153, 91, 197, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(121, 72, 156, 0.15), 0 4px 6px -2px rgba(121, 72, 156, 0.1);
  border-color: rgba(121, 72, 156, 0.2);
  color: #79489C;
}

.blog-category-item a:active {
  transform: scale(0.95);
}

.blog-category-item a.active {
  background: linear-gradient(135deg, #79489C 0%, #995BC5 100%);
  color: #fff;
  border-color: #79489C;
}

.blog-category-item a img {
  display: none;
}

.blog-category-item div {
  color: rgb(41, 41, 41);
  display: inline-block;
}

.hero-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  align-items: stretch;
}

.hero-wrapper > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
}

.hero-wrapper > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 0 0 auto;
  width: 500px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  transition: opacity 0.3s ease;
}

.blog-grid.loading {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
}

.blog-grid.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(121, 72, 156, 0.2);
  border-top-color: #79489C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.blog-post-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(121, 72, 156, 0.1), 0 4px 6px -2px rgba(121, 72, 156, 0.05);
  border: 1px solid rgba(121, 72, 156, 0.08);
  position: relative;
}

.blog-post-item .new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(121, 72, 156, 0.15), 0 10px 10px -5px rgba(121, 72, 156, 0.08), 0 0 30px rgba(121, 72, 156, 0.2);
  border-color: rgba(121, 72, 156, 0.15);
}

.blog-post-item-top img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}

.image-wrapper img {
  border-radius: 16px 16px 0 0;
}

.blog-post-item-bottom {
  padding: 1.25rem;
}

.blog-post-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--dark-navy);
  line-height: 1.3;
}

.blog-post-paragraph {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.meta-author {
  font-weight: 600;
  color: #111827;
}

.blog-categories-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.blog-hero-article-small {
  max-width: 100%;
  flex: 1;
  min-height: 0;
}

.blog-hero-article-small a {
  flex-direction: row;
  align-items: stretch;
}

.blog-hero-article-small img {
  width: 180px;
  height: auto;
  min-height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.blog-hero-article-small .blog-hero-article-content {
  flex: 1;
  padding: 1.25rem;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;
}

.blog-hero-article-small .blog-hero-article-content .meta {
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(121, 72, 156, 0.1);
}

.blog-hero-article-small h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--dark-navy);
}

.blog-hero-article-small p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.blog-hero-article-small .blog-categories-row {
  margin-top: auto;
}

.category-button-child {
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(94, 94, 94);
  background-color: rgba(235, 235, 235, 0.6);
  border-radius: 25px;
  transition: all 0.2s ease;
  display: inline-block;
}

.category-button-child:hover {
  background-color: rgba(121, 72, 156, 0.15);
  color: #79489C;
}

.services-overview-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-navy);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
    position: relative;
    text-align: center;
}



.headline {
   font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-navy);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
    position: relative;
    text-align: center;
}
.headline::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy) 0%, var(--accent-teal) 50%, var(--primary-navy) 100%);
    border-radius: 2px;
}
/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #79489C 0%, #995bc5 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(121, 72, 156, 0.3), 0 4px 6px -2px rgba(121, 72, 156, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#scrollToTop:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(121, 72, 156, 0.4), 0 10px 10px -5px rgba(121, 72, 156, 0.3), 0 0 30px rgba(121, 72, 156, 0.3);
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollToTop svg {
  width: 24px;
  height: 24px;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-wrapper > div:first-child,
  .hero-wrapper > div:last-child {
    width: 100%;
    max-width: 600px;
  }
 
  .wp-post-image,.article-main{
    max-width: 100%;
    height: auto;
  }
  .blog-hero-article {
    max-width: 100%;
  }
  ol li, img{
    max-width: 100%;
  }
}

/* Tablet and mobile breakpoint */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 4rem 1.5rem;
  }
  .post-title h1 {
    font-size: 1.7rem !important;
  }
  .section-wrapper{
    padding: 4rem 1rem 2rem !important;
  }
  .blog-hero-section {
    margin: 4rem auto 3rem;
  }
  .blog-post-item-top img{
    max-height: 150px;
  }
  .blog-hero-wrapper {
    align-items: center;
    flex-direction: column;
  }

  .blog-hero-wrapper h1 {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .blog-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
  }

  .blog-category-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-wrapper {
    align-items: center;
    flex-direction: column;
    min-height: fit-content;
    gap: 2rem;
  }

  .blog-category {
    flex-direction: column;
    align-items: center;
  }

  .blog-category-L {
    justify-content: center;

  }

  .blog-category-item a {
    font-size: 1.05rem;
    padding: 0.85rem 1.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }

  .blog-hero-article {
    width: 100%;
    max-width: 100%;
  }

  .blog-hero-article a {
    flex-direction: column;
  }

  .blog-hero-article img {
    width: 100%;
    height: 150px;
  }

  .blog-hero-article-content {
    padding: 2rem;
  }

  .blog-hero-article-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .blog-hero-article-content p {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .blog-hero-article-small a {
    flex-direction: column;
  }

  .blog-hero-article-small img {
    width: 100%;
    height: 150px;
  }

  .blog-hero-article-small .blog-hero-article-content {
    padding: 1.5rem;
  }
  
  .blog-hero-article-small h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .blog-hero-article-small p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .blog-post-item-bottom {
    padding: 1.5rem;
  }

  .blog-post-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .blog-post-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .meta {
    font-size: 0.95rem;
  }
  .blog-subtitle{
    font-size: 14px;
  }
  .category-button-child {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* Small tablet breakpoint */
@media (max-width: 600px) {
  .blog-category-L {
    overflow-x: auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .blog-category-item a {
    white-space: nowrap;
  }
}

/* Mobile breakpoint */
@media (max-width: 576px) {
  .blog-hero-wrapper h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .blog-hero-article {
    width: 100%;
    max-width: 100%;
  }

  .blog-hero-article-content h2 {
    font-size: 1rem;
    font-weight: 600;
  }

  .blog-hero-article-content p {
    font-size: 0.85rem;
  }

  .blog-category {
    gap: 0.5rem;
  }

  .blog-category-item a {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-post-item-bottom {
    padding: 1rem 0.75rem;
  }

  .blog-post-title {
    font-size: 1.05rem;
  }

  .blog-post-paragraph {
    font-size: 0.9rem;
  }

  .hero-wrapper {
    padding: 10px;
    gap: 1.5rem;
    min-height: fit-content;
  }

  #scrollToTop {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 60px;
  }

  #scrollToTop svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .blog-hero-wrapper h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .blog-category-title {
    font-size: 1.2rem;
  }
}

/* === Tabulky v textu článku (single.php) ===
   Inline styly z editoru odstraňuje functions.php (trigy_wrap_article_tables),
   který zároveň přidává obal .article-table-wrap kvůli rolování na mobilu. */

.article-body .article-table-wrap {
  margin: 2rem 0;
  border: 1px solid rgba(121, 72, 156, 0.14);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px -16px rgba(121, 72, 156, 0.3);
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 72, 156, 0.35) transparent;
}

.article-body .article-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.article-body .article-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(121, 72, 156, 0.35);
  border-radius: 999px;
}

.article-body table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark-navy, #1e293b);
  background: #fff;
}

.article-body table th,
.article-body table td {
  border: none;
  border-bottom: 1px solid rgba(121, 72, 156, 0.1);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  background-color: transparent;
}

.article-body table th + th,
.article-body table td + td {
  border-left: 1px solid rgba(121, 72, 156, 0.08);
}

/* Hlavička */
.article-body table th {
  background: linear-gradient(135deg, rgba(121, 72, 156, 0.08) 0%, rgba(153, 91, 197, 0.14) 100%);
  color: var(--main-purple, #79489C);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(121, 72, 156, 0.2);
}

.article-body table thead th,
.article-body table tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Řádky */
.article-body table tbody tr:nth-child(even) td {
  background-color: rgba(121, 72, 156, 0.025);
}

.article-body table tbody tr:hover td {
  background-color: rgba(243, 231, 106, 0.16);
}

.article-body table tbody tr:last-child td {
  border-bottom: none;
}

/* První sloupec = název položky */
.article-body table td:first-child {
  font-weight: 600;
  color: var(--dark-navy, #1e293b);
}

.article-body table td strong {
  color: var(--dark-navy, #1e293b);
  font-weight: 700;
}

.article-body table td a {
  color: var(--main-purple, #79489C);
  font-weight: 600;
}

.article-body table caption {
  caption-side: bottom;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: left;
}

@media (max-width: 768px) {
  .article-body .article-table-wrap {
    margin: 1.5rem 0;
    border-radius: 12px;
  }

  .article-body table {
    font-size: 0.88rem;
  }

  .article-body table th,
  .article-body table td {
    padding: 0.7rem 0.8rem;
  }

  .article-body table th {
    font-size: 0.74rem;
  }
}

/* === Inline CTA v textu článku === */
.cta-inline {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  color: #fff;
  background: linear-gradient(135deg, #2b1240 0%, #4a2270 55%, #8740bf 130%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(74, 34, 112, 0.3);
}

.cta-inline::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 231, 106, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inline .cta-inline-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.cta-inline .cta-inline-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.cta-inline .cta-inline-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  text-decoration: none;
}

.cta-inline .cta-inline-button:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
}

/* Tlačítko + volitelný telefon vedle sebe */
.cta-inline .cta-inline-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.cta-inline .cta-inline-phone {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.cta-inline .cta-inline-phone strong {
  color: #fff;
  font-weight: 800;
  border-bottom: 2px solid rgba(243, 231, 106, 0.6);
  transition: border-color 0.2s ease;
}

.cta-inline .cta-inline-phone:hover {
  color: #fff;
  text-decoration: none;
}

.cta-inline .cta-inline-phone:hover strong {
  border-color: #F3E76A;
}

@media (max-width: 600px) {
  .cta-inline {
    padding: 1.5rem 1.25rem;
  }

  .cta-inline .cta-inline-title {
    font-size: 1.15rem;
  }

  .cta-inline .cta-inline-button {
    width: 100%;
    justify-content: center;
  }

  .cta-inline .cta-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-inline .cta-inline-phone {
    justify-content: center;
    white-space: normal;
  }
}

/* ============================================================
   Textová hierarchie článku (shortcody v includes/article-shortcodes.php)
   Reference: Desktop/instrukce-clanky-podzim-2026/reference/text-hierarchy-guidelines.md

   Rozsah: pravidla míří jen na přímé potomky .article-body (text z editoru)
   a na vlastní komponenty (.lead, .box, .note, .quote, .stat, .related-inline,
   figure). Nic z toho nezasahuje CTA (.cta-inline, .cta-article), obsah
   (.article-toc) ani tabulky (.article-table-wrap má vlastní styly výše).
   Specificita .article-main .article-body > … přebíjí inline styly v single.php.

   Scale (desktop): lead 22 / text 18 / h2 30 / h3 22 / box 17 / poznámka a popisek 15 / label 13
   ============================================================ */

/* style.css nastavuje na * font-size-adjust: 0.504, což Inter vykresluje
   o ~8 % menší, než říká font-size. U textu článku a komponent ho vypínáme,
   aby scale odpovídal skutečným pixelům. CTA si nechává globální nastavení. */
.article-main .article-body > :is(p, ul, ol, h2, h3, h4, figure),
.article-main .article-body > :is(p, ul, ol, h2, h3, h4, figure) *,
.article-main .article-body :is(.box, .note, .quote, .stat, .related-inline),
.article-main .article-body :is(.box, .note, .quote, .stat, .related-inline) * {
  font-size-adjust: none;
}

/* sloupec */
.article-main .article-body {
  max-width: 720px;
}

/* úroveň 1: běžný text z editoru (přímí potomci) */
.article-main .article-body > p,
.article-main .article-body > ul > li,
.article-main .article-body > ol > li {
  font-size: 17px;
  line-height: 1.65;
  color: #1f2937;
  margin: 0 0 20px;
}
.article-main .article-body > ul,
.article-main .article-body > ol {
  margin: 0 0 24px;
  padding-left: 1.4rem;
}
.article-main .article-body > ul > li,
.article-main .article-body > ol > li {
  margin-bottom: 8px;
}

/* nadpisy z editoru */
.article-main .article-body > h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark-navy, #1e293b);
  margin: 60px 0 20px;
}
.article-main .article-body > h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--dark-navy, #1e293b);
  margin: 40px 0 12px;
}
.article-main .article-body > h4 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dark-navy, #1e293b);
  margin: 32px 0 10px;
}
.article-main .article-body > h2:first-child,
.article-main .article-body > .lead + h2 {
  margin-top: 32px;
}

/* inline prvky jen v textu článku a v komponentách, ne v CTA */
.article-main .article-body > p strong,
.article-main .article-body > ul li strong,
.article-main .article-body > ol li strong,
.article-main .article-body :is(.box, .note, .quote) strong {
  font-weight: 700;
  color: inherit;
}
.article-main .article-body > p a,
.article-main .article-body > ul li a,
.article-main .article-body > ol li a,
.article-main .article-body :is(.box, .note, .quote, .stat) a,
.article-main .article-body > figure figcaption a {
  color: var(--main-purple, #8740bf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-main .article-body > p a:hover,
.article-main .article-body > ul li a:hover,
.article-main .article-body > ol li a:hover,
.article-main .article-body :is(.box, .note, .quote, .stat) a:hover,
.article-main .article-body > figure figcaption a:hover {
  color: #5f2a8a;
}
.article-main .article-body > hr,
.article-main .article-body > hr.article-hr {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 48px 0;
}

/* úroveň 0: lead */
.article-main .article-body > p.lead {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--dark-navy, #1e293b);
  margin-bottom: 28px;
}

/* obrázek s popiskem (shortcode i blok Obrázek z editoru) */
.article-main .article-body > figure {
  margin: 36px 0;
}
.article-main .article-body > figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.article-main .article-body > figure figcaption {
  font-size: 15px;
  line-height: 1.5;
  color: var(--neutral-slate, #596677);
  margin-top: 10px;
  text-align: left;
}

/* boxy: klic, tip, pozor, priklad */
.article-main .article-body .box {
  border-radius: 8px;
  padding: 20px 24px;
  margin: 36px 0;
  background: #f4f5f6;
}
.article-main .article-body .box p,
.article-main .article-body .box li {
  font-size: 17px;
  line-height: 1.55;
  color: #1f2937;
  margin: 0 0 12px;
}
.article-main .article-body .box ul,
.article-main .article-body .box ol {
  margin: 0;
  padding-left: 1.2rem;
}
.article-main .article-body .box li { margin-bottom: 6px; }
.article-main .article-body .box > :last-child,
.article-main .article-body .box li:last-child {
  margin-bottom: 0;
}
.article-main .article-body .box__label {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-slate, #596677);
  margin: 0 0 10px;
}
.article-main .article-body .box--key { background: #f5f0fa; }
.article-main .article-body .box--key .box__label { color: var(--main-purple, #8740bf); }
.article-main .article-body .box--tip { background: #eef7f2; }
.article-main .article-body .box--tip .box__label { color: #1f7a4d; }
.article-main .article-body .box--warn {
  background: #fffbe6;
  border-left: 4px solid var(--accent-teal, #F3E76A);
}
.article-main .article-body .box--warn .box__label { color: #8a6d00; }
.article-main .article-body .box--example { background: #f4f5f6; }

/* úroveň 5: poznámka */
.article-main .article-body .note {
  border-left: 2px solid #d1d5db;
  padding: 4px 0 4px 16px;
  margin: 28px 0;
}
.article-main .article-body .note .box__label { margin-bottom: 4px; }
.article-main .article-body .note p,
.article-main .article-body .note li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--neutral-slate, #596677);
  margin: 0 0 6px;
}
.article-main .article-body .note > :last-child { margin-bottom: 0; }

/* citace ze shortcodu (obecné blockquote z single.php zůstává pro cizí obsah) */
.article-main .article-body blockquote.quote {
  border-left: 4px solid var(--main-purple, #8740bf);
  background: none;
  border-radius: 0;
  font-style: normal;
  padding: 4px 0 4px 20px;
  margin: 36px 0;
  color: inherit;
}
.article-main .article-body blockquote.quote p {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--dark-navy, #1e293b);
  margin: 0 0 8px;
}
.article-main .article-body blockquote.quote footer {
  font-size: 15px;
  color: var(--neutral-slate, #596677);
}

/* číslo */
.article-main .article-body .stat {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 32px 0;
  align-items: center;
}
.article-main .article-body .stat__num {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--main-purple, #8740bf);
  white-space: nowrap;
}
.article-main .article-body .stat__txt {
  font-size: 17px;
  line-height: 1.5;
  color: #1f2937;
}

/* další čtení */
.article-main .article-body .related-inline { margin: 28px 0; }
.article-main .article-body .related-inline a {
  display: block;
  background: #f5f0fa;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
}
.article-main .article-body .related-inline a:hover {
  background: #ede3f7;
  text-decoration: none;
}
.article-main .article-body .related-inline strong {
  display: block;
  font-size: 17px;
  color: var(--dark-navy, #1e293b);
  margin-bottom: 4px;
}
.article-main .article-body .related-inline span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--neutral-slate, #596677);
}

@media (max-width: 600px) {
  .article-main .article-body > p,
  .article-main .article-body > ul > li,
  .article-main .article-body > ol > li { font-size: 17px; }
  .article-main .article-body > p.lead { font-size: 20px; }
  .article-main .article-body > h2 { font-size: 26px; margin-top: 44px; }
  .article-main .article-body > h3 { font-size: 20px; }
  .article-main .article-body > h4 { font-size: 18px; }
  .article-main .article-body .box { padding: 16px 18px; }
  .article-main .article-body .box p,
  .article-main .article-body .box li { font-size: 16px; }
  .article-main .article-body blockquote.quote p { font-size: 20px; }
  .article-main .article-body .stat { flex-direction: column; gap: 6px; }
  .article-main .article-body .stat__num { font-size: 32px; }
}
