/* ==========================================================================
   Página de posts — portal de notícias
   ========================================================================== */

.wphm-posts { background: var(--wphm-bg); padding-bottom: clamp(30px, 5vw, 60px); min-height: 70vh; }
.wphm-posts > section, .wphm-posts > .wphm-container { position: relative; }

/* ---------- letreiro "Últimas" ---------- */
.wphm-ticker { background: var(--wphm-heading); color: var(--wphm-bg); font-size: .86rem; }
.is-dark .wphm-ticker, .wphm-p-noturno .wphm-ticker { background: #05080d; color: #d5dbe6; border-bottom: 1px solid var(--wphm-border); }
.wphm-ticker__in { display: flex; align-items: center; gap: 14px; height: 42px; }
.wphm-ticker__label { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 4px 12px; border-radius: 4px; background: var(--wphm-accent); color: var(--wphm-accent-ink); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.wphm-ticker__label .wphm-live { background: #fff; animation: wphmBlink 1.4s infinite; box-shadow: none; }
.wphm-ticker__vp { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 40px), transparent); }
.wphm-ticker__track { display: flex; width: max-content; gap: 34px; white-space: nowrap; }
.wphm-ticker__track li { display: inline-flex; align-items: center; gap: 8px; }
.wphm-ticker__track time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--wphm-accent); }
.wphm-p-jornal .wphm-ticker__track time, .wphm-p-minimal .wphm-ticker__track time { color: #ff8a8a; }
.wphm-ticker__track a { color: inherit; opacity: .92; }
.wphm-ticker__track a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.wphm-ticker__excl { color: var(--wphm-excl-a); display: inline-flex; }
.wphm-ticker.is-running .wphm-ticker__track { animation: wphmMarquee var(--dur, 60s) linear infinite; }
.wphm-ticker.is-running:hover .wphm-ticker__track, .wphm-ticker.is-running:focus-within .wphm-ticker__track { animation-play-state: paused; }
@keyframes wphmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- cabeçalho ---------- */
.wphm-mast { padding-block: clamp(18px, 3vw, 34px) clamp(14px, 2vw, 22px); }
.wphm-mast__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--wphm-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 650; padding-bottom: 10px; margin-bottom: clamp(14px, 2vw, 22px); border-bottom: 1px solid var(--wphm-border); }
.wphm-mast__top span { display: inline-flex; align-items: center; gap: 6px; }
.wphm-mast__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.wphm-mast__text { min-width: 0; flex: 1 1 420px; }
.wphm-mast__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--wphm-accent); margin-bottom: 6px !important; }
.wphm-mast__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; }
.wphm-mast__sub { margin-top: 10px !important; font-size: clamp(.98rem, .92rem + .3vw, 1.12rem); color: var(--wphm-muted); max-width: 64ch; }
.wphm-mast__back { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--wphm-muted); margin-bottom: 8px; }
.wphm-mast__back:hover { color: var(--wphm-accent); }
.wphm-mast.has-topic .wphm-mast__title { position: relative; padding-left: 18px; }
.wphm-mast.has-topic .wphm-mast__title::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px; border-radius: 6px; background: var(--wphm-topic, var(--wphm-accent)); }
.wphm-mast.is-excl .wphm-mast__eyebrow { color: var(--wphm-excl-b); }
.wphm-p-jornal .wphm-mast__title { font-weight: 800; }
.wphm-p-jornal .wphm-mast__top { border-bottom: 1px solid var(--wphm-heading); }

