/**
 * pysiecblog - lista wpisów + pojedynczy wpis. 1:1 z surowego pliku źródłowego
 * makiety (linie 2366-2503), tokeny z assets/css/custom.css. Zdjęcia to na razie
 * gradientowe placeholdery (ten sam wzorzec co hero/tiles/deal) - moduł nie ma
 * jeszcze pola na upload realnej okładki wpisu.
 */

.pysiec-blog,
.pysiec-blog-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 76px);
  box-sizing: border-box;
}

.pysiec-blog__crumbs {
  font-size: 13px;
  color: rgba(62, 47, 35, .7);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pysiec-blog__crumbs a {
  color: rgba(62, 47, 35, .7);
  text-decoration: none;
}

.pysiec-blog__crumb-current {
  color: var(--pysiec-text, #1a1a18);
}

/* === Lista wpisów === */
.pysiec-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.pysiec-blog__badge {
  display: inline-block;
  background: rgba(217, 167, 160, .28);
  color: var(--pysiec-espresso, #3e2f23);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--pysiec-radius-pill, 999px);
}

.pysiec-blog__title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 16px 0 0;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-blog__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 12px 0 0;
  max-width: 56ch;
}

.pysiec-blog__count {
  font-size: 13px;
  color: rgba(62, 47, 35, .7);
  white-space: nowrap;
}

.pysiec-blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 3vw, 28px);
}

.pysiec-blog__tag {
  height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--pysiec-radius-pill, 999px);
  border: 1px solid var(--pysiec-line-24, rgba(62, 47, 35, .24));
  background: transparent;
  color: var(--pysiec-espresso, #3e2f23);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pysiec-blog__tag:hover,
.pysiec-blog__tag:focus-visible {
  border-color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-blog__tag.is-active {
  background: var(--pysiec-espresso, #3e2f23);
  border-color: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
}

.pysiec-blog__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
  border-radius: var(--pysiec-radius-lg, 26px);
  overflow: hidden;
  margin-top: clamp(16px, 2.4vw, 24px);
  text-decoration: none;
}

.pysiec-blog__hero:hover,
.pysiec-blog__hero:focus-visible {
  color: var(--pysiec-bg, #faf8f3);
}

.pysiec-blog__hero-photo {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 240px;
  background: repeating-linear-gradient(135deg, #4a392b 0 12px, #55422f 12px 24px);
}

.pysiec-blog__hero-body {
  flex: 1.2 1 320px;
  min-width: 0;
  padding: clamp(24px, 3.6vw, 40px);
  box-sizing: border-box;
}

.pysiec-blog__hero-tag {
  display: inline-block;
  background: rgba(143, 163, 92, .28);
  color: #c9d8a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pysiec-radius-pill, 999px);
}

.pysiec-blog__hero-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 16px 0 0;
  max-width: 26ch;
}

.pysiec-blog__hero-lead {
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 52ch;
  opacity: .85;
}

.pysiec-blog__hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.pysiec-blog__hero-cta {
  height: 46px;
  padding: 0 22px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.pysiec-blog__hero-author {
  font-size: 13px;
  opacity: .75;
}

.pysiec-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(16px, 2.4vw, 24px);
}

.pysiec-blog__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: var(--pysiec-radius-xl, 22px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pysiec-blog__card:hover,
.pysiec-blog__card:focus-visible {
  border-color: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-blog__card-photo {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 10px, #f0e7d5 10px 20px);
}

.pysiec-blog__card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.pysiec-blog__card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pysiec-accent-green, #8fa35c);
}

.pysiec-blog__card-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 18.5px;
  line-height: 1.25;
  margin: 8px 0 0;
}

.pysiec-blog__card-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 8px 0 0;
  flex: 1 1 auto;
}

.pysiec-blog__card-cta {
  font-weight: 700;
  font-size: 14px;
  color: var(--pysiec-brand, #b08858);
  margin-top: 14px;
}

.pysiec-blog__empty {
  background: #fff;
  border: 1px dashed var(--pysiec-line-30, rgba(62, 47, 35, .3));
  border-radius: var(--pysiec-radius-xl, 22px);
  padding: 40px 24px;
  text-align: center;
  margin-top: 20px;
}

.pysiec-blog__empty-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 20px;
}

.pysiec-blog__empty p {
  font-size: 15px;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 8px 0 18px;
}

.pysiec-blog__empty-cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* === Pojedynczy wpis === */
.pysiec-blog-post__wrap {
  max-width: 760px;
  margin: 0 auto;
}

.pysiec-blog-post__tag {
  display: inline-block;
  background: rgba(143, 163, 92, .18);
  color: #56663a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pysiec-radius-pill, 999px);
  margin-top: 18px;
}

.pysiec-blog-post__title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 16px 0 0;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-blog-post__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.pysiec-blog-post__avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 6px, #f0e7d5 6px 12px);
  flex: 0 0 auto;
}

.pysiec-blog-post__byline-text {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-blog-post__byline-meta {
  opacity: .75;
}

.pysiec-blog-post__cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--pysiec-radius-lg, 24px);
  margin-top: 22px;
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 12px, #f0e7d5 12px 24px);
}

