/* Drezen blog — full-width archive + single (brand: #815854) */
:root {
  --dz-primary: #815854;
  --dz-primary-dark: #663a36;
  --dz-primary-soft: #f3eae8;
  --dz-ink: #1f2124;
  --dz-muted: #5c5654;
  --dz-bg: #fdfaf7;
  --dz-card: #ffffff;
  --dz-line: rgba(129, 88, 84, 0.16);
  --dz-radius: 6px;
  --dz-shadow: 0 12px 40px rgba(36, 27, 26, 0.08);
  --dz-font: "Poppins", Arial, sans-serif;
  --dz-shell: min(1600px, calc(100% - 40px));
}

/* Break out of Astra container */
body.dz-blog-view #content.site-content,
body.dz-blog-view .site-content,
body.dz-blog-view .ast-container,
body.dz-blog-view .ast-container > *,
body.dz-blog-view #primary,
body.dz-blog-view .content-area {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
body.dz-blog-view #primary {
  float: none !important;
}
/* Sticky needs a normal document scroll root (Astra/Elementor often set overflow on body) */
html {
  overflow-x: clip;
}
body.dz-blog-view {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body.dz-blog-view .ast-left-sidebar #content > .ast-container,
body.dz-blog-view .ast-right-sidebar #content > .ast-container {
  display: block !important;
}

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

.dz-blog {
  font-family: var(--dz-font);
  color: var(--dz-ink);
  background: var(--dz-bg);
  width: 100%;
  padding-bottom: 40px;
}

.dz-shell {
  width: var(--dz-shell);
  margin-left: auto;
  margin-right: auto;
}

.dz-blog a {
  color: var(--dz-primary);
  text-decoration: none;
}
.dz-blog a:hover {
  color: var(--dz-primary-dark);
}

/* ----- Archive hero ----- */
.dz-blog-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(129, 88, 84, 0.12), transparent 40%),
    linear-gradient(135deg, #241b1a 0%, #663a36 55%, #815854 100%);
  color: #fff;
  padding: 72px 24px 64px;
  width: 100%;
}
.dz-blog-hero__inner {
  width: var(--dz-shell);
  margin: 0 auto;
}
.dz-blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.dz-blog-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.dz-blog-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}
.dz-blog-hero__byline {
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.dz-blog-hero__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.dz-blog-hero__author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
}
.dz-blog-hero__author-meta {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ----- Archive layout (posts + sticky sidebar) ----- */
.dz-archive-layout {
  width: 100%;
  margin: -36px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
.dz-blog-archive {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.dz-blog-card {
  background: var(--dz-card);
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  overflow: hidden;
  box-shadow: var(--dz-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dz-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(36, 27, 26, 0.12);
}
.dz-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--dz-primary-soft);
  overflow: hidden;
}
.dz-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dz-blog-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.dz-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--dz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.dz-blog-card__cat {
  color: var(--dz-primary);
}
.dz-blog-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}
.dz-blog-card h2 a {
  color: var(--dz-ink);
}
.dz-blog-card h2 a:hover {
  color: var(--dz-primary);
}
.dz-blog-card__excerpt {
  margin: 0;
  color: var(--dz-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}
.dz-blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.dz-blog-empty {
  margin: 40px auto 80px;
  padding: 40px 24px;
  text-align: center;
  color: var(--dz-muted);
}
.dz-blog .navigation.pagination {
  margin: 0 0 48px;
  text-align: center;
}

/* ----- Single layout ----- */
.dz-single {
  background: var(--dz-bg);
  padding-bottom: 80px;
  width: 100%;
}
.dz-single-hero {
  background: #fff;
  border-bottom: 1px solid var(--dz-line);
  padding: 48px 24px 36px;
  width: 100%;
}
.dz-single-hero__inner {
  width: var(--dz-shell);
  margin: 0 auto;
}
.dz-single-hero__inner--with-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.dz-single-hero__text {
  flex: 1 1 auto;
  min-width: 0;
}
.dz-single-hero__cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
}
.dz-single-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.dz-single-hero__cats a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dz-primary-soft);
  color: var(--dz-primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.dz-single-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  color: var(--dz-ink);
  max-width: 900px;
}
.dz-single-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--dz-muted);
  font-size: 0.95rem;
}
.dz-single-byline strong {
  color: var(--dz-ink);
}

.dz-single-layout {
  width: 100%;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

/* Sidebar: Contents pins fixed via JS until article ends */
.dz-single-aside {
  position: relative;
  align-self: start;
  z-index: 2;
}
.dz-toc-pin {
  width: 100%;
}
.dz-toc-pin.is-fixed,
.dz-toc-pin.is-bottom {
  box-sizing: border-box;
}
.dz-toc-pin-placeholder {
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}
.dz-archive-aside {
  position: sticky;
  top: 110px;
  align-self: start;
  max-height: calc(100vh - 128px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
}
.dz-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dz-single-main > * + * {
  margin-top: 24px;
}

.dz-single-featured {
  margin: 0;
  border-radius: var(--dz-radius);
  overflow: hidden;
  border: 1px solid var(--dz-line);
  box-shadow: var(--dz-shadow);
  background: var(--dz-primary-soft);
}
.dz-single-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Top-right brochure CTA (hero) */
.dz-btn--brochure {
  flex-shrink: 0;
  background: var(--dz-primary);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px rgba(129, 88, 84, 0.25);
  white-space: nowrap;
}
.dz-btn--brochure:hover {
  background: var(--dz-primary-dark);
  color: #fff !important;
}

.dz-key-points {
  background: #fff;
  border: 1px solid var(--dz-line);
  border-left: 4px solid var(--dz-primary);
  border-radius: var(--dz-radius);
  padding: 22px 24px;
  box-shadow: var(--dz-shadow);
  margin-bottom: 9px;
}
.dz-key-points h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--dz-primary-dark);
}
.dz-key-points ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dz-key-points li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--dz-ink);
  line-height: 1.55;
  border-top: 1px solid var(--dz-line);
}
.dz-key-points li:first-child {
  border-top: 0;
}
.dz-key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dz-primary);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--dz-primary);
}

