:root {
  --dbm-navy: #071a2c;
  --dbm-navy-2: #0b2440;
  --dbm-ink: #172536;
  --dbm-muted: #667586;
  --dbm-accent: #9dafbe;
  --dbm-ivory: #f5f2ea;
  --dbm-paper: #fffefb;
  --dbm-line: #d8dfe5;
  --dbm-serif: "Cormorant Garamond", Georgia, serif;
  --dbm-sans: "DM Sans", Inter, Arial, sans-serif;
}

.dbm-fixed-article-page,
.dbm-fixed-article-page * {
  box-sizing: border-box;
}

.dbm-fixed-article-page {
  background: var(--dbm-ivory);
  color: var(--dbm-ink);
  font-family: var(--dbm-sans);
}

.dbm-fixed-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.dbm-fixed-hero {
  padding: 110px 0 90px;
  background: var(--dbm-navy);
  color: #fff;
}

.dbm-fixed-hero-inner {
  max-width: 900px;
}

.dbm-fixed-eyebrow {
  margin: 0 0 20px;
  color: #b7c8d2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.25;
  text-transform: uppercase;
}

.dbm-fixed-eyebrow::before {
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-right: 12px;
  content: "";
  vertical-align: middle;
  background: var(--dbm-accent);
}

.dbm-fixed-hero h1 {
  max-width: 900px;
  margin: 0 0 28px;
  color: #fff;
  font-family: var(--dbm-serif);
  font-size: clamp(52px, 6.5vw, 78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.dbm-fixed-summary {
  max-width: 720px;
  margin: 0;
  color: #c5d2dc;
  font-size: 18px;
  line-height: 1.6;
}

.dbm-fixed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 34px;
  color: var(--dbm-accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dbm-fixed-cover {
  position: relative;
  z-index: 2;
  height: clamp(320px, 46vw, 560px);
  overflow: hidden;
  margin-top: -42px;
  border: 8px solid var(--dbm-ivory);
  background: #dfe6eb;
  box-shadow: 0 28px 80px rgba(7, 26, 44, .1);
}

.dbm-fixed-cover img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.dbm-fixed-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 720px) !important;
  grid-auto-flow: row !important;
  justify-content: center;
  gap: 90px;
  padding-top: 72px;
  padding-bottom: 120px;
}

.dbm-fixed-article-page .dbm-fixed-layout.dbm-fixed-layout-no-toc {
  grid-template-columns: minmax(0, 720px) !important;
}

.dbm-fixed-toc {
  grid-column: 1 !important;
  position: sticky;
  top: 120px;
  align-self: start;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--dbm-navy);
}

