/* dsk-pl-blog-rail-pass.v1
   PL blog rail/padding pass after home/non-blog rail rollout.
   Scope: PL blog hubs + PL blog article owner pages only. EN untouched. */

:is(html[lang="pl"], html[lang="uk"]) body.dsk-pl-blog-rail-pass-v1 {
  --dsk-blog-site-rail: min(1680px, calc(100% - clamp(80px, 8vw, 110px)));
  --dsk-blog-site-left: calc((100% - var(--dsk-blog-site-rail)) / 2);
  --dsk-blog-standard-rail: min(1520px, var(--dsk-blog-site-rail));
  --dsk-blog-prose-pass: min(900px, 100%);
  --dsk-blog-prose-narrow: min(74ch, 860px);
  --dsk-blog-wide-axis-rail: var(--dsk-blog-site-rail);
  --dsk-blog-wide-axis-left: var(--dsk-blog-site-left);
  --dsk-blog-footer-home-rail-width: var(--dsk-blog-site-rail);
  --dsk-blog-footer-home-rail-left: var(--dsk-blog-site-left);
  --dsk-blog-hero-shell-max: var(--dsk-blog-site-rail);
  --dsk-blog-hero-shell-left: var(--dsk-blog-site-left);
  --dsk-global-nav-footer-rail: var(--dsk-blog-site-rail);
}

@media (max-width: 1279px) {
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-pl-blog-rail-pass-v1 {
    --dsk-blog-site-rail: min(960px, calc(100% - 40px));
    --dsk-blog-site-left: calc((100% - var(--dsk-blog-site-rail)) / 2);
    --dsk-blog-standard-rail: var(--dsk-blog-site-rail);
    --dsk-blog-wide-axis-rail: var(--dsk-blog-site-rail);
    --dsk-blog-wide-axis-left: var(--dsk-blog-site-left);
    --dsk-blog-footer-home-rail-width: var(--dsk-blog-site-rail);
    --dsk-blog-footer-home-rail-left: var(--dsk-blog-site-left);
    --dsk-blog-hero-shell-max: var(--dsk-blog-site-rail);
    --dsk-blog-hero-shell-left: var(--dsk-blog-site-left);
    --dsk-global-nav-footer-rail: var(--dsk-blog-site-rail);
  }
}

@media (max-width: 640px) {
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-pl-blog-rail-pass-v1 {
    --dsk-blog-site-rail: min(560px, calc(100% - 36px));
    --dsk-blog-site-left: calc((100% - var(--dsk-blog-site-rail)) / 2);
    --dsk-blog-standard-rail: var(--dsk-blog-site-rail);
    --dsk-blog-prose-pass: 100%;
    --dsk-blog-prose-narrow: 100%;
    --dsk-blog-wide-axis-rail: var(--dsk-blog-site-rail);
    --dsk-blog-wide-axis-left: var(--dsk-blog-site-left);
    --dsk-blog-footer-home-rail-width: var(--dsk-blog-site-rail);
    --dsk-blog-footer-home-rail-left: var(--dsk-blog-site-left);
    --dsk-blog-hero-shell-max: var(--dsk-blog-site-rail);
    --dsk-blog-hero-shell-left: var(--dsk-blog-site-left);
  }
}

/* Footer: keep blog aligned to the same outer rail as the newer PL pages.
   Header rail is owned by dsk-nav-owner.v2.css so page transitions do not jitter. */
:is(html[lang="pl"], html[lang="uk"]) body.dsk-pl-blog-rail-pass-v1 footer.dsk-site-footer > .dsk-custom-footer,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-pl-blog-rail-pass-v1 footer.dsk-site-footer .dsk-custom-footer.dsk-home-footer-owner-v4 {
  width: var(--dsk-blog-site-rail);
  inline-size: var(--dsk-blog-site-rail);
  max-width: var(--dsk-blog-site-rail);
  max-inline-size: var(--dsk-blog-site-rail);
  margin-left: var(--dsk-blog-site-left);
  margin-right: auto;
  box-sizing: border-box;
}

