/* ==========================================================================
   ds.marketing — Brand CSS (Kadence Child)
   Namespace próprio (.dsm-*) para o header/footer, evitando colisão com tema pai.
   ========================================================================== */

:root {
  --dsm-blue: #2813AD;
  --dsm-blue-dark: #1e0f82;
  --dsm-blue-rgb: 40, 19, 173;
  --dsm-yellow: #FEE600;
  --dsm-yellow-dark: #ddc800;
  --dsm-yellow-rgb: 254, 230, 0;
  --dsm-black: #111111;
  --dsm-gray-50: #fafafa;
  --dsm-gray-100: #f3f3f5;
  --dsm-gray-200: #e5e5e5;
  --dsm-gray-500: #555555;
  --dsm-gray-700: #2a2a2a;
  --dsm-white: #ffffff;
}

/* Esconde o header nativo do Kadence (se em algum fallback aparecer) */
body > .site-header,
body > #masthead,
.site-header.site-header-row-layout-contained {
  display: none;
}

/* ==========================================================================
   HEADER — dsm-header (construído do zero)
   ========================================================================== */

.dsm-header {
  background-color: var(--dsm-yellow);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
}

.dsm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — marca editorial "Varejo Real" com sublinha "por ds.marketing" */
.dsm-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  gap: 2px;
}

.dsm-logo:hover,
.dsm-logo:focus {
  text-decoration: none;
}

.dsm-logo-title {
  color: var(--dsm-blue);
  font-family: inherit;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1;
}

.dsm-logo-subline {
  color: var(--dsm-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.75;
  line-height: 1;
}

.dsm-logo-brand {
  font-weight: 700;
}

.dsm-logo:hover .dsm-logo-title,
.dsm-logo:focus .dsm-logo-title {
  color: var(--dsm-blue-dark);
}

@media (min-width: 1024px) {
  .dsm-logo-title { font-size: 26px; }
}

/* Mobile toggle — escondido em desktop */
.dsm-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.dsm-menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dsm-blue);
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}

/* Nav + menu */
.dsm-nav {
  display: flex;
  align-items: center;
}

.dsm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsm-menu li {
  margin: 0;
  padding: 0;
  position: relative;
}

.dsm-menu > li > a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--dsm-blue);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}

.dsm-menu > li > a:hover,
.dsm-menu > li > a:focus {
  color: var(--dsm-blue-dark);
  background-color: rgba(var(--dsm-blue-rgb), 0.06);
}

/* Item de destaque (classe 'highlight' adicionada via admin + filter PHP) */
.dsm-menu > li.highlight > a,
.dsm-menu > li.menu-item-highlight > a {
  background-color: var(--dsm-blue);
  color: var(--dsm-white);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
}

.dsm-menu > li.highlight > a:hover,
.dsm-menu > li.menu-item-highlight > a:hover {
  background-color: var(--dsm-blue-dark);
  color: var(--dsm-white);
}

/* Submenu (caso use dropdown no futuro) */
.dsm-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dsm-white);
  border: 1px solid var(--dsm-gray-200);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(var(--dsm-blue-rgb), 0.12);
  list-style: none;
  margin: 4px 0 0;
  z-index: 110;
}

.dsm-menu li:hover > .sub-menu,
.dsm-menu li:focus-within > .sub-menu {
  display: block;
}

.dsm-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--dsm-black);
  font-weight: 500;
  text-decoration: none;
}

.dsm-menu .sub-menu a:hover {
  background: var(--dsm-gray-50);
  color: var(--dsm-blue);
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .dsm-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dsm-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dsm-yellow);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
  }
  .dsm-nav.dsm-nav-open {
    display: flex;
  }
  .dsm-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 24px;
  }
  .dsm-menu > li {
    width: 100%;
  }
  .dsm-menu > li > a {
    display: block;
    padding: 12px 16px;
  }
  .dsm-menu > li.highlight > a,
  .dsm-menu > li.menu-item-highlight > a {
    text-align: center;
    margin-top: 8px;
  }
}

/* ==========================================================================
   FOOTER — dsm-footer
   ========================================================================== */

