/* ==========================================================================
   Post individual — navegação e leitura
   ========================================================================== */

/* ---------- barra de progresso ---------- */
.wphm-progress { position: fixed; top: var(--wpsm-top-bar-height, 0px); left: 0; right: 0; height: 3px; z-index: 998; pointer-events: none; }
.wphm-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--wphm-accent), color-mix(in srgb, var(--wphm-accent) 55%, #ffb703)); box-shadow: 0 0 10px color-mix(in srgb, var(--wphm-accent) 60%, transparent); will-change: transform; }

/* ---------- pílula "← Notícias" ---------- */
.wphm-backpill { position: fixed; top: calc(var(--wpsm-top-bar-height, 0px) + 14px); left: 16px; z-index: 997; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; border-radius: 999px; background: rgba(17, 17, 17, .86); color: #fff !important; font: 700 .86rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none !important; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .25s, transform .3s var(--wphm-ease, ease); }
.wphm-backpill.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wphm-backpill:hover { background: #000; }

/* ---------- ações flutuantes ---------- */
.wphm-actions { position: fixed; right: 16px; bottom: calc(18px + var(--wphm-lift, 0px)); z-index: 996; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); }
.wphm-act { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #1f2937; font: 700 .84rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.wphm-act:hover { background: #f1f5f9; }
.wphm-act[aria-pressed="true"] { background: var(--wphm-accent); color: var(--wphm-accent-ink); }
.wphm-act[aria-pressed="true"] svg { fill: currentColor; }
.wphm-act--top { padding: 0; width: 38px; justify-content: center; }

/* ---------- "a seguir" ---------- */
.wphm-nextsheet { position: fixed; left: 16px; bottom: calc(18px + var(--wphm-lift, 0px)); z-index: 995; width: min(380px, calc(100vw - 32px)); padding: 12px; border-radius: 18px; background: #fff; color: #111; border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transform: translateY(130%); opacity: 0; transition: transform .45s var(--wphm-ease, ease), opacity .3s; }
.wphm-nextsheet.is-in { transform: none; opacity: 1; }
.wphm-nextsheet__label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wphm-accent); margin: 0 0 8px 2px; }
.wphm-nextsheet__card { display: flex; gap: 12px; align-items: center; color: inherit !important; text-decoration: none !important; }
.wphm-nextsheet__card img, .wphm-nextsheet__ph { width: 96px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 12px; background: #e5e7eb; }
.wphm-nextsheet__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wphm-nextsheet__txt em { font-style: normal; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.wphm-nextsheet__txt strong { font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wphm-nextsheet__txt small { font-size: .76rem; color: #64748b; font-weight: 600; }
.wphm-nextsheet__card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.wphm-nextsheet__x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 1.2rem; line-height: 1; cursor: pointer; }

/* ---------- depois do texto ---------- */
.wphm-after { margin: 26px auto 34px; max-width: 1120px; width: calc(100% - 24px); border-radius: 24px; background: var(--wphm-bg); border: 1px solid var(--wphm-border); box-shadow: 0 20px 50px -34px rgba(0, 0, 0, .45); }
.wphm-after__in { padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 26px); }
.wphm-after .wphm-sh { margin-bottom: 0; }
.wphm-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wphm-pn__item { position: relative; display: grid; grid-template-columns: 84px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; padding: 12px; border-radius: 16px; border: 1px solid var(--wphm-border); background: var(--wphm-surface); color: var(--wphm-heading) !important; text-decoration: none !important; transition: border-color .2s, transform .2s, box-shadow .2s; }
.wphm-pn__item:hover { border-color: var(--wphm-accent); transform: translateY(-2px); box-shadow: var(--wphm-shadow-hover); }
.wphm-pn__item.is-empty { visibility: hidden; }
.wphm-pn__img { grid-row: 1 / span 2; width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.wphm-pn__dir { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wphm-accent); }
.wphm-pn__title { font-size: .95rem; line-height: 1.3; margin-top: 4px; }
.wphm-pn__item.is-next { text-align: right; grid-template-columns: 1fr 84px; }
.wphm-pn__item.is-next .wphm-pn__img { grid-column: 2; grid-row: 1 / span 2; }
.wphm-pn__item.is-next .wphm-pn__dir, .wphm-pn__item.is-next .wphm-pn__title { grid-column: 1; justify-self: end; }
.wphm-after__back { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-top: 6px; border-top: 1px solid var(--wphm-border); padding-top: 18px; }
.wphm-after .wphm-card__title { font-size: 1rem; }

/* ---------- superfície de leitura para posts fora do WP Editor Pro ---------- */
body.wphm-paper.single-post #content.site-main { max-width: 860px; margin: 26px auto !important; padding: clamp(20px, 4vw, 48px) !important; background: #fff; color: #1f2937; border-radius: 22px; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 24px 60px -36px rgba(15, 23, 42, .45); }
body.wphm-paper.single-post #content .entry-title { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.15; color: #0f172a; }
body.wphm-paper.single-post #content .page-content { font-size: 1.06rem; line-height: 1.75; }
body.wphm-paper.single-post #content .wphm-after { width: 100%; margin-inline: 0; }

@media (max-width: 760px) {
  .wphm-pn { grid-template-columns: 1fr; }
  .wphm-pn__item.is-empty { display: none; }
  .wphm-actions { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(12px + var(--wphm-lift, 0px)); }
  .wphm-act span { display: none; }
  .wphm-act { padding: 0; width: 42px; justify-content: center; }
  .wphm-nextsheet { left: 50%; transform: translate(-50%, 130%); bottom: calc(70px + var(--wphm-lift, 0px)); }
  .wphm-nextsheet.is-in { transform: translate(-50%, 0); }
  .wphm-after { width: 100%; border-radius: 0; border-inline: 0; }
}
@media print { .wphm-chrome, .wphm-after { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .wphm-backpill, .wphm-nextsheet { transition: none; } }

/* ---------- links para as ferramentas do portal (WPHM_Links) ---------- */
.wpep-content a.wphm-xlink { font-weight: 650; }
.wpep-content a.wphm-xlink.is-locked { text-decoration-style: dashed; }
.wphm-lockchip { display: inline-block; margin-left: 1px; font-size: .78em; line-height: 1; text-decoration: none; vertical-align: .08em; filter: saturate(.8); }

/* Lista em que todo item começa por uma ferramenta: grade de cartões. */
.wpep-content ul.wphm-tools { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.wpep-content ul.wphm-tools > li.wphm-tool { position: relative; margin: 0; padding: 14px 14px 14px 58px; min-height: 64px; border: 1px solid var(--wpep-border, #e2e8f0); border-radius: 14px; background: #fff; font-size: .9rem; line-height: 1.45; color: var(--wpep-muted, #64748b); transition: border-color .15s, box-shadow .15s, transform .15s; }
.wpep-content ul.wphm-tools > li.wphm-tool::marker { content: none; }
.wpep-content ul.wphm-tools > li.wphm-tool:hover { border-color: color-mix(in srgb, var(--wpep-accent, #15803d) 45%, #fff); box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .45); transform: translateY(-1px); }
.wpep-content ul.wphm-tools > li.wphm-tool > a.wphm-xlink { display: block; margin-bottom: 2px; color: var(--wpep-heading, #0f172a); font-size: 1rem; text-decoration: none; }
.wpep-content ul.wphm-tools > li.wphm-tool > a.wphm-xlink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wphm-tool__icon, .wpep-content ul.wphm-tools > li.wphm-tool::before { position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--wpep-accent, #15803d) 12%, #fff); color: var(--wpep-accent, #15803d); font-size: 18px; font-style: normal; }
.wpep-content ul.wphm-tools > li.wphm-tool::before { content: "↗"; font-weight: 800; }
.wpep-content ul.wphm-tools > li.wphm-tool:has(.wphm-tool__icon)::before { content: none; }
.wpep-content ul.wphm-tools > li.wphm-tool.is-locked { background: linear-gradient(180deg, #fffbeb, #fff 60%); }
