/* =========================================================
   DOTYK PIĘKNA — BLOG TEMPLATE 1.0.1
   Layout bazuje na zatwierdzonym ręcznym wpisie Endermologia.
   ========================================================= */

/* Custom single.php bypasses the theme's default article wrapper, so HERO starts directly below the site header. */
body.dp-blog-template-active .dp-blog-page-main {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

body.dp-blog-template-active .dp-blog-page-main > .dp-blog-post {
  margin-top: 0 !important;
}

/* =========================================================
   DOTYK PIĘKNA – BLOG / ENDERMOLOGIA
   CSS jest w pełni ograniczony do .dp-blog-post
   ========================================================= */

.dp-blog-post {
  --dp-bg: #f8f4f2;
  --dp-surface: #ffffff;
  --dp-ink: #211b1d;
  --dp-muted: #6f6467;
  --dp-line: rgba(33, 27, 29, 0.12);
  --dp-blush: #eadbd5;
  --dp-blush-strong: #c9a99e;
  --dp-gold: #a68455;
  --dp-dark: #1f1a1b;
  --dp-radius-lg: 32px;
  --dp-radius-md: 22px;
  --dp-radius-sm: 14px;
  --dp-shadow: 0 24px 70px rgba(35, 25, 28, 0.1);
  color: var(--dp-ink);
  background: var(--dp-surface);
  font-size: 18px;
  line-height: 1.78;
  overflow: hidden;
}

.dp-blog-post *,
.dp-blog-post *::before,
.dp-blog-post *::after {
  box-sizing: border-box;
}

.dp-blog-post .dp2-shell {
  width: min(1400px, calc(100% - 96px));
  margin-inline: auto;
}

.dp-blog-post a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dp-blog-post img {
  display: block;
  max-width: 100%;
}

.dp-blog-post h1,
.dp-blog-post h2,
.dp-blog-post h3,
.dp-blog-post p,
.dp-blog-post figure,
.dp-blog-post ul {
  margin-top: 0;
}

.dp-blog-post h1,
.dp-blog-post h2,
.dp-blog-post h3 {
  color: var(--dp-ink);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dp-blog-post h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: 1.08;
}

.dp-blog-post h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
}

.dp-blog-post p {
  margin-bottom: 22px;
  color: var(--dp-muted);
}

.dp-blog-post p:last-child {
  margin-bottom: 0;
}

.dp-blog-hero {
  padding: 78px 0 70px;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 169, 158, 0.2), transparent 32%),
    linear-gradient(180deg, #fbf8f7 0%, #f5eeeb 100%);
}

.dp-blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
}

.dp-blog-hero__content {
  max-width: 690px;
}

.dp-blog-hero__category {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--dp-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.dp-blog-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(44px, 4.55vw, 69px);
  line-height: 1.02;
}

.dp-blog-hero__lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #5e5457;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.65;
}

.dp-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #796d70;
  font-size: 14px;
}

.dp-blog-hero__meta span {
  position: relative;
}

.dp-blog-hero__meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dp-blush-strong);
  transform: translateY(-50%);
}

.dp-blog-hero__media {
  position: relative;
  margin-bottom: 0;
}

.dp-blog-hero__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(166, 132, 85, 0.32);
  border-radius: var(--dp-radius-lg);
  pointer-events: none;
}

.dp-blog-hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1076 / 720;
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow);
  object-fit: cover;
}

.dp-blog-hero__media figcaption,
.dp-blog-image figcaption {
  margin-top: 12px;
  color: #817578;
  font-size: 13px;
  line-height: 1.5;
}

.dp-blog-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -36px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(35, 25, 28, 0.08);
  backdrop-filter: blur(12px);
}

.dp-blog-fact {
  display: flex;
  min-height: 132px;
  padding: 28px 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.dp-blog-fact + .dp-blog-fact {
  border-left: 1px solid var(--dp-line);
}

.dp-blog-fact strong {
  margin-bottom: 5px;
  color: var(--dp-ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.05;
}

.dp-blog-fact span {
  color: var(--dp-muted);
  font-size: 14px;
  line-height: 1.45;
}

.dp-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(260px, 340px);
  gap: clamp(56px, 8vw, 120px);
  justify-content: center;
  padding: 94px 0 120px;
}

.dp-blog-content {
  min-width: 0;
}

.dp-blog-intro {
  margin-bottom: 24px;
  color: var(--dp-ink) !important;
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.dp-blog-section {
  padding-top: 80px;
  scroll-margin-top: 130px;
}

.dp-blog-section:first-of-type {
  padding-top: 64px;
}

.dp-blog-list {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.dp-blog-list li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 28px;
  color: var(--dp-muted);
  line-height: 1.62;
}

.dp-blog-list li:last-child {
  margin-bottom: 0;
}

.dp-blog-list--check li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--dp-gold);
  border-radius: 50%;
}