.dbm-fixed-toc > p {
  margin: 0 0 14px;
  color: #70879b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dbm-fixed-toc a {
  display: block;
  margin: 13px 0;
  color: var(--dbm-muted);
  font-family: var(--dbm-serif);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.dbm-fixed-toc a:hover,
.dbm-fixed-toc a:focus-visible {
  color: var(--dbm-navy);
  text-decoration: underline;
  text-decoration-color: var(--dbm-accent);
  text-underline-offset: 4px;
}

.dbm-fixed-body {
  grid-column: 2 !important;
  min-width: 0;
  width: 100% !important;
  max-width: 720px !important;
  justify-self: stretch !important;
  color: #3e4945;
}

/*
 * Estes dois artigos foram importados com um bloco introdutório próprio.
 * A regra seletiva evita qualquer alteração nos quatro artigos já validados.
 */
.dbm-fixed-article.dbm-article--proteina-saude-muscular-idoso .dbm-fixed-body,
.dbm-fixed-article.dbm-article--polifarmacia-revisao-medicamentos .dbm-fixed-body {
  display: block !important;
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 720px !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

.dbm-fixed-article.dbm-article--proteina-saude-muscular-idoso .dbm-fixed-body > *,
.dbm-fixed-article.dbm-article--polifarmacia-revisao-medicamentos .dbm-fixed-body > * {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
}

/*
 * Alguns conteúdos foram importados antes da correção e podem conservar
 * classes ou limites de largura do modelo original. Estes seletores garantem
 * que cada bloco editorial use toda a coluna de leitura.
 */
.dbm-fixed-article-page .dbm-fixed-body > p,
.dbm-fixed-article-page .dbm-fixed-body > div,
.dbm-fixed-article-page .dbm-fixed-body > section,
.dbm-fixed-article-page .dbm-fixed-body > ul,
.dbm-fixed-article-page .dbm-fixed-body > ol,
.dbm-fixed-article-page .dbm-fixed-body > h2,
.dbm-fixed-article-page .dbm-fixed-body > h3,
.dbm-fixed-article-page .dbm-fixed-body > blockquote,
.dbm-fixed-article-page .dbm-fixed-body > figure,
.dbm-fixed-article-page .dbm-fixed-body > .wp-block-group,
.dbm-fixed-article-page .dbm-fixed-body > .wp-block-columns {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0;
  margin-left: 0;
}

.dbm-fixed-article-page .dbm-fixed-body > section > p,
.dbm-fixed-article-page .dbm-fixed-body > section > div,
.dbm-fixed-article-page .dbm-fixed-body > section > ul,
.dbm-fixed-article-page .dbm-fixed-body > section > ol,
.dbm-fixed-article-page .dbm-fixed-body > section > h2,
.dbm-fixed-article-page .dbm-fixed-body > section > h3 {
  width: 100% !important;
  max-width: none !important;
}

/* Fallback independente da classe PHP para artigos sem sumário. */
.dbm-fixed-article-page .dbm-fixed-layout > .dbm-fixed-body:first-child,
.dbm-fixed-article-page .dbm-fixed-layout > .dbm-fixed-body:only-child,
.dbm-fixed-article-page .dbm-fixed-layout-no-toc > .dbm-fixed-body {
  grid-column: 1 / -1 !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  justify-self: center !important;
}

.dbm-fixed-article-page .dbm-fixed-body .answer-box,
.dbm-fixed-article-page .dbm-fixed-body .article-answer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 54px !important;
  padding: 28px 30px !important;
  border-left: 3px solid var(--dbm-accent) !important;
  background: var(--dbm-paper) !important;
}

.dbm-fixed-article-page .dbm-fixed-body .article-answer > p,
.dbm-fixed-article-page .dbm-fixed-body p.answer-box {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 54px !important;
  color: var(--dbm-navy);
  font-family: var(--dbm-serif);
  font-size: 23px;
  line-height: 1.55;
}

/*
 * Perguntas frequentes: mais respiro, hierarquia e área de toque.
 * Os artigos importados existem em gerações editoriais diferentes. Alguns
 * blocos possuem `.faq` ou `.article-faq`; outros conservam somente os
 * elementos nativos `details` e `summary`. Os seletores genéricos abaixo
 * uniformizam todas as estruturas sem depender de uma classe externa.
 */
.dbm-fixed-body :is(.faq, .article-faq) {
  margin-top: 64px !important;
  margin-bottom: 68px !important;
}

.dbm-fixed-body :is(.faq, .article-faq) > h2 {
  margin-bottom: 28px !important;
}

/* Estrutura antiga: H2 e DETAILS eram irmãos diretos, sem contêiner FAQ. */
.dbm-fixed-body > h2 + details {
  margin-top: 28px !important;
}

.dbm-fixed-body > details:last-of-type {
  margin-bottom: 68px !important;
}

.dbm-fixed-body details {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--dbm-line);
}

.dbm-fixed-body details:last-of-type {
  border-bottom: 1px solid var(--dbm-line);
}