.dsm-footer {
  background: var(--dsm-black);
  color: var(--dsm-white);
  padding: 48px 24px 32px;
  margin-top: 80px;
}

.dsm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.dsm-footer-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  line-height: 1;
}

.dsm-footer-logo .dsm-logo-title {
  color: var(--dsm-white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.dsm-footer-logo .dsm-logo-subline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.dsm-footer-tag {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.dsm-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dsm-footer-nav a {
  color: var(--dsm-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.dsm-footer-nav a:hover {
  color: var(--dsm-yellow);
}

.dsm-footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.dsm-footer-copy p {
  margin: 0;
}

@media (max-width: 640px) {
  .dsm-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Botões e CTAs (core/button do Gutenberg)
   ========================================================================== */

.wp-block-button .wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background-color: var(--dsm-yellow);
  color: var(--dsm-blue);
  border-color: var(--dsm-yellow);
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}

.wp-block-button .wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--dsm-yellow-dark);
  color: var(--dsm-blue);
  border-color: var(--dsm-yellow-dark);
}

/* ==========================================================================
   Home — esconde qualquer page title que restar
   ========================================================================== */

body.home .entry-hero,
body.home .page-hero-section {
  display: none;
}

body.home .dsm-main > :first-child {
  margin-top: 0;
}

/* ==========================================================================
   Home — "Por segmento" grid
   ========================================================================== */

.ds-segments-section {
  padding: 80px 24px;
  background: var(--dsm-gray-50);
}

.ds-segments-inner { max-width: 1200px; margin: 0 auto; }

.ds-segments-title {
  text-align: center;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dsm-black);
  margin: 0 0 12px;
}

.ds-segments-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--dsm-gray-500);
  margin: 0 0 48px;
}

.ds-segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ds-segment-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 36px 28px 28px;
  background: var(--dsm-white);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.ds-segment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--dsm-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.ds-segment-card:hover {
  transform: translateY(-4px);
  border-color: var(--dsm-blue);
  box-shadow: 0 16px 32px rgba(var(--dsm-blue-rgb), 0.10);
}

.ds-segment-card:hover::before { transform: scaleX(1); }

.ds-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--dsm-yellow);
  color: var(--dsm-blue);
  border-radius: 16px;
  margin-bottom: 20px;
  transition: background .2s ease, color .2s ease;
}

.ds-segment-card:hover .ds-segment-icon {
  background: var(--dsm-blue);
  color: var(--dsm-yellow);
}

.ds-segment-icon svg { width: 32px; height: 32px; stroke: currentColor; }

/* Ícones via data-URI (bypass do kses que strippa SVG inline em post_content).
   Cor do stroke controlada em data-URI — usa o azul #2813AD.
   Hover inverte cor via SVG de destino (mask com currentColor seria o ideal, mas
   pra simplicidade usamos duas data-URIs por segmento). */

.ds-segment-card .ds-segment-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}

/* Supermercado — carrinho */
.ds-segment-card--supermercado .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}
.ds-segment-card--supermercado:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

/* Padaria — pão */
.ds-segment-card--padaria .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z'/%3E%3Cpath d='M7 12v2M11 12v2M15 12v2M19 12v2'/%3E%3C/svg%3E");
}
.ds-segment-card--padaria:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z'/%3E%3Cpath d='M7 12v2M11 12v2M15 12v2M19 12v2'/%3E%3C/svg%3E");
}

/* Açougue — box/cleaver */
.ds-segment-card--acougue .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7c0-1.1.9-2 2-2h10l4 4v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z'/%3E%3Cpath d='M15 5v4h4'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
.ds-segment-card--acougue:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7c0-1.1.9-2 2-2h10l4 4v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z'/%3E%3Cpath d='M15 5v4h4'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
}

/* Hortifrúti — folha */
.ds-segment-card--hortifruti .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19.2 2.96c.5 6.5.77 15.14-8.2 17.04'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6'/%3E%3C/svg%3E");
}
.ds-segment-card--hortifruti:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19.2 2.96c.5 6.5.77 15.14-8.2 17.04'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6'/%3E%3C/svg%3E");
}

