/* Notícias do CMAeSP: uma coluna de leitura; fotografias e documentos podem abri-la. */
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post.single-post {
  --post-media: 860px;
}
.cma12-prosa.cma12-prosa-post .site-container,
.cma12-prosa.cma12-prosa-post .site-inner {
  background: var(--prosa-paper);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-container > .cmaesp-reading-headline {
  overflow: visible;
  padding: clamp(34px, 5.7vw, 84px) 0 0;
  background: var(--prosa-paper) !important;
  border: 0;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-container > .cmaesp-reading-headline .ptitle {
  box-sizing: content-box;
  width: auto;
  max-width: var(--prosa-measure);
  margin: 0 auto;
  padding: 0 var(--prosa-gutter);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .ptitle .entry-title {
  max-width: none;
  margin: 0;
  color: var(--prosa-ink);
  font: 650 clamp(34px, calc(22px + 3.2vw), 66px)/1.045 var(--prosa-display);
  letter-spacing: -.042em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .cmaesp-article-meta {
  display: flex;
  align-items: baseline;
  gap: .35em 1em;
  margin-top: clamp(16px, 2vw, 25px);
  color: var(--prosa-muted);
  font: 550 14px/1.5 var(--prosa-display);
  letter-spacing: .005em;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-container > .cmaesp-reading-headline .cmaesp-article-meta {
  padding-bottom: clamp(17px, 2vw, 27px);
  border-bottom: 1px solid var(--prosa-rule);
}
.cma12-prosa.cma12-prosa-post .cmaesp-article-meta a { color: var(--prosa-link); }

/* Only suppress the repeated principal menu when there is a copy in the masthead.
   A sidebar with another widget keeps its original track. */
body.cma12-prosa.cma12-prosa-post .site-container:has(> header #menu-principal) .sidebar-primary > #nav_menu-2:has(#menu-principal-1),
body.cma12-prosa.cma12-prosa-post .site-container:has(> header #menu-principal) .sidebar-primary:has(> #nav_menu-2:only-child #menu-principal-1) {
  display: none;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-inner {
  padding-inline: var(--prosa-gutter);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-container:has(> header #menu-principal) .site-inner:is(:not(:has(> .sidebar-primary)), :has(> .sidebar-primary > #nav_menu-2:only-child #menu-principal-1)) > main.content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--post-media);
  float: none;
  margin-inline: auto;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-inner .content {
  margin-top: clamp(24px, 3vw, 42px);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-inner article.entry {
  margin: 0;
  padding: 0;
  background: transparent;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-inner .entry-header {
  margin: 0 auto clamp(24px, 3vw, 44px);
  border: 0;
  padding: 0;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .content .entry-thumb {
  margin: 0;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .content .entry-thumb img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Use one shared axis for the text, the dateline, and the post's exit links. */
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post.single-post .site-inner .content .entry-content > :is(p,ul,ol):not(.wp-block-social-links) {
  box-sizing: border-box;
  max-width: var(--prosa-measure);
  margin: 0 auto 1.12em;
  color: var(--prosa-ink);
  font: 400 var(--prosa-size)/var(--prosa-leading) var(--prosa-serif);
  letter-spacing: normal;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(ul,ol):not(.wp-block-social-links) {
  padding-inline-start: 1.25em;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content :is(ol,ul):not(.wp-block-social-links) li {
  font: inherit;
  line-height: inherit;
  margin-block: .32em;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content :is(ol,ul):not(.wp-block-social-links) li::marker {
  color: var(--prosa-link);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(h1,h2,h3,h4,h5,h6) {
  max-width: var(--prosa-measure);
  margin: 1.75em auto .5em;
  color: var(--prosa-ink);
  font: 650 clamp(26px, calc(21px + 1vw), 36px)/1.16 var(--prosa-display);
  text-align: start;
  letter-spacing: -.035em;
  text-wrap: pretty;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(h3,h4,h5,h6) {
  font-size: clamp(22px, calc(18px + .75vw), 29px);
  line-height: 1.22;
}
/* Some inherited long articles start their chapters with authored H1 blocks.
   Their own H2/H3 subsections retain a visible step below the chapter. */
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > h1 ~ h2 {
  font-size: clamp(22px, calc(18px + .75vw), 29px);
  line-height: 1.22;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > h1 ~ :is(h3,h4,h5,h6) {
  font-size: clamp(20px, calc(17px + .45vw), 24px);
  line-height: 1.28;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0; }
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content :is(p,li,blockquote) a:not(.button) {
  color: var(--prosa-link);
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .16em;
  overflow-wrap: anywhere;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content a:focus-visible {
  outline: 2px solid var(--prosa-link);
  outline-offset: 3px;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > blockquote {
  box-sizing: border-box;
  max-width: var(--prosa-measure);
  margin: clamp(26px, 3.5vw, 48px) auto;
  padding: 0 0 0 clamp(16px, 2.2vw, 28px);
  border-inline-start: 3px solid var(--prosa-link);
  background: transparent;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > blockquote p {
  color: var(--prosa-ink);
  font: 450 clamp(21px, calc(19px + .55vw), 27px)/1.45 var(--prosa-serif);
  letter-spacing: -.012em;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(figure,.wp-caption):not(.alignleft,.alignright) {
  margin-inline: auto;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content :is(figcaption,.wp-caption-text):not(.wp-block-gallery figure figcaption) {
  color: var(--prosa-muted);
  font: 500 14px/1.45 var(--prosa-display);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content .wp-block-gallery > figcaption {
  flex-basis: 100%;
}
/* Keep scientific tables comparative. On phones the table scrolls inside its
   existing figure, with a first column wide enough for clinical terms. */
body.cma12-prosa.cma12-prosa-post .entry-content > .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
body.cma12-prosa.cma12-prosa-post .entry-content > .wp-block-table table:has(thead tr > :nth-child(3)) {
  min-width: 580px;
}
body.cma12-prosa.cma12-prosa-post .entry-content > .wp-block-table :is(th,td) {
  padding: .7em .8em;
  text-align: start;
  vertical-align: top;
  font: 400 clamp(16px, 1.3vw, 19px)/1.45 var(--prosa-serif);
  border-color: var(--prosa-rule);
}
body.cma12-prosa.cma12-prosa-post .entry-content > .wp-block-table th {
  color: var(--prosa-ink);
  background: #edf0eb;
  font: 650 16px/1.35 var(--prosa-display);
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .content > :is(.cmaesp-article-shares,.cmaesp-news-return,.comment-respond) {
  max-width: var(--prosa-measure);
  margin-inline: auto;
}
body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .site-inner .cmaesp-article-shares {
  border-color: var(--prosa-rule);
}

/* The two signed notices carry inline template styles: preserve signature blocks
   and the actual notice, but let its prose scale and reflow inside the document. */
body.cma12-prosa.cma12-prosa-post:is(.postid-17594,.postid-17533) .entry-content > div[style*="max-width: 750px"] {
  max-width: var(--prosa-measure) !important;
  padding: clamp(16px, 3.3vw, 38px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 1px solid var(--prosa-rule);
  border-top: 3px solid var(--prosa-ink) !important;
}
body.cma12-prosa.cma12-prosa-post:is(.postid-17594,.postid-17533) .entry-content > div[style*="max-width: 750px"] p[style*="text-align: justify"] {
  text-align: start !important;
  font: 400 var(--prosa-size)/var(--prosa-leading) var(--prosa-serif) !important;
  color: var(--prosa-ink) !important;
}
@media (max-width: 680px) {
  body.wp-child-theme-cma.cma12-prosa.cma12-prosa-post .entry-content > :is(figure.alignleft,figure.alignright,.wp-caption.alignleft,.wp-caption.alignright) {
    float: none;
    margin-inline: auto;
  }
}
