:root {
  --blog-heading: #202638;
  --blog-text: #5f6877;
  --blog-muted: #7a8291;
  --blog-coral: #e37062;
  --blog-coral-soft: #fff2f0;
  --blog-line: #f3dedb;
  --blog-line-soft: rgba(227, 112, 98, 0.22);
  --blog-bg-soft: #fff8f7;
  --blog-white: #ffffff;
  --blog-radius: 18px;
  --blog-radius-lg: 26px;
}

.pipper-blog,
.pipper-blog * {
  box-sizing: border-box;
}

/* Skrytie povodneho nadpisu, datumu a obrazka v detaile clanku */
.type-post .news-item-detail > article > header,
.type-post .news-item-detail > article > img[itemprop="image"] {
  display: none !important;
}

.pipper-blog {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
  color: var(--blog-text);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

/* HERO */
.pipper-blog .blog-hero {
  padding: 20px 0 24px;
  border: 0;
  background: transparent;
}

.pipper-blog .blog-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.pipper-blog .blog-kicker {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--blog-coral);
  color: var(--blog-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.pipper-blog .blog-kicker span,
.pipper-blog .blog-kicker .accent {
  color: var(--blog-coral);
}

.pipper-blog .blog-date {
  margin: 0;
  color: var(--blog-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.pipper-blog .blog-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--blog-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.pipper-blog .blog-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--blog-heading);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.42;
}

.pipper-blog .blog-reading-time {
  margin: 22px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--blog-coral);
  color: var(--blog-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* Ak by v HTML omylom ostal blog-meta, nebude z toho pill */
.pipper-blog .blog-meta {
  display: none !important;
}

/* UVODNA FOTKA */
.pipper-blog .blog-image {
  margin: 14px 0 34px;
}

.pipper-blog .blog-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  object-fit: cover;
  border-radius: var(--blog-radius);
}

.pipper-blog .blog-image figcaption {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

/* LAYOUT */
.pipper-blog .blog-layout {
  display: block;
}

.pipper-blog .blog-content {
  width: 100%;
}

/* OBSLAH CLANKU - pouzi len ak ho chces ponechat */
.pipper-blog .blog-toc {
  display: none;
}

/* SEKCIE */
.pipper-blog .blog-section,
.pipper-blog .blog-highlight,
.pipper-blog .blog-note,
.pipper-blog .blog-gallery-section,
.pipper-blog .blog-cta {
  margin-bottom: 34px;
}

.pipper-blog .blog-section h2,
.pipper-blog .blog-note h2,
.pipper-blog .blog-gallery-section h2,
.pipper-blog .blog-cta h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--blog-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.pipper-blog .blog-section > p,
.pipper-blog .blog-note p,
.pipper-blog .blog-gallery-section > p,
.pipper-blog .blog-cta p {
  max-width: 780px;
  margin: 0 0 12px;
  color: var(--blog-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.46;
}

/* POSTUP */
.pipper-blog .blog-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.pipper-blog .step {
  min-width: 0;
}

.pipper-blog .step span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--blog-coral);
  border-radius: 50%;
  background: var(--blog-white);
  color: var(--blog-heading);
  font-size: 16px;
  font-weight: 800;
}

.pipper-blog .step h3 {
  margin: 0 0 6px;
  color: var(--blog-heading);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.22;
}

.pipper-blog .step p {
  margin: 0;
  color: var(--blog-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.38;
}

/* ZVYRAZNENY TIP */
.pipper-blog .blog-highlight,
.pipper-blog .blog-note {
  padding: 24px 28px;
  background: var(--blog-bg-soft);
  border: 1px solid var(--blog-line-soft);
  border-radius: var(--blog-radius-lg);
}

.pipper-blog .highlight-label,
.pipper-blog .cta-label {
  margin: 0 0 10px;
  color: var(--blog-coral);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipper-blog .blog-highlight p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--blog-heading);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.28;
}

/* CHECKLIST */
.pipper-blog .blog-checklist {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
  padding: 24px 28px;
  background: var(--blog-bg-soft);
  border: 1px solid var(--blog-line-soft);
  border-radius: var(--blog-radius);
}

.pipper-blog .blog-checklist h2 {
  margin: 0;
}

.pipper-blog .blog-checklist ul {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

.pipper-blog .blog-checklist ul::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--blog-coral);
}

.pipper-blog .blog-checklist li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
  color: var(--blog-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.pipper-blog .blog-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blog-coral);
  font-weight: 850;
}

