/* =========================================================
   Artigo do blog (inc/artigo.php, assets/js/artigo.js): padrão da General com o cabeçalho e a tipografia
   do artigo da Stance (27/10/2026), nas cores da Fux (bordô #6e0c12, dourado #E09900). Carregado só em posts.
   ========================================================= */

/* Rubik (SIL Open Font License) hospedada no próprio site, a mesma da Stance: latin e latin-ext, peso variável 300 a 900. */
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/rubik/rubik-latin-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Rubik';font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/rubik/rubik-latin-ext-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Rubik';font-style:italic;font-weight:300 900;font-display:swap;src:url(../fonts/rubik/rubik-latin-italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Fonte provisória com a largura da Rubik (mesma da Stance): a troca de fonte não empurra a página (CLS). */
@font-face{font-family:'Rubik Fallback';font-style:normal;font-weight:300 450;src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:102.6%;}
@font-face{font-family:'Rubik Fallback';font-style:normal;font-weight:451 650;src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:105.8%;}
@font-face{font-family:'Rubik Fallback';font-style:normal;font-weight:651 900;src:local('Arial Bold'),local('Arial-BoldMT'),local('Liberation Sans Bold');size-adjust:102.4%;}

body.single-post {
  --fx-bordo: #6e0c12; --fx-bordo-escuro: #3a0508; --fx-dourado: #E09900;
  --fx-ink: #444; --fx-ink-3: #6b6b6b; --fx-line: #e0e0e0; --fx-paper-3: #e8e2da;
  --fx-font: 'Rubik', 'Rubik Fallback', Arial, sans-serif; --fx-ease: cubic-bezier(.22, 1, .36, 1);
}
.fx-mono { font-family: var(--fx-font); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* O título e a linha de data do Theme Builder saem no PHP; a destacada (fundo do módulo de código) e a barra
   lateral do Monarch dão lugar ao cabeçalho do texto. */
body.single-post .et_pb_section_0_tb_body.et_pb_section { padding-top: 96px !important; padding-bottom: 0 !important; border: 0 !important; }
body.single-post .et_pb_section_0_tb_body .et_pb_row { display: none !important; }
body.single-post .et_pb_code_0_tb_body { display: none !important; }
body.single-post .et_social_sidebar_networks, body.single-post .et_social_mobile_trigger, body.single-post .et_social_mobile { display: none !important; }

/* Coluna do artigo: 1080px, como na Stance. */
body.single-post .et_pb_row_2_tb_body.et_pb_row { max-width: min(1080px, 90%) !important; width: 90% !important; }

/* Cabeçalho: imagem à esquerda (280px), informações à direita. */
.fx-posthead { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px 30px; align-items: start; margin: 64px 0 40px; font-family: var(--fx-font); }
.fx-posthead--sem-imagem { grid-template-columns: 1fr; }
.fx-posthead__media { margin: 0; }
body.single-post .fx-posthead__media img { display: block; width: 100%; height: auto; margin: 0; border-radius: 10px; box-shadow: 0 10px 28px rgba(40, 4, 6, .16); transform-origin: left center; }
.fx-posthead__info { min-width: 0; }
/* Seletor longo: a regra de link do módulo de texto do Divi (verde, Raleway, com !important) é mais específica. */
body.single-post .et_pb_post_content_0_tb_body.et_pb_post_content a.fx-pill { display: inline-block; padding: 4px 12px; border: 1px solid var(--fx-ink); border-radius: 30px; font: 400 12px/1.3 var(--fx-font) !important; color: var(--fx-ink) !important; text-decoration: none; transition: border-color .2s, color .2s; }
body.single-post .et_pb_post_content_0_tb_body.et_pb_post_content a.fx-pill:hover { border-color: var(--fx-bordo); color: var(--fx-bordo) !important; }
.fx-divider { display: block; height: 2px; margin: 26px 0 30px; background: linear-gradient(90deg, var(--fx-bordo) 70%, var(--fx-dourado) 90%); }
body.single-post .fx-posthead__title { margin: 0; padding: 0; font: 700 38px/1.2 var(--fx-font); letter-spacing: normal; color: var(--fx-bordo) !important; }
body.single-post .fx-posthead__meta { margin: 8px 0 0; padding: 0; font: 500 13px/1.5 var(--fx-font); color: var(--fx-ink); }
@media (max-width: 980px) {
  .fx-posthead { grid-template-columns: 1fr; margin-top: 40px; }
  body.single-post .fx-posthead__media img { max-width: 420px; margin-inline: auto; transform-origin: center; }
}
@media (max-width: 767px) { body.single-post .fx-posthead__title { font-size: 30px; } }

.fx-share { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.fx-share__label { font: 400 14px/1 var(--fx-font); color: var(--fx-ink); margin-right: 2px; }
body.single-post .fx-share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fx-bordo); color: #fff !important; text-decoration: none; transition: background-color .25s, transform .25s; }
.fx-share svg { width: 20px; height: 20px; }
@media (hover: hover) { body.single-post .fx-share a:hover { background: var(--fx-dourado); color: var(--fx-bordo-escuro) !important; transform: translateY(-2px); } }
.fx-share a:focus-visible { outline: 2px solid var(--fx-bordo); outline-offset: 2px; }

/* Player: botão dourado (o amarelo da Stance vira o dourado da Fux), espaço reservado no HTML (sem CLS). */
.fx-listen { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--fx-line); min-height: 118px; font-family: var(--fx-font); }
.fx-listen__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fx-listen__row--seek { margin-top: 16px; flex-wrap: nowrap; }
.fx-listen__toggle, .fx-listen__stop { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 500 16px/1 var(--fx-font); cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s; }
.fx-listen__toggle { border: 1px solid var(--fx-dourado); background: var(--fx-dourado); color: var(--fx-bordo-escuro); }
.fx-listen__toggle:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(224, 153, 0, .35); }
.fx-listen__stop { border: 1px solid var(--fx-line); background: #fff; color: var(--fx-ink); }
.fx-listen__stop[hidden], .fx-listen svg[hidden] { display: none; }
.fx-listen__rate { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--fx-ink-3); }
body.single-post .fx-listen__rate select { min-height: 48px; padding: 6px 14px; border: 1px solid var(--fx-line); border-radius: 999px; background: #fff; color: var(--fx-ink); font: 14px var(--fx-font); text-transform: none; letter-spacing: 0; }
.fx-listen__seek { flex: 1; min-width: 0; height: 24px; margin: 0; padding: 0; border: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.fx-listen__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: var(--fx-paper-3); }
.fx-listen__seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--fx-bordo); }
.fx-listen__seek::-moz-range-track { height: 4px; border-radius: 999px; background: var(--fx-paper-3); }
.fx-listen__seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--fx-bordo); }
.fx-listen__status { flex-shrink: 0; min-width: 3.5em; text-align: right; color: var(--fx-ink-3); }
.fx-listen__hint { margin: 14px 0 0; padding: 0 !important; font-size: 11px !important; color: var(--fx-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-postcontent .tts-chunk.is-speaking, h1.is-speaking { background: rgba(224, 153, 0, .28); box-shadow: 0 0 0 3px rgba(224, 153, 0, .28); border-radius: 2px; }
@media (max-width: 767px) {
  .fx-listen { min-height: 88px; }
  .fx-listen__hint, .fx-listen__rate > span { display: none; }
  .fx-listen__row { flex-wrap: nowrap; gap: 8px; }
}

/* Texto: tipografia da Stance (Rubik 16px, entrelinha 23,8px, cinza #444; títulos 24px em negrito na cor da marca). */
body.single-post .et_pb_post_content_0_tb_body, body.single-post .fx-postcontent, body.single-post .fx-postcontent p, body.single-post .fx-postcontent li, body.single-post .fx-postcontent ol, body.single-post .fx-postcontent ul, body.single-post .fx-postcontent blockquote, body.single-post .fx-postcontent td, body.single-post .fx-postcontent th {
  font-family: var(--fx-font) !important; font-size: 16px !important; line-height: 23.8px !important; font-weight: 400; color: var(--fx-ink) !important;
}
body.single-post .fx-postcontent li { line-height: 26px !important; }
body.single-post .fx-postcontent h2, body.single-post .fx-postcontent h3, body.single-post .fx-postcontent h4 { font-family: var(--fx-font) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 33.6px !important; letter-spacing: normal; color: var(--fx-bordo) !important; margin-top: 20px; padding-bottom: 10px; }
body.single-post .fx-postcontent h4 { font-size: 20px !important; line-height: 28px !important; }
body.single-post .et_pb_post_content_0_tb_body.et_pb_post_content .fx-postcontent a { font-family: var(--fx-font) !important; font-weight: 500 !important; color: var(--fx-bordo) !important; text-decoration: none; }
body.single-post .fx-postcontent a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.single-post .fx-postcontent strong, body.single-post .fx-postcontent b { font-weight: 700; color: var(--fx-ink) !important; }
body.single-post .fx-postcontent h2[id], body.single-post .fx-postcontent h3[id] { scroll-margin-top: 120px; }
body.single-post .fux-leia-tambem, body.single-post .fux-leia-tambem a { font-family: var(--fx-font) !important; }

/* Fotos do corpo: sempre centralizadas, inclusive alignleft/alignright. */
body.single-post .fx-postcontent img { height: auto; }
body.single-post .fx-postcontent figure, body.single-post .fx-postcontent .wp-block-image, body.single-post .fx-postcontent p:has(> img:only-child), body.single-post .fx-postcontent p:has(> a:only-child > img) { text-align: center; }
body.single-post .fx-postcontent figure img, body.single-post .fx-postcontent .wp-block-image img, body.single-post .fx-postcontent img.aligncenter { display: block; margin-inline: auto; }
body.single-post .fx-postcontent .alignleft, body.single-post .fx-postcontent .alignright { float: none; display: block; margin-inline: auto; }
/* O WordPress dá display: table à figura (aligncenter); quem centraliza é a margem automática. */
body.single-post .fx-postcontent figure { margin-inline: auto; max-width: 100%; }
body.single-post .fx-postcontent figcaption { font-size: 14px !important; color: var(--fx-ink-3) !important; margin-top: 8px; }

/* Hover: destacada +6%, fotos do corpo +15%, com sombra (só com mouse e sem redução de movimento). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.single-post .fx-posthead__media img { transition: transform .5s var(--fx-ease), box-shadow .5s var(--fx-ease); }
  body.single-post .fx-posthead__media img:hover { position: relative; z-index: 5; transform: scale(1.06); box-shadow: 0 22px 50px rgba(40, 4, 6, .28); }
  body.single-post .fx-postcontent img { position: relative; transition: transform .5s var(--fx-ease), box-shadow .5s var(--fx-ease); }
  body.single-post .fx-postcontent img:hover { z-index: 5; transform: scale(1.15); box-shadow: 0 22px 50px rgba(40, 4, 6, .28); }
}

/* Índice flutuante: canto inferior esquerdo (o direito é do General Chat), acima do banner de cookies. */
.fx-toc__toggle { position: fixed; left: 24px; bottom: calc(64px + var(--alt-banner, 0px)); z-index: 99990; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 18px; border: 1px solid var(--fx-line); border-radius: 999px; background: #fff; color: var(--fx-ink); font: 500 14px/1 var(--fx-font); box-shadow: 0 6px 20px rgba(40, 4, 6, .14); cursor: pointer; transition: transform .15s, border-color .15s, color .15s, bottom .3s ease; }
.fx-toc__toggle:hover, .fx-toc__toggle[aria-expanded="true"] { transform: translateY(-1px); border-color: var(--fx-bordo); color: var(--fx-bordo); }
.fx-toc__panel { position: fixed; left: 24px; bottom: calc(120px + var(--alt-banner, 0px)); z-index: 99990; width: min(360px, calc(100vw - 48px)); max-height: 60vh; overflow-y: auto; padding: 18px; border: 1px solid var(--fx-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 36px rgba(40, 4, 6, .18); font-family: var(--fx-font); }
.fx-toc__panel[hidden] { display: none; }
.fx-toc__eyebrow { margin: 0 0 10px; padding: 0; color: var(--fx-bordo); }
.fx-toc__list { list-style: none; margin: 0; padding: 0 !important; }
.fx-toc__list li { margin: 0; padding: 0; list-style: none; }
.fx-toc__link { display: flex; gap: 8px; padding: 6px 0 6px 12px; border-left: 2px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--fx-ink); text-decoration: none; transition: color .15s, border-color .15s; }
.fx-toc__num { flex-shrink: 0; min-width: 1.6em; color: var(--fx-bordo); font-variant-numeric: tabular-nums; }
.fx-toc__link--sub { padding-left: 24px; font-size: 13px; font-weight: 400; }
.fx-toc__link--sub .fx-toc__num { min-width: 2.2em; color: #a8545a; }
.fx-toc__link:hover, .fx-toc__link.is-active { color: #111; border-left-color: var(--fx-bordo); }
@media (max-width: 767px) {
  .fx-toc__toggle { left: 16px; bottom: calc(60px + var(--alt-banner, 0px)); padding: 12px; }
  .fx-toc__toggle span { display: none; }
  .fx-toc__panel { left: 16px; bottom: calc(112px + var(--alt-banner, 0px)); width: calc(100vw - 32px); }
}
@media print { .fx-listen, .fx-share, .fx-toc { display: none !important; } }