/* Blog hubs / listings. Keep the structure, narrow the rail and tighten rhythm. */
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-hub-hero .dsk-about-hero__content,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-hub-hero .dsk-about-hero__inner,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-hub-hero .dsk-about-hero__container,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-hub-filters__inner,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-quicknav,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-listing-owner__rail {
  width: var(--dsk-blog-site-rail);
  max-width: var(--dsk-blog-site-rail);
  margin-left: var(--dsk-blog-site-left);
  margin-right: auto;
  box-sizing: border-box;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-listing-owner,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-listing-owner__rail,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-extra,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta {
  --dsk-blog-rail-max: 1680px;
  --dsk-blog-rail: var(--dsk-blog-site-rail);
  --dsk-blog-rail-left: var(--dsk-blog-site-left);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-listing-owner {
  padding-top: clamp(48px, 4.8vw, 82px);
  padding-bottom: clamp(56px, 5vw, 88px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-most-read {
  margin-bottom: clamp(28px, 3vw, 44px);
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 24px;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card-grid {
  gap: clamp(20px, 1.8vw, 30px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card {
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(24, 44, 76, .075);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card__content {
  min-height: 248px;
  padding: clamp(20px, 2vw, 28px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card__summary {
  line-height: 1.56;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 .dsk-cta-lab__inner {
  width: var(--dsk-blog-site-rail);
  max-width: var(--dsk-blog-site-rail);
  margin-left: var(--dsk-blog-site-left);
  margin-right: auto;
}

/* Blog articles. Title/media use the site rail; prose stays readable and left-aligned. */
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-extra,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta {
  --dsk-blog-rail-max: 1680px;
  --dsk-blog-rail: var(--dsk-blog-site-rail);
  --dsk-blog-rail-left: var(--dsk-blog-site-left);
  --dsk-blog-prose: 900px;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner {
  padding-top: clamp(38px, 3.8vw, 66px);
  padding-bottom: clamp(48px, 4.8vw, 80px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__rail,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta .dsk-blog-article-owner__rail,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta .dsk-blog-article-owner__rail {
  width: var(--dsk-blog-site-rail);
  max-width: var(--dsk-blog-site-rail);
  margin-left: var(--dsk-blog-site-left);
  margin-right: auto;
  box-sizing: border-box;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__title {
  max-width: min(100%, 1320px);
  margin-bottom: clamp(22px, 2vw, 34px);
  letter-spacing: -.025em;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__media {
  margin-bottom: clamp(30px, 2.8vw, 48px);
  border-radius: 24px;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__image {
  height: clamp(280px, 18vw, 420px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-extra .dsk-blog-article-owner__prose {
  width: var(--dsk-blog-prose-pass);
  max-width: var(--dsk-blog-prose-narrow);
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  font-size: clamp(1.02rem, .98rem + .12vw, 1.1rem);
  line-height: 1.72;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose h2 {
  margin-top: clamp(32px, 3vw, 50px);
  margin-bottom: clamp(10px, 1vw, 15px);
  line-height: 1.18;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose h3 {
  margin-top: clamp(24px, 2.3vw, 36px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose p,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose ul,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose ol {
  margin-bottom: 1.12rem;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main p.dsk-blog-related-inline-links,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main p.dsk-article-brief__links,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-callout {
  margin-top: clamp(18px, 1.8vw, 28px);
  margin-bottom: clamp(22px, 2vw, 32px);
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 22px;
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta {
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(30px, 3.4vw, 52px);
}

:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta__box,
:is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta__box {
  width: min(100%, 960px);
  max-width: 960px;
  margin-left: 0;
  margin-right: auto;
  border-radius: 26px;
}

@media (max-width: 1279px) {
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta__box,
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta__box {
    width: 100%;
    max-width: 900px;
  }
}

@media (max-width: 640px) {
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-listing-owner {
    padding-top: 42px;
    padding-bottom: 54px;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-hub.dsk-pl-blog-rail-pass-v1 main .dsk-blog-card__content {
    min-height: 0;
    padding: 20px;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner {
    padding-top: 30px;
    padding-bottom: 52px;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__media {
    border-radius: 18px;
    margin-bottom: 26px;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__image {
    height: clamp(210px, 58vw, 310px);
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-article-owner__prose,
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-extra .dsk-blog-article-owner__prose {
    font-size: 1.02rem;
    line-height: 1.66;
  }

  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-service-cta__box,
  :is(html[lang="pl"], html[lang="uk"]) body.dsk-blog-article-owner-v1.dsk-pl-blog-rail-pass-v1 main .dsk-blog-final-cta__box {
    padding: 22px;
    border-radius: 22px;
  }
}