/* Farmácia — cruz médica */
.ds-segment-card--farmacia .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M8 8V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
}
.ds-segment-card--farmacia:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M8 8V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
}

/* Pet Shop — pata */
.ds-segment-card--pet .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%232813AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='10.5' r='1.8'/%3E%3Ccircle cx='9.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='14.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='18.5' cy='10.5' r='1.8'/%3E%3Cpath d='M8 16.5c0-2.5 2-4 4-4s4 1.5 4 4c0 2-1.5 3-4 3s-4-1-4-3z'/%3E%3C/svg%3E");
}
.ds-segment-card--pet:hover .ds-segment-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23FEE600' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='10.5' r='1.8'/%3E%3Ccircle cx='9.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='14.5' cy='5.5' r='1.8'/%3E%3Ccircle cx='18.5' cy='10.5' r='1.8'/%3E%3Cpath d='M8 16.5c0-2.5 2-4 4-4s4 1.5 4 4c0 2-1.5 3-4 3s-4-1-4-3z'/%3E%3C/svg%3E");
}

.ds-segment-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dsm-black);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.ds-segment-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--dsm-gray-500);
  margin: 0 0 20px;
  flex-grow: 1;
}

.ds-segment-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dsm-blue);
  text-decoration: none;
}

.ds-segment-card:hover .ds-segment-cta { color: var(--dsm-blue-dark); }

@media (max-width: 900px) { .ds-segments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ds-segments-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home — Destaque + últimas publicações (Query Loop blocks)
   ========================================================================== */

.destaque-card,
.latest-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.destaque-card:hover,
.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(var(--dsm-blue-rgb), 0.08);
  border-color: var(--dsm-blue);
}

.destaque-card .wp-block-post-terms a,
.latest-card .wp-block-post-terms a {
  color: var(--dsm-blue);
  text-decoration: none;
}

.destaque-card .wp-block-post-title a,
.latest-card .wp-block-post-title a {
  color: var(--dsm-black);
  text-decoration: none;
}

.destaque-card .wp-block-post-title a:hover,
.latest-card .wp-block-post-title a:hover {
  color: var(--dsm-blue);
}

/* ==========================================================================
   TL;DR, FAQ accordion e TOC (dentro dos posts)
   ========================================================================== */

.entry-content p.tldr,
.dsm-post-content p.tldr {
  background-color: rgba(var(--dsm-yellow-rgb), 0.15);
  border-left: 4px solid var(--dsm-yellow);
  padding: 16px 20px;
  border-radius: 6px;
}

/* FAQ accordion — aplica em QUALQUER <details> dentro do corpo do post,
   com ou sem a classe .faq-item (retrocompatibilidade). */
.entry-content details,
.dsm-post-content details {
  background-color: rgba(var(--dsm-blue-rgb), 0.04);
  border: 1px solid rgba(var(--dsm-blue-rgb), 0.10);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 10px;
  transition: background-color .15s ease, border-color .15s ease;
}

.entry-content details[open],
.dsm-post-content details[open] {
  background-color: rgba(var(--dsm-blue-rgb), 0.06);
  border-color: rgba(var(--dsm-blue-rgb), 0.18);
}

.entry-content details summary,
.dsm-post-content details summary {
  color: var(--dsm-blue);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding-left: 24px;
  position: relative;
  outline: none;
}

.entry-content details summary::-webkit-details-marker,
.dsm-post-content details summary::-webkit-details-marker {
  display: none;
}

.entry-content details summary::before,
.dsm-post-content details summary::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--dsm-blue);
  border-bottom: 2px solid var(--dsm-blue);
  transform: translateY(-70%) rotate(-45deg);
  transition: transform .18s ease;
}

.entry-content details[open] summary::before,
.dsm-post-content details[open] summary::before {
  transform: translateY(-30%) rotate(45deg);
}

.entry-content details[open] summary,
.dsm-post-content details[open] summary {
  margin-bottom: 10px;
}

.entry-content details p,
.dsm-post-content details p {
  margin: 0 0 8px;
  color: var(--dsm-gray-700);
  padding-left: 24px;
}
.entry-content details p:last-child,
.dsm-post-content details p:last-child {
  margin-bottom: 0;
}