.dp-blog-list--columns {
  columns: 2;
  column-gap: 42px;
}

.dp-blog-list--columns li {
  break-inside: avoid;
}

.dp-blog-list--columns li::before {
  content: "";
  position: absolute;
  top: 0.73em;
  left: 2px;
  width: 12px;
  height: 1px;
  background: var(--dp-gold);
}

.dp-blog-box,
.dp-blog-note,
.dp-blog-benefits {
  margin: 34px 0;
  border-radius: var(--dp-radius-md);
}

.dp-blog-box {
  padding: clamp(28px, 4vw, 44px);
}

.dp-blog-box--soft {
  border: 1px solid rgba(201, 169, 158, 0.34);
  background: #fbf7f5;
}

.dp-blog-box--warning {
  border-left: 4px solid var(--dp-gold);
  border-radius: 0 var(--dp-radius-md) var(--dp-radius-md) 0;
  background: #faf6ef;
}

.dp-blog-box--warning p {
  color: #5d5148;
}

.dp-blog-box--dark {
  background: var(--dp-dark);
  color: #fff;
}

.dp-blog-box--dark h3 {
  color: #fff;
}

.dp-blog-box--dark .dp-blog-list li {
  color: rgba(255, 255, 255, 0.76);
}

.dp-blog-box--dark .dp-blog-list li::before {
  background: #cfb483;
}

.dp-blog-benefits {
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(135deg, #f4eae6 0%, #fbf8f7 100%);
}

.dp-blog-image {
  margin: 44px 0 38px;
}

/* 1.0.1 — visual rhythm: keep a clear break between dense card grids and media. */
.dp-blog-content > .dp-blog-image {
  display: block;
  margin-top: 32px !important;
  margin-bottom: 42px !important;
}

.dp-blog-image img {
  width: 100%;
  aspect-ratio: 1076 / 720;
  border-radius: var(--dp-radius-md);
  box-shadow: 0 18px 50px rgba(35, 25, 28, 0.11);
  object-fit: cover;
}

.dp-blog-note {
  padding: 30px 34px;
  border: 1px solid var(--dp-line);
  background: var(--dp-surface);
  box-shadow: 0 12px 34px rgba(35, 25, 28, 0.06);
}

.dp-blog-note h3 {
  font-size: 22px;
}

.dp-blog-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 34px 0;
}

.dp-blog-card {
  padding: 30px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-md);
  background: #fff;
}

.dp-blog-card h3 {
  font-size: 22px;
}

.dp-blog-card p {
  font-size: 16px;
  line-height: 1.72;
}

.dp-blog-series {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 30px;
  margin: 34px 0;
  padding: clamp(30px, 4vw, 46px);
  align-items: center;
  border-radius: var(--dp-radius-md);
  background: var(--dp-dark);
}

.dp-blog-series__number {
  color: #dbc4ba;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.dp-blog-series__content h3 {
  color: #fff;
}

.dp-blog-series__content p {
  color: rgba(255, 255, 255, 0.72);
}

.dp-blog-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.dp-blog-tip {
  min-height: 218px;
  padding: 24px 30px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-md);
  background: linear-gradient(180deg, #fff 0%, #fcf9f8 100%);
}

.dp-blog-tip__number {
  display: block;
  margin-bottom: 22px;
  color: var(--dp-blush-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dp-blog-tip h3 {
  font-size: 22px;
}

.dp-blog-tip p {
  font-size: 16px;
  line-height: 1.72;
}

.dp-blog-summary {
  margin-top: 86px;
  padding: clamp(38px, 6vw, 68px);
  border-radius: var(--dp-radius-lg);
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 169, 158, 0.22), transparent 34%),
    var(--dp-dark);
  scroll-margin-top: 130px;
}

.dp-blog-summary__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #cfb483;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dp-blog-summary h2 {
  color: #fff;
}

.dp-blog-summary p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.74);
}

.dp-blog-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.dp-blog-button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.dp-blog-button:hover {
  transform: translateY(-2px);
}

.dp-blog-button--primary {
  background: #fff;
  color: var(--dp-dark) !important;
}

.dp-blog-button--primary:hover {
  background: #eadbd5;
}

.dp-blog-button--secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff !important;
}

.dp-blog-button--secondary:hover {
  border-color: #fff;
}

.dp-blog-sidebar {
  min-width: 0;
}

.dp-blog-toc,
.dp-blog-sidebar__cta {
  border-radius: var(--dp-radius-md);
}

.dp-blog-toc {
  position: sticky;
  top: 120px;
  padding: 30px;
  border: 1px solid var(--dp-line);
  background: #fff;
}