/* ---------- chips (tópicos) ---------- */
.wphm-chips { position: relative; z-index: 50; background: color-mix(in srgb, var(--wphm-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-block: 1px solid var(--wphm-border); }
.wphm-chips.is-sticky { position: sticky; top: var(--wphm-top); }
.wphm-chips.is-stuck { box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .45); }
.wphm-chips__in { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.wphm-chips__scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.wphm-chips__scroll::-webkit-scrollbar { display: none; }
.wphm-chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--wphm-border); background: var(--wphm-surface); font-size: .86rem; font-weight: 700; color: var(--wphm-heading); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.wphm-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--wphm-topic, var(--wphm-accent)); }
.wphm-chip:hover { border-color: var(--wphm-topic, var(--wphm-accent)); transform: translateY(-1px); }
.wphm-chip__n { font-size: .7rem; font-weight: 750; padding: 1px 7px; border-radius: 999px; background: var(--wphm-surface-2); color: var(--wphm-muted); }
.wphm-chip.is-active { background: var(--wphm-topic, var(--wphm-heading)); border-color: var(--wphm-topic, var(--wphm-heading)); color: #fff; }
.wphm-chip.is-active i { background: #fff; }
.wphm-chip.is-active .wphm-chip__n { background: rgba(255, 255, 255, .22); color: #fff; }
.is-dark .wphm-chip.is-active:not([style]) { color: var(--wphm-bg); }
.wphm-chip--excl { border-color: transparent; background: linear-gradient(var(--wphm-surface), var(--wphm-surface)) padding-box, linear-gradient(135deg, var(--wphm-excl-a), var(--wphm-excl-b)) border-box; color: var(--wphm-excl-b); border: 1.5px solid transparent; }
.is-dark .wphm-chip--excl { color: var(--wphm-excl-a); }
.wphm-chip--excl.is-active { background: linear-gradient(135deg, var(--wphm-excl-a), var(--wphm-excl-b)); color: var(--wphm-excl-ink); }
.wphm-sort { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 4px 0 12px; border-radius: 999px; border: 1px solid var(--wphm-border); background: var(--wphm-surface); color: var(--wphm-muted); }
.wphm-sort select { border: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: .86rem; font-weight: 700; color: var(--wphm-heading); padding: 8px 6px !important; cursor: pointer; appearance: auto; }
.is-dark .wphm-sort select option { background: var(--wphm-surface); }

/* ---------- manchetes ---------- */
.wphm-lead { padding-top: clamp(18px, 3vw, 30px); }
.wphm-lead__grid { display: grid; gap: var(--wphm-gap); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(250px, .9fr); align-items: stretch; }
.wphm-lead__main { display: flex; }
.wphm-lead__main > .wphm-card { flex: 1; }
.wphm-lead__side .wphm-card__media { aspect-ratio: 16 / 9; }
.wphm-lead__side { display: grid; gap: var(--wphm-gap); grid-template-rows: 1fr 1fr; }
.wphm-lead__side .wphm-card__title { font-size: 1.05rem; }
.wphm-lead__rank { background: var(--wphm-surface); border: 1px solid var(--wphm-border); border-radius: var(--wphm-radius); padding: 16px 16px 6px; box-shadow: var(--wphm-shadow); }
.wphm-ranklist { counter-reset: r; }
.wphm-lead__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: var(--wphm-gap); background: var(--wphm-surface); border: 1px solid var(--wphm-border); border-radius: var(--wphm-radius); box-shadow: var(--wphm-shadow); }
.wphm-lead__strip > .wphm-card { padding: 16px 18px; border-right: 1px solid var(--wphm-border); }
.wphm-lead__strip > .wphm-card:last-child { border-right: 0; }
.wphm-lead--split .wphm-lead__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.wphm-lead--split .wphm-lead__rank { grid-column: 1 / -1; }
.wphm-lead--split .wphm-ranklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 24px; }
.wphm-lead--stack .wphm-lead__grid { grid-template-columns: 1fr; }
.wphm-lead--stack .wphm-lead__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
@media (max-width: 1180px) {
  .wphm-lead__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .wphm-lead__rank { grid-column: 1 / -1; }
  .wphm-ranklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 24px; }
}
@media (max-width: 860px) {
  .wphm-lead__grid { grid-template-columns: 1fr; }
  .wphm-lead__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .wphm-lead__strip { grid-template-columns: 1fr 1fr; }
  .wphm-lead__strip > .wphm-card:nth-child(2) { border-right: 0; }
  .wphm-lead__strip > .wphm-card:nth-child(-n+2) { border-bottom: 1px solid var(--wphm-border); }
}
@media (max-width: 560px) {
  .wphm-lead__side { grid-template-columns: 1fr; }
  .wphm-lead__strip { grid-template-columns: 1fr; }
  .wphm-lead__strip > .wphm-card { border-right: 0; border-bottom: 1px solid var(--wphm-border); }
  .wphm-lead__strip > .wphm-card:last-child { border-bottom: 0; }
}