.entry-content nav.toc,
.dsm-post-content nav.toc {
  background-color: rgba(var(--dsm-blue-rgb), 0.04);
  border-left: 3px solid var(--dsm-blue);
  padding: 14px 18px;
  border-radius: 4px;
}

::selection {
  background-color: var(--dsm-yellow);
  color: var(--dsm-blue);
}

/* ==========================================================================
   Mini-box IDSP (referência a estudos do Instituto DS de Pesquisas)
   ========================================================================== */

.ds-idsp-box {
  background: linear-gradient(135deg, rgba(var(--dsm-yellow-rgb), 0.14) 0%, rgba(var(--dsm-blue-rgb), 0.06) 100%);
  border-left: 4px solid var(--dsm-blue);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}

.ds-idsp-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dsm-blue);
  background: var(--dsm-yellow);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.ds-idsp-stat {
  font-size: 18px;
  line-height: 1.4;
  color: var(--dsm-black);
  margin: 0 0 10px;
  font-weight: 500;
}

.ds-idsp-stat strong {
  color: var(--dsm-blue);
  font-weight: 800;
  font-size: 22px;
}

.ds-idsp-link {
  margin: 0;
  font-size: 14px;
}

.ds-idsp-link a {
  color: var(--dsm-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}

.ds-idsp-link a:hover {
  border-bottom-color: var(--dsm-blue);
}

/* ==========================================================================
   Single post — layout completo
   ========================================================================== */

.dsm-post-hero {
  position: relative;
  background: var(--dsm-blue);
  color: var(--dsm-white);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dsm-post-hero-image { position: absolute; inset: 0; }
.dsm-post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dsm-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.82) 100%);
}

.dsm-post-hero-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
}

.dsm-post-cat {
  display: inline-block;
  background: var(--dsm-yellow);
  color: var(--dsm-blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 16px;
}

.dsm-post-cat:hover {
  background: var(--dsm-yellow-dark);
  color: var(--dsm-blue);
}

.dsm-post-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--dsm-white);
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.dsm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.dsm-post-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.dsm-post-meta-sep { opacity: 0.6; }
.dsm-post-author .dsm-avatar { border-radius: 50%; border: 2px solid var(--dsm-yellow); }
.dsm-post-meta strong { color: var(--dsm-white); font-weight: 700; }

.dsm-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

@media (max-width: 1024px) {
  .dsm-post-layout { grid-template-columns: 1fr; gap: 32px; }
}

.dsm-post-main { min-width: 0; }

.dsm-post-content { font-size: 17px; line-height: 1.7; color: var(--dsm-gray-700); }
.dsm-post-content h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; color: var(--dsm-black); margin: 48px 0 16px; line-height: 1.25; }
.dsm-post-content h3 { font-size: 22px; font-weight: 700; color: var(--dsm-black); margin: 32px 0 12px; line-height: 1.3; }
.dsm-post-content p { margin: 0 0 20px; }
.dsm-post-content a { color: var(--dsm-blue); text-decoration: underline; text-underline-offset: 2px; }
.dsm-post-content a:hover { color: var(--dsm-blue-dark); text-decoration-thickness: 2px; }
.dsm-post-content img, .dsm-post-content figure { border-radius: 8px; margin: 24px 0; }
.dsm-post-content blockquote { border-left: 4px solid var(--dsm-yellow); background: rgba(var(--dsm-yellow-rgb), 0.08); padding: 16px 20px; border-radius: 6px; margin: 24px 0; font-style: italic; color: var(--dsm-black); }
.dsm-post-content ul, .dsm-post-content ol { margin: 0 0 20px 20px; }
.dsm-post-content li { margin-bottom: 6px; }
.dsm-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.dsm-post-content th, .dsm-post-content td { border: 1px solid var(--dsm-gray-200); padding: 10px 14px; text-align: left; }
.dsm-post-content th { background: var(--dsm-gray-50); font-weight: 700; color: var(--dsm-blue); }