.dp-blog-toc__title {
  display: block;
  margin-bottom: 18px;
  color: var(--dp-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dp-blog-toc a {
  display: block;
  padding: 9px 0;
  color: var(--dp-muted);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dp-blog-toc a:hover {
  color: var(--dp-gold);
  transform: translateX(3px);
}

.dp-blog-sidebar__cta {
  margin-top: 22px;
  padding: 28px;
  background: #f6efec;
}

.dp-blog-sidebar__cta span {
  display: block;
  margin-bottom: 8px;
  color: var(--dp-ink);
  font-size: 20px;
  font-weight: 600;
}

.dp-blog-sidebar__cta p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.dp-blog-sidebar__cta a {
  color: var(--dp-gold);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .dp-blog-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .dp-blog-layout {
    grid-template-columns: minmax(0, 820px) 270px;
    gap: 56px;
  }
}

@media (max-width: 980px) {
  .dp-blog-post .dp2-shell {
    width: min(100% - 64px, 900px);
  }

  .dp-blog-hero {
    padding: 60px 0 68px;
  }

  .dp-blog-hero__grid {
    grid-template-columns: 1fr;
  }

  .dp-blog-hero__content {
    max-width: 820px;
  }

  .dp-blog-layout {
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .dp-blog-sidebar {
    display: none;
  }
}

@media (max-width: 700px) {
  .dp-blog-post {
    font-size: 17px;
    line-height: 1.72;
  }

  .dp-blog-post .dp2-shell {
    width: calc(100% - 48px);
  }

  .dp-blog-hero {
    padding: 42px 0 56px;
  }

  .dp-blog-hero__grid {
    gap: 34px;
  }

  .dp-blog-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.04;
  }

  .dp-blog-hero__lead {
    font-size: 18px;
  }

  .dp-blog-hero__meta {
    gap: 8px 18px;
  }

  .dp-blog-hero__media::before {
    inset: 12px -12px -12px 12px;
  }

  .dp-blog-hero__media img,
  .dp-blog-image img {
    border-radius: 20px;
  }

  .dp-blog-facts {
    grid-template-columns: 1fr;
    margin-top: -22px;
  }

  .dp-blog-fact {
    min-height: auto;
    padding: 22px 24px;
  }

  .dp-blog-fact + .dp-blog-fact {
    border-top: 1px solid var(--dp-line);
    border-left: 0;
  }

  .dp-blog-layout {
    padding: 64px 0 88px;
  }

  .dp-blog-section {
    padding-top: 64px;
  }

  .dp-blog-section:first-of-type {
    padding-top: 52px;
  }

  .dp-blog-post h2 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  .dp-blog-intro {
    font-size: 22px;
  }

  .dp-blog-list--columns {
    columns: 1;
  }

  .dp-blog-cards,
  .dp-blog-tips {
    grid-template-columns: 1fr;
  }

  .dp-blog-series {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dp-blog-tip {
    min-height: auto;
  }

  .dp-blog-summary {
    margin-top: 68px;
    border-radius: 24px;
  }

  .dp-blog-summary__actions {
    flex-direction: column;
  }

  .dp-blog-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-blog-post *,
  .dp-blog-post *::before,
  .dp-blog-post *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   TEMPLATE / GUTENBERG COMPATIBILITY
   ========================================================= */

.dp-blog-hero__grid--no-image {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.dp-blog-layout--no-sidebar {
  grid-template-columns: minmax(0, 880px);
}

.dp-blog-content > p:first-child {
  margin-bottom: 24px;
  color: var(--dp-ink) !important;
  font-size: clamp(23px, 2.3vw, 31px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.dp-blog-content > h2 {
  padding-top: 64px;
  scroll-margin-top: 130px;
}

.dp-blog-content > h2:not(:first-child) {
  padding-top: 80px;
}

.dp-blog-content figure.wp-block-image,
.dp-blog-content .wp-block-image {
  margin: 44px 0 38px;
}

.dp-blog-content figure.wp-block-image img,
.dp-blog-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--dp-radius-md);
  box-shadow: 0 18px 50px rgba(35, 25, 28, 0.11);
}

.dp-blog-content figure.wp-block-image figcaption,
.dp-blog-content .wp-block-image figcaption {
  margin-top: 12px;
  color: #817578;
  font-size: 13px;
  line-height: 1.5;
}

.dp-blog-content > ul,
.dp-blog-content > ol {
  margin: 0 0 28px;
  padding-left: 28px;
  color: var(--dp-muted);
}

.dp-blog-content > ul li,
.dp-blog-content > ol li {
  margin-bottom: 10px;
  color: var(--dp-muted);
}

.dp-blog-content blockquote {
  margin: 34px 0;
  padding: 28px 34px;
  border: 1px solid var(--dp-line);
  border-left: 4px solid var(--dp-gold);
  border-radius: 0 var(--dp-radius-md) var(--dp-radius-md) 0;
  background: #faf6ef;
}

.dp-blog-content blockquote p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .dp-blog-hero__grid--no-image,
  .dp-blog-layout--no-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dp-blog-content > h2,
  .dp-blog-content > h2:not(:first-child) {
    padding-top: 52px;
  }
}