/* ---------- em alta / tópicos ---------- */
.wphm-trending, .wphm-tblock { padding-top: clamp(26px, 4vw, 44px); }
.wphm-tblock .wphm-sh__title { position: relative; }
.wphm-tblock .wphm-sh__title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--wphm-topic, var(--wphm-accent)); transform: rotate(45deg); }
.wphm-tblock .wphm-sh__more { color: var(--wphm-topic, var(--wphm-accent)); }
.wphm-tblock .wphm-sh__more:hover { background: color-mix(in srgb, var(--wphm-topic, var(--wphm-accent)) 10%, transparent); }
.wphm-tblock__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--wphm-gap); }
.wphm-tblock__main { display: flex; }
.wphm-tblock__main > .wphm-card { flex: 1; }
.wphm-tblock__main .wphm-card__title { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.wphm-tblock__list { display: flex; flex-direction: column; gap: 4px; background: var(--wphm-surface); border: 1px solid var(--wphm-border); border-radius: var(--wphm-radius); padding: 10px; box-shadow: var(--wphm-shadow); }
.wphm-tblock__list > .wphm-card + .wphm-card { border-top: 1px solid var(--wphm-border); border-radius: 0; }
.wphm-tblock .wphm-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 860px) { .wphm-tblock__grid { grid-template-columns: 1fr; } }

/* jornal: filete grosso sobre os títulos de seção, como nas páginas de jornal */
.wphm-p-jornal .wphm-trending .wphm-sh, .wphm-p-jornal .wphm-tblock .wphm-sh, .wphm-p-jornal .wphm-feedcol > .wphm-sh, .wphm-p-jornal .wphm-personal .wphm-sh { border-top: 3px solid var(--wphm-heading); padding-top: 10px; }
.wphm-p-minimal .wphm-trending .wphm-sh, .wphm-p-minimal .wphm-tblock .wphm-sh, .wphm-p-minimal .wphm-feedcol > .wphm-sh { border-top: 1px solid var(--wphm-heading); padding-top: 12px; }
.wphm-p-jornal .wphm-card__title, .wphm-p-jornal .wphm-sh__title { font-family: var(--wphm-font-head); }
.wphm-p-revista .wphm-card__title { font-weight: 800; }
.wphm-p-minimal .wphm-card { box-shadow: none; }
.wphm-p-minimal .wphm-card:hover { transform: none; }

/* ---------- feed ---------- */
.wphm-feedwrap { padding-top: clamp(26px, 4vw, 44px); }
.wphm-feedwrap__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.wphm-feedwrap__grid.has-side { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
.wphm-feed { display: flex; flex-direction: column; gap: 16px; }
/* Card largo do feed: quebra o ritmo da lista com capa grande ao lado do texto. */
.wphm-feed > .wphm-card--feature.is-wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.wphm-feed > .wphm-card--feature.is-wide .wphm-card__media { aspect-ratio: 16 / 9; width: 100%; }
.wphm-feed > .wphm-card--feature.is-wide .wphm-card__body { padding: clamp(16px, 2vw, 24px); justify-content: center; }
.wphm-feed > .wphm-card--feature.is-wide .wphm-card__title { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); }
@media (max-width: 700px) { .wphm-feed > .wphm-card--feature.is-wide { grid-template-columns: 1fr; } }
.wphm-feed--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wphm-feed--grid > .wphm-card--feature.is-wide .wphm-card__media { aspect-ratio: 16 / 9; }
.wphm-feed__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.wphm-feed__status { font-size: .9rem; color: var(--wphm-muted); text-align: center; }
.wphm-feed__status button { border: 0; background: none; color: var(--wphm-accent); font-weight: 700; text-decoration: underline; }
.wphm-sentinel { height: 1px; width: 100%; }
.wphm-feed.is-swapping { opacity: .35; transition: opacity .2s; pointer-events: none; }
.wphm-pagemark { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wphm-muted); margin: 8px 0 2px; }
.wphm-pagemark::before, .wphm-pagemark::after { content: ""; flex: 1; height: 1px; background: var(--wphm-border); }