.dbm-fixed-body details > summary {
  position: relative;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 54px 24px 0;
  color: var(--dbm-navy);
  cursor: pointer;
  font-family: var(--dbm-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
}

.dbm-fixed-body details > summary::-webkit-details-marker {
  display: none;
}

.dbm-fixed-body details > summary::after {
  position: absolute;
  right: 4px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dbm-accent);
  border-radius: 50%;
  color: var(--dbm-navy);
  content: "+";
  font-family: var(--dbm-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.dbm-fixed-body details[open] > summary::after {
  content: "−";
}

.dbm-fixed-body details > summary:hover,
.dbm-fixed-body details > summary:focus-visible {
  color: #31516d;
}

.dbm-fixed-body details > summary:focus-visible {
  outline: 2px solid var(--dbm-accent);
  outline-offset: 5px;
}

.dbm-fixed-body details > p {
  width: min(100%, 660px) !important;
  max-width: 660px !important;
  margin: -3px 0 30px !important;
  color: #4d5d6b;
  font-size: 16.5px;
  line-height: 1.78;
}

.dbm-fixed-body > p:first-child {
  margin: 0 0 54px;
  color: var(--dbm-navy);
  font-family: var(--dbm-serif);
  font-size: 25px;
  line-height: 1.55;
}

.dbm-fixed-body h2 {
  scroll-margin-top: 120px;
  margin: 50px 0 18px;
  color: var(--dbm-navy);
  font-family: var(--dbm-serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.dbm-fixed-body h2:first-of-type {
  margin-top: 0;
}

.dbm-fixed-body h3 {
  margin: 30px 0 8px;
  color: var(--dbm-navy);
  font-family: var(--dbm-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.dbm-fixed-body p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.82;
}

.dbm-fixed-body ul,
.dbm-fixed-body ol {
  margin: 18px 0 28px;
  padding-left: 24px;
  color: var(--dbm-muted);
}

.dbm-fixed-body li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.dbm-fixed-body a {
  color: var(--dbm-navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--dbm-accent);
  text-underline-offset: 4px;
}

.dbm-fixed-body hr {
  margin: 38px 0;
  border: 0;
  border-top: 1px solid var(--dbm-line);
}

.dbm-fixed-disclaimer {
  margin: 55px 0 40px;
  padding: 26px 28px;
  border-left: 3px solid var(--dbm-accent);
  background: #e9eef2;
}

.dbm-fixed-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dbm-navy);
}

.dbm-fixed-disclaimer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.dbm-fixed-back {
  color: var(--dbm-navy) !important;
  font-size: 13px;
  font-weight: 700;
}

.dbm-fixed-cta {
  padding: 80px 0;
  background: var(--dbm-navy);
  color: #fff;
}

.dbm-fixed-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.dbm-fixed-cta h2 {
  max-width: 690px;
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--dbm-serif);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.dbm-fixed-cta-inner > div > p:last-child {
  margin: 0;
  color: #bdc8d2;
}

.dbm-fixed-cta-inner > a {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--dbm-navy);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 900px) {
  .dbm-fixed-layout {
    grid-template-columns: minmax(0, 720px) !important;
    gap: 35px;
  }

  .dbm-fixed-article-page .dbm-fixed-layout > .dbm-fixed-toc,
  .dbm-fixed-article-page .dbm-fixed-layout > .dbm-fixed-body {
    grid-column: 1 !important;
  }

  .dbm-fixed-article.dbm-article--proteina-saude-muscular-idoso .dbm-fixed-body,
  .dbm-fixed-article.dbm-article--polifarmacia-revisao-medicamentos .dbm-fixed-body {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .dbm-fixed-toc {
    position: static;
  }

  .dbm-fixed-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 0;
  }

  .dbm-fixed-toc a {
    display: inline;
    margin: 0;
  }

  .dbm-fixed-toc a + a::before {
    color: var(--dbm-accent);
    content: " · ";
    white-space: pre;
  }

  .dbm-fixed-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .dbm-fixed-shell {
    width: calc(100% - 30px);
  }

  .dbm-fixed-hero {
    padding: 76px 0 70px;
  }

  .dbm-fixed-hero h1 {
    font-size: 45px;
  }

  .dbm-fixed-summary {
    font-size: 16px;
  }

  .dbm-fixed-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dbm-fixed-cover {
    height: 310px;
    margin-top: -28px;
    border-width: 5px;
  }

  .dbm-fixed-layout {
    padding-top: 58px;
    padding-bottom: 82px;
  }

  .dbm-fixed-body > p:first-child {
    font-size: 22px;
  }

  .dbm-fixed-body h2 {
    font-size: 30px;
  }

  .dbm-fixed-body p {
    font-size: 16px;
    line-height: 1.75;
  }

  .dbm-fixed-body :is(.faq, .article-faq) {
    margin-top: 54px !important;
    margin-bottom: 58px !important;
  }

  .dbm-fixed-body > details:last-of-type {
    margin-bottom: 58px !important;
  }

  .dbm-fixed-body details > summary {
    min-height: 76px;
    gap: 18px;
    padding: 20px 46px 20px 0;
    font-size: 21px;
  }

  .dbm-fixed-body details > p {
    margin-bottom: 26px !important;
    font-size: 16px;
    line-height: 1.72;
  }

  .dbm-fixed-cta {
    padding: 64px 0;
  }
}