.pysiec-blog-post__summary {
  background: var(--pysiec-cream, #e8dcc5);
  border-radius: 20px;
  padding: 18px 20px;
  margin-top: 24px;
}

.pysiec-blog-post__summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(62, 47, 35, .65);
}

.pysiec-blog-post__summary p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--pysiec-text, #1a1a18);
  margin: 8px 0 0;
}

.pysiec-blog-post__body h2 {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -.02em;
  margin: 30px 0 0;
}

.pysiec-blog-post__body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--pysiec-text, #1a1a18);
  margin: 16px 0 0;
}

.pysiec-blog-post__product {
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: var(--pysiec-radius-lg, 24px);
  padding: clamp(20px, 3vw, 28px);
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  box-sizing: border-box;
}

.pysiec-blog-post__product-photo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, #f2eada 0 9px, #faf8f3 9px 18px);
  flex: 0 0 auto;
  overflow: hidden;
}

.pysiec-blog-post__product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pysiec-blog-post__product-info {
  flex: 1 1 220px;
  min-width: 0;
}

.pysiec-blog-post__product-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pysiec-accent-green, #8fa35c);
}

.pysiec-blog-post__product-name {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 18px;
  margin-top: 6px;
}

.pysiec-blog-post__product-note {
  font-size: 14px;
  color: var(--pysiec-espresso, #3e2f23);
  margin-top: 4px;
}

.pysiec-blog-post__product-cta {
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pysiec-radius-pill, 999px);
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.pysiec-blog-post__product-cta:hover,
.pysiec-blog-post__product-cta:focus-visible {
  background: var(--pysiec-brand-hover, #9b7346);
  color: #fff;
}

.pysiec-blog-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pysiec-blog-post__back {
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pysiec-radius-pill, 999px);
  border: 1px solid var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-espresso, #3e2f23);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pysiec-blog-post__back:hover,
.pysiec-blog-post__back:focus-visible {
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
}

.pysiec-blog-post__related-heading {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -.02em;
  margin: clamp(30px, 4vw, 48px) 0 18px;
}

.pysiec-blog-post__related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  justify-content: center;
}

.pysiec-blog-post__related-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 200px;
  max-width: calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pysiec-blog-post__related-card:hover,
.pysiec-blog-post__related-card:focus-visible {
  border-color: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-blog-post__related-photo {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, var(--pysiec-cream, #e8dcc5) 0 10px, #f0e7d5 10px 20px);
}

.pysiec-blog-post__related-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.pysiec-blog-post__related-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pysiec-accent-green, #8fa35c);
}

.pysiec-blog-post__related-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 16.5px;
  line-height: 1.3;
  margin-top: 6px;
  flex: 1 1 auto;
}

.pysiec-blog-post__related-cta {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--pysiec-brand, #b08858);
  margin-top: 12px;
}

/* === Edytor bloków: zdjęcia okładek i bloki treści (sesja 2026-10-03) === */
.pysiec-blog__hero-photo[style],
.pysiec-blog__card-photo[style],
.pysiec-blog-post__cover[style],
.pysiec-blog-post__related-photo[style] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pysiec-blog-post__body > .pysiec-blog-block { margin-top: 22px; }
.pysiec-blog-block:first-child { margin-top: 0; }

/* Tekst (markdown-lite): nagłówki, listy, linki */
.pysiec-blog-block--text h2,
.pysiec-blog-block__text h2 {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -.02em;
  margin: 30px 0 0;
}
.pysiec-blog-block--text h3,
.pysiec-blog-block__text h3 {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 19px;
  margin: 24px 0 0;
}
.pysiec-blog-block--text p,
.pysiec-blog-block__text p,
.pysiec-blog-block--text li,
.pysiec-blog-block__text li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--pysiec-text, #1a1a18);
}
.pysiec-blog-block--text p,
.pysiec-blog-block__text p { margin: 16px 0 0; }
.pysiec-blog-block--text ul, .pysiec-blog-block--text ol,
.pysiec-blog-block__text ul, .pysiec-blog-block__text ol { margin: 14px 0 0; padding-left: 22px; }
.pysiec-blog-block--text a, .pysiec-blog-block__text a {
  color: var(--pysiec-brand, #b08858);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pysiec-blog-block--text > :first-child, .pysiec-blog-block__text > :first-child { margin-top: 0; }

/* Zdjęcia */
.pysiec-blog-block__figure { margin: 0; }
.pysiec-blog-block__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.pysiec-blog-block__figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(62, 47, 35, .7);
  text-align: center;
}
.pysiec-blog-block--image.pysiec-blog-block--center { max-width: 62%; margin-left: auto; margin-right: auto; }

/* Zdjęcie obok akapitu (lewo/prawo, 1/3 albo 1/2 szerokości) */
.pysiec-blog-block--image-text {
  display: grid;
  gap: 24px;
  align-items: start;
}
.pysiec-blog-block--image-text.is-third { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.pysiec-blog-block--image-text.is-half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pysiec-blog-block--image-text.is-right.is-third { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pysiec-blog-block--image-text.is-right .pysiec-blog-block__media { order: 2; }
.pysiec-blog-block--image-text .pysiec-blog-block__media:empty { display: none; }

/* Galeria */
.pysiec-blog-block--gallery { display: grid; gap: 14px; }
.pysiec-blog-block--gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pysiec-blog-block--gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pysiec-blog-block--gallery .pysiec-blog-block__figure img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Cytat */
.pysiec-blog-block--quote {
  margin: 28px 0 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--pysiec-brand, #b08858);
}
.pysiec-blog-block--quote p {
  margin: 0;
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
}
.pysiec-blog-block--quote cite {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-style: normal;
  color: rgba(62, 47, 35, .7);
}

/* Ramka (jak "W skrócie") */
.pysiec-blog-block--callout {
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--pysiec-cream, #e8dcc5);
}
.pysiec-blog-block__callout-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(62, 47, 35, .65);
}
.pysiec-blog-block--callout p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; }

/* Przycisk */
.pysiec-blog-block--button { text-align: center; }
.pysiec-blog-block__btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--pysiec-brand, #b08858);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pysiec-blog-block__btn:hover { background: var(--pysiec-brand-hover, #9b7346); color: #fff; }

/* Film */
.pysiec-blog-block__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}
.pysiec-blog-block__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 767.98px) {
  .pysiec-blog-block--image-text,
  .pysiec-blog-block--image-text.is-third,
  .pysiec-blog-block--image-text.is-half,
  .pysiec-blog-block--image-text.is-right.is-third { grid-template-columns: 1fr; }
  .pysiec-blog-block--image-text.is-right .pysiec-blog-block__media { order: 0; }
  .pysiec-blog-block--image.pysiec-blog-block--center { max-width: 100%; }
  .pysiec-blog-block--gallery.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