.dsm-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 48px 0 32px; font-size: 14px; }
.dsm-post-tags-label { font-weight: 700; color: var(--dsm-gray-500); margin-right: 4px; }
.dsm-post-tags a { background: var(--dsm-gray-50); color: var(--dsm-blue); padding: 4px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.dsm-post-tags a:hover { background: var(--dsm-blue); color: var(--dsm-white); }

.dsm-author-box { display: flex; gap: 20px; background: var(--dsm-gray-50); border-left: 4px solid var(--dsm-blue); padding: 24px; border-radius: 8px; margin: 32px 0; }
.dsm-author-avatar { border-radius: 50%; flex-shrink: 0; }
.dsm-author-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dsm-blue); }
.dsm-author-name { font-size: 20px; font-weight: 700; margin: 4px 0 8px; color: var(--dsm-black); }
.dsm-author-bio { font-size: 15px; color: var(--dsm-gray-500); line-height: 1.55; margin: 0; }

.dsm-related { margin: 48px 0 32px; }
.dsm-related-title { font-size: 24px; font-weight: 800; color: var(--dsm-black); margin: 0 0 20px; }
.dsm-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .dsm-related-grid { grid-template-columns: 1fr; } }

.dsm-related-card { display: block; background: var(--dsm-white); border: 1px solid var(--dsm-gray-200); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dsm-related-card:hover { transform: translateY(-3px); border-color: var(--dsm-blue); box-shadow: 0 10px 24px rgba(var(--dsm-blue-rgb), 0.08); }
.dsm-related-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.dsm-related-card-body { padding: 16px 18px 18px; }
.dsm-related-card-cat { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dsm-blue); margin-bottom: 6px; }
.dsm-related-card-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--dsm-black); margin: 0; }
.dsm-related-card:hover .dsm-related-card-title { color: var(--dsm-blue); }

.dsm-post-cta { background: var(--dsm-blue); color: var(--dsm-white); padding: 36px 28px; border-radius: 12px; text-align: center; margin: 32px 0; }
.dsm-post-cta-title { font-size: 24px; font-weight: 800; margin: 0 0 10px; color: var(--dsm-white); }
.dsm-post-cta-text { font-size: 16px; opacity: 0.92; margin: 0 0 20px; }
.dsm-post-cta-btn { display: inline-block; background: var(--dsm-yellow); color: var(--dsm-blue); padding: 14px 28px; border-radius: 6px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .15s ease; }
.dsm-post-cta-btn:hover { background: var(--dsm-yellow-dark); color: var(--dsm-blue); }

/* Sidebar sticky */
.dsm-post-sidebar { min-width: 0; }
.dsm-sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1024px) { .dsm-sidebar-sticky { position: static; } }

.dsm-sidebar-author { display: flex; gap: 14px; padding: 20px; background: var(--dsm-white); border: 1px solid var(--dsm-gray-200); border-radius: 10px; }
.dsm-sidebar-author-avatar { border-radius: 50%; flex-shrink: 0; border: 3px solid var(--dsm-yellow); }
.dsm-sidebar-author-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dsm-blue); }
.dsm-sidebar-author-name { font-size: 16px; font-weight: 700; color: var(--dsm-black); margin: 2px 0 6px; }
.dsm-sidebar-author-bio { font-size: 13px; line-height: 1.45; color: var(--dsm-gray-500); margin: 0; }

.dsm-sidebar-meta { padding: 20px; background: var(--dsm-gray-50); border-radius: 10px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--dsm-gray-500); }
.dsm-sidebar-meta-row { display: flex; align-items: center; gap: 8px; }
.dsm-sidebar-meta-row svg { flex-shrink: 0; color: var(--dsm-blue); }

.dsm-sidebar-share { padding: 20px; background: var(--dsm-white); border: 1px solid var(--dsm-gray-200); border-radius: 10px; }
.dsm-sidebar-share-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dsm-blue); margin-bottom: 12px; }
.dsm-sidebar-share-buttons { display: flex; gap: 8px; }
.dsm-sidebar-share-buttons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--dsm-gray-50); color: var(--dsm-blue); border-radius: 8px; transition: background-color .15s ease, color .15s ease; }
.dsm-sidebar-share-buttons a:hover { background: var(--dsm-blue); color: var(--dsm-white); }