.dz-single-body {
  background: #fff;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  padding: 28px 32px 36px;
  box-shadow: var(--dz-shadow);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dz-ink);
}
.dz-single-body h2,
.dz-single-body h3 {
  scroll-margin-top: 130px;
  color: var(--dz-ink);
  line-height: 1.3;
}
.dz-single-body h2 {
  margin: 1.6em 0 0.55em;
  font-size: 1.45rem;
}
.dz-single-body h3 {
  margin: 1.35em 0 0.45em;
  font-size: 1.2rem;
}
.dz-single-body p {
  margin: 0 0 1.1em;
}
.dz-single-body ul,
.dz-single-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.dz-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* (sticky sidebar rules defined above near .dz-single-layout) */
.dz-single-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.dz-single-more .dz-side-card {
  margin: 0;
}

@media (max-width: 720px) {
  .dz-single-more {
    grid-template-columns: 1fr;
  }
}

.dz-side-card,
.dz-toc {
  background: #fff;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  padding: 18px 18px 20px;
  box-shadow: var(--dz-shadow);
}
.dz-side-card__title,
.dz-toc__title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dz-muted);
  font-weight: 700;
}
.dz-toc ol,
.dz-side-list,
.dz-side-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dz-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--dz-ink);
  font-size: 0.9rem;
  line-height: 1.4;
  border-left: 2px solid transparent;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    padding-left 0.25s ease;
}
.dz-toc li.dz-toc--h3 a {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--dz-muted);
}
.dz-toc a:hover {
  background: var(--dz-primary-soft);
  color: var(--dz-primary-dark);
}
.dz-toc a.is-active {
  background: var(--dz-primary-soft);
  color: var(--dz-primary-dark);
  border-left-color: var(--dz-primary);
  font-weight: 600;
}

.dz-side-list li + li,
.dz-side-cats li + li {
  border-top: 1px solid var(--dz-line);
}
.dz-side-list a,
.dz-side-cats a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4px;
  color: var(--dz-ink);
}
.dz-side-list a:hover,
.dz-side-cats a:hover {
  color: var(--dz-primary);
}
.dz-side-list__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.dz-side-list__meta {
  font-size: 0.78rem;
  color: var(--dz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dz-side-cats a {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}
.dz-side-cats__count {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--dz-primary-soft);
  color: var(--dz-primary-dark);
  font-size: 0.75rem;
}

/* Author box */
.dz-author {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  padding: 24px;
  box-shadow: var(--dz-shadow);
}
.dz-author img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dz-primary-soft);
}
.dz-author__label {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dz-muted);
  font-weight: 700;
}
.dz-author h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.dz-author p {
  margin: 0;
  color: var(--dz-muted);
  line-height: 1.6;
}

/* Related */
.dz-related {
  width: 100%;
  margin: 48px auto 0;
}
.dz-related h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
}
.dz-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Soft CTA */
.dz-soft-cta {
  width: 100%;
  margin: 48px auto 80px;
}
.dz-soft-cta__inner {
  background: linear-gradient(135deg, #241b1a 0%, #663a36 50%, #815854 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 36px 40px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--dz-shadow);
}
.dz-soft-cta__inner h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  color: #fff;
}
.dz-soft-cta__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 560px;
}
.dz-soft-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.dz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dz-btn--solid {
  background: #fff;
  color: var(--dz-primary-dark) !important;
}
.dz-btn--solid:hover {
  background: var(--dz-primary-soft);
}
.dz-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.65);
}
.dz-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (max-width: 1100px) {
  .dz-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dz-single-layout,
  .dz-archive-layout {
    grid-template-columns: 1fr;
  }
  .dz-single-aside,
  .dz-archive-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .dz-toc-pin.is-fixed,
  .dz-toc-pin.is-bottom {
    position: static !important;
    left: auto !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .dz-toc-pin-placeholder {
    display: none !important;
  }
  .dz-blog-archive {
    grid-template-columns: 1fr;
  }
  .dz-soft-cta__inner {
    grid-template-columns: 1fr;
  }
  .dz-soft-cta__actions {
    justify-content: flex-start;
  }
  .dz-single-hero__inner--with-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .dz-single-hero__cta {
    width: 100%;
  }
  .dz-btn--brochure {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --dz-shell: calc(100% - 24px);
  }
  .dz-blog-archive,
  .dz-related__grid {
    grid-template-columns: 1fr;
  }
  .dz-author {
    grid-template-columns: 1fr;
  }
  .dz-blog-hero,
  .dz-single-hero {
    padding: 36px 0 49px;
  }
  .dz-single-hero h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }
  .dz-blog-hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  }
  .dz-single-body {
    padding: 20px 18px 28px;
    font-size: 1rem;
  }
  .dz-key-points {
    padding: 16px 16px;
  }
  .dz-soft-cta {
    margin: 36px auto 56px;
  }
  .dz-soft-cta__inner {
    padding: 24px 20px 28px;
    border-radius: var(--dz-radius);
  }
  .dz-soft-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .dz-soft-cta__actions .dz-btn {
    width: 100%;
  }
  .dz-blog-card__body {
    padding: 18px 16px 20px;
  }
  .dz-single-byline {
    font-size: 0.88rem;
    gap: 6px 10px;
  }
}