/* GALERIA */
.pipper-blog .blog-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.pipper-blog .blog-gallery-head h2 {
  margin: 0;
}

.pipper-blog .blog-gallery-link {
  color: var(--blog-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pipper-blog .blog-gallery-link:hover {
  color: var(--blog-coral);
}

.pipper-blog .blog-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 0 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.pipper-blog .blog-gallery::-webkit-scrollbar {
  height: 6px;
}

.pipper-blog .blog-gallery::-webkit-scrollbar-thumb {
  background: var(--blog-line);
  border-radius: 999px;
}

.pipper-blog .gallery-item {
  scroll-snap-align: start;
}

.pipper-blog .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.pipper-blog .gallery-item h3 {
  margin: 9px 0 2px;
  color: var(--blog-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.pipper-blog .gallery-item p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

/* CTA */
.pipper-blog .blog-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  background: var(--blog-bg-soft);
  border: 1px solid var(--blog-line-soft);
  border-radius: var(--blog-radius);
}

.pipper-blog .blog-cta h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.pipper-blog .blog-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
}

.pipper-blog .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--blog-coral);
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* MOBILE */
@media (max-width: 860px) {
  .pipper-blog {
    width: min(100% - 28px, 720px);
    padding: 22px 0 46px;
  }

  .pipper-blog .blog-hero {
    padding-bottom: 18px;
  }

  .pipper-blog .blog-hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1;
  }

  .pipper-blog .blog-lead {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.38;
  }

  .pipper-blog .blog-reading-time {
    margin-top: 16px;
    font-size: 12px;
  }

  .pipper-blog .blog-image {
    margin: 10px 0 28px;
  }

  .pipper-blog .blog-image img {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .pipper-blog .blog-section,
  .pipper-blog .blog-highlight,
  .pipper-blog .blog-note,
  .pipper-blog .blog-gallery-section,
  .pipper-blog .blog-cta {
    margin-bottom: 28px;
  }

  .pipper-blog .blog-section h2,
  .pipper-blog .blog-note h2,
  .pipper-blog .blog-gallery-section h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
  }

  .pipper-blog .blog-section > p,
  .pipper-blog .blog-note p,
  .pipper-blog .blog-gallery-section > p {
    font-size: 17px;
    line-height: 1.4;
  }

  .pipper-blog .blog-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pipper-blog .step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
  }

  .pipper-blog .step span {
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 14px;
  }

  .pipper-blog .step h3 {
    font-size: 17px;
  }

  .pipper-blog .step p {
    font-size: 15px;
    line-height: 1.34;
  }

  .pipper-blog .blog-highlight,
  .pipper-blog .blog-note {
    padding: 20px;
    border-radius: 20px;
  }

  .pipper-blog .blog-highlight p:last-child {
    font-size: 22px;
    line-height: 1.25;
  }

  .pipper-blog .blog-checklist {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .pipper-blog .blog-checklist li {
    font-size: 15px;
    line-height: 1.3;
  }

  .pipper-blog .blog-gallery-head {
    align-items: flex-start;
  }

  .pipper-blog .blog-gallery {
    grid-auto-columns: 72%;
    gap: 12px;
  }

  .pipper-blog .blog-cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .pipper-blog .cta-button {
    width: 100%;
  }
}

/* Oprava: dlhsi postup nesmie byt v uzkych dlazdiciach */
.pipper-blog .blog-steps {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 18px !important;
  border-top: 1px solid var(--blog-line) !important;
}

.pipper-blog .step {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0 !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--blog-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.pipper-blog .step span {
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  margin: 1px 0 0 !important;
  place-items: center !important;
  border: 1px solid var(--blog-coral) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--blog-heading) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.pipper-blog .step h3 {
  margin: 0 0 5px !important;
  color: var(--blog-heading) !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
}

.pipper-blog .step p {
  margin: 0 !important;
  color: var(--blog-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
}

/* Chybajuca medzera po checklist boxe */
.pipper-blog .blog-checklist {
  margin-bottom: 34px !important;
}

/* Mobile: stale kompaktne, nie dlazdice */
@media (max-width: 860px) {
  .pipper-blog .blog-steps {
    margin-top: 16px !important;
  }

  .pipper-blog .step {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }

  .pipper-blog .step span {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }

  .pipper-blog .step h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  .pipper-blog .step p {
    font-size: 15px !important;
    line-height: 1.34 !important;
  }

  .pipper-blog .blog-checklist {
    margin-bottom: 28px !important;
  }
}