.wphm-pager { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--wphm-border); }
.wphm-pager__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--wphm-border); background: var(--wphm-surface); font-weight: 700; font-size: .9rem; color: var(--wphm-heading); }
.wphm-pager__btn:hover { border-color: var(--wphm-accent); color: var(--wphm-accent); }
.wphm-pager__info { font-size: .86rem; color: var(--wphm-muted); }
.wphm-js .wphm-pager.is-enhanced { display: none; }

/* ---------- barra lateral ---------- */
.wphm-side { position: relative; height: 100%; }
.wphm-side__in { position: sticky; top: calc(var(--wphm-top) + 76px); display: flex; flex-direction: column; gap: 16px; }
.wphm-widget { background: var(--wphm-surface); border: 1px solid var(--wphm-border); border-radius: var(--wphm-radius); padding: 16px; box-shadow: var(--wphm-shadow); }
.wphm-widget--result { border-top: 4px solid var(--wphm-mod, var(--wphm-accent)); }
.wphm-balls--side { margin-top: 0; gap: 5px; }
.wphm-balls--side li { width: 30px; height: 30px; font-size: .76rem; animation: wphmPop .5s var(--wphm-ease) both; animation-delay: calc(var(--i) * 45ms); }
.wphm-widget__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .86rem; font-weight: 700; color: var(--wphm-accent); }
.wphm-topiclist li a { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 8px; font-weight: 650; font-size: .92rem; color: var(--wphm-heading); }
.wphm-topiclist li a:hover { background: var(--wphm-surface-2); }
.wphm-topiclist li i { width: 9px; height: 9px; border-radius: 3px; background: var(--wphm-topic); transform: rotate(45deg); }
.wphm-topiclist li span { margin-left: auto; font-size: .76rem; color: var(--wphm-muted); font-variant-numeric: tabular-nums; }
.wphm-widget--excl { background: var(--wphm-excl-band); color: rgba(255, 255, 255, .85); border: 0; }
.wphm-widget--excl p { margin: 8px 0 !important; font-size: .92rem; }
.wphm-widget--excl strong { color: #fff; font-size: 1.05rem; }
.wphm-widget--excl .wphm-btn { width: 100%; margin-top: 6px; }
.wphm-saved-list { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1024px) {
  .wphm-feedwrap__grid.has-side { grid-template-columns: 1fr; }
  .wphm-side__in { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---------- modo filtrado ---------- */
.wphm-mode-filtered .wphm-feedwrap { padding-top: clamp(18px, 3vw, 28px); }
.wphm-posts[data-wphm-mode="filtered"] .wphm-lead,
.wphm-posts[data-wphm-mode="filtered"] .wphm-personal,
.wphm-posts[data-wphm-mode="filtered"] .wphm-trending,
.wphm-posts[data-wphm-mode="filtered"] .wphm-tblock,
.wphm-posts[data-wphm-mode="filtered"] .wphm-band,
.wphm-posts[data-wphm-mode="filtered"] .wphm-ticker { display: none; }

@media (max-width: 600px) {
  .wphm-mast__row { flex-direction: column; align-items: stretch; }
  .wphm-mast__text { flex: 0 0 auto; }
  .wphm-sort select { max-width: 118px; font-size: .8rem; }
  .wphm-search { width: 100%; }
  .wphm-sort { padding-left: 8px; }
  .wphm-sort .wphm-ico { display: none; }
  .wphm-chips__in { gap: 8px; }
  .wphm-feed { gap: 12px; }
}

/* "Leia também" dentro da manchete (como as linhas finas de jornal) */
.wphm-card__rel { position: relative; z-index: 2; margin-top: 16px !important; padding-top: 12px !important; border-top: 1px solid var(--wphm-border); display: flex; flex-direction: column; gap: 9px; }
.wphm-card__rel li { position: relative; padding-left: 16px; font-size: .93rem; line-height: 1.35; }
.wphm-card__rel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--wphm-topic, var(--wphm-accent)); transform: rotate(45deg); }
.wphm-card__rel a { font-weight: 650; color: var(--wphm-heading); }
.wphm-card__rel a:hover { color: var(--wphm-accent); text-decoration: underline; text-underline-offset: 3px; }
.wphm-p-jornal .wphm-card__rel a { font-family: var(--wphm-font-head); }
