/**
 * Blog editorial HMVIP — single de post e arquivo /blog.
 *
 * BEM: .hmvip-blog__* (escopo do plugin hmvip-landing; não reutiliza
 * classes do P6/cards-v4 — gate G10 é exclusivo de cards de produto).
 * Accent da marca: #e94560. Tokens BuddyX com fallback. Pares dark
 * (body.bb-dark-theme) e light (body.buddyx-light-mode). Mobile-first.
 *
 * @package HMVIP\Landing
 * @since 1.3.0
 */

.hmvip-blog {
	--hmvip-blog-accent: #e94560;
	/* Default: dark mode (identidade visual HMVIP). Light mode e override abaixo. */
	--hmvip-blog-text: var(--bb-dark-text-color, #e8eaed);
	--hmvip-blog-text-muted: var(--bb-dark-text-secondary-color, #9aa3ad);
	--hmvip-blog-surface: var(--bb-dark-content-bg, #14171a);
	--hmvip-blog-surface-alt: var(--bb-dark-bg, #0a0a0a);
	--hmvip-blog-border: var(--bb-dark-border-color, #2a2e33);
	--hmvip-blog-hero-from: #2b1055;
	--hmvip-blog-hero-to: #e94560;

	color: var(--hmvip-blog-text);
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1rem 3rem;
}

/* ---------- Header (single) ---------- */

.hmvip-blog__header {
	padding: 1.5rem 0 1rem;
	color: var(--hmvip-blog-text);
}

.hmvip-blog__featured-image {
	margin: 0 0 2rem;
	border-radius: 1rem;
	overflow: hidden;
}

.hmvip-blog__featured-image-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 26rem;
	object-fit: cover;
}

/* Legacy hero classes kept for cached markup / third-party overrides. */
.hmvip-blog__hero {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	margin: 1.5rem 0 2rem;
	background: linear-gradient(135deg, var(--hmvip-blog-hero-from) 0%, var(--hmvip-blog-hero-to) 100%);
}

.hmvip-blog__hero-media {
	margin: 0;
}

.hmvip-blog__hero-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 26rem;
	object-fit: cover;
}

.hmvip-blog__hero--has-image .hmvip-blog__hero-content {
	position: absolute;
	inset: auto 0 0 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
	color: #ffffff;
}

.hmvip-blog__hero--brand {
	min-height: 12rem;
	display: flex;
	align-items: flex-end;
	color: #ffffff;
}

.hmvip-blog__hero-content {
	padding: 1.5rem;
}

.hmvip-blog__kicker {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	background-color: var(--hmvip-blog-accent);
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
}

.hmvip-blog__kicker:hover,
.hmvip-blog__kicker:focus {
	color: #ffffff;
	opacity: 0.9;
}

.hmvip-blog__title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
	color: inherit;
}

.hmvip-blog__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	margin: 0;
	color: inherit;
	opacity: 0.85;
}

.hmvip-blog__meta-separator {
	opacity: 0.6;
}

/* ---------- Corpo do artigo ---------- */

.hmvip-blog__body {
	max-width: 52rem;
	margin: 0 auto;
}

.hmvip-blog__content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.hmvip-blog__content p {
	margin: 0 0 1.25rem;
}

.hmvip-blog__content h2 {
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 2.5rem 0 1rem;
}

.hmvip-blog__content h3 {
	font-size: 1.25rem;
	line-height: 1.35;
	margin: 2rem 0 0.75rem;
}

.hmvip-blog__content ul,
.hmvip-blog__content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.hmvip-blog__content a {
	color: var(--hmvip-blog-accent);
}

.hmvip-blog__content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.hmvip-blog__content-screenshot {
	margin: 2rem 0;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--hmvip-blog-border);
}

.hmvip-blog__content-screenshot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

/* ---------- Tabelas (mini-dicionário, comparativos) ---------- */

.hmvip-blog__content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.75rem;
	overflow: hidden;
}

.hmvip-blog__content thead th {
	background-color: var(--hmvip-blog-accent);
	color: #ffffff;
	font-weight: 700;
	text-align: left;
	padding: 0.625rem 1rem;
}

.hmvip-blog__content tbody td {
	padding: 0.625rem 1rem;
	border-top: 1px solid var(--hmvip-blog-border);
	vertical-align: top;
}

.hmvip-blog__content tbody tr:nth-child(even) {
	background-color: var(--hmvip-blog-surface-alt);
}

/* ---------- CTA de fim de artigo ---------- */

.hmvip-blog__cta {
	margin: 3rem 0;
	padding: 2rem 1.5rem;
	text-align: center;
	background-color: var(--hmvip-blog-surface-alt);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 1rem;
}

.hmvip-blog__cta-title {
	font-size: 1.375rem;
	margin: 0 0 0.5rem;
}

.hmvip-blog__cta-text {
	margin: 0 0 1.25rem;
	color: var(--hmvip-blog-text-muted);
}

.hmvip-blog__cta .hmvip-blog__cta-button {
	display: inline-block;
	background-color: var(--hmvip-blog-accent);
	color: #ffffff;
	font-weight: 700;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.hmvip-blog__cta .hmvip-blog__cta-button:hover,
.hmvip-blog__cta .hmvip-blog__cta-button:focus {
	color: #ffffff;
	opacity: 0.9;
}

/* ---------- Relacionados / cards ---------- */

.hmvip-blog__related {
	margin-top: 3rem;
}

.hmvip-blog__related-title {
	font-size: 1.375rem;
	margin: 0 0 1.25rem;
}

.hmvip-blog__related-grid,
.hmvip-blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.hmvip-blog__card {
	display: block;
	background-color: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.75rem;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hmvip-blog__card:hover,
.hmvip-blog__card:focus-within {
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	color: inherit;
}

.hmvip-blog__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hmvip-blog__card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.hmvip-blog__card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hmvip-blog__card-media--brand {
	background: linear-gradient(135deg, var(--hmvip-blog-hero-from) 0%, var(--hmvip-blog-hero-to) 100%);
}

.hmvip-blog__card-body {
	display: block;
	padding: 1.25rem;
}

.hmvip-blog__card-kicker {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hmvip-blog-accent);
	margin-bottom: 0.5rem;
}

.hmvip-blog__card-title {
	display: block;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 0.5rem;
}

.hmvip-blog__card-excerpt {
	display: block;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hmvip-blog-text-muted);
	margin-bottom: 0.75rem;
}

.hmvip-blog__card-readmore {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--hmvip-blog-accent);
	margin-top: 0.5rem;
}

/* ---------- Arquivo ---------- */

.hmvip-blog__archive-header {
	text-align: center;
	margin: 2rem 0 2.5rem;
}

.hmvip-blog__archive-title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	margin: 0;
}

.hmvip-blog__archive-subtitle {
	margin: 0.75rem auto 0;
	max-width: 40rem;
	color: var(--hmvip-blog-text-muted);
}

/* ---------- Guia em destaque (/tutoriais) ---------- */

.hmvip-guide {
	margin: 0 0 3rem;
	padding: 2rem 1.5rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, var(--hmvip-blog-hero-from) 0%, var(--hmvip-blog-hero-to) 100%);
	color: #ffffff;
}

.hmvip-guide__badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background-color: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	margin: 0 0 0.75rem;
}

.hmvip-guide__title {
	font-size: clamp(1.375rem, 3.5vw, 2rem);
	margin: 0 0 0.75rem;
	color: #ffffff;
}

.hmvip-guide__text {
	margin: 0 0 1.5rem;
	max-width: 44rem;
	color: rgba(255, 255, 255, 0.92);
}

.hmvip-guide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hmvip-guide__button {
	display: inline-block;
	font-weight: 700;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.hmvip-guide__button--primary {
	background-color: #ffffff;
	color: var(--hmvip-blog-hero-from);
}

.hmvip-guide__button--secondary {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.85);
}

.hmvip-guide__button:hover,
.hmvip-guide__button:focus {
	opacity: 0.9;
	color: inherit;
}

.hmvip-guide__button--secondary:hover,
.hmvip-guide__button--secondary:focus {
	color: #ffffff;
}

.hmvip-blog__pagination {
	margin: 2.5rem 0 0;
	text-align: center;
}

.hmvip-blog__pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	margin: 0 0.125rem;
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.hmvip-blog__pagination .page-numbers.current {
	background-color: var(--hmvip-blog-accent);
	border-color: var(--hmvip-blog-accent);
	color: #ffffff;
}

.hmvip-blog__empty {
	text-align: center;
	color: var(--hmvip-blog-text-muted);
	padding: 3rem 0;
}

/* ---------- Lead form (F2.2) ---------- */

.hmvip-blog__lead-form {
	background: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.75rem;
	padding: 1.25rem;
	margin-top: 1.5rem;
}

.hmvip-blog__lead-title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
	color: var(--hmvip-blog-text);
}

.hmvip-blog__lead-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hmvip-blog__lead-input {
	flex: 1 1 16rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.5rem;
	background: var(--hmvip-blog-surface-alt);
	color: var(--hmvip-blog-text);
	font-size: 1rem;
}

.hmvip-blog__lead-input:focus {
	outline: 2px solid var(--hmvip-blog-accent);
	outline-offset: 2px;
}

.hmvip-blog__lead-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--hmvip-blog-accent);
	color: #ffffff;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.hmvip-blog__lead-submit:hover,
.hmvip-blog__lead-submit:focus {
	color: #ffffff;
	opacity: 0.9;
}

.hmvip-blog__lead-message {
	font-size: 0.875rem;
	margin: 0.75rem 0 0;
	min-height: 1.25rem;
}

.hmvip-blog__lead-message--success {
	color: #34d399;
}

.hmvip-blog__lead-message--error {
	color: #f87171;
}

.hmvip-blog__lead-message--info {
	color: var(--hmvip-blog-text-muted);
}

.hmvip-blog__lead-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--hmvip-blog-text-muted);
	cursor: pointer;
}

.hmvip-blog__lead-consent input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	accent-color: var(--hmvip-blog-accent);
	flex-shrink: 0;
}

.hmvip-blog__lead-consent a {
	color: var(--hmvip-blog-accent);
	text-decoration: underline;
}

/* ---------- Guide download modal (F2.3) ---------- */

.hmvip-guide__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hmvip-guide__modal[hidden] {
	display: none;
}

.hmvip-guide__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.hmvip-guide__modal-dialog {
	position: relative;
	width: min(32rem, calc(100% - 2rem));
	background: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 1rem;
	padding: 1.5rem;
	color: var(--hmvip-blog-text);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hmvip-guide__modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: transparent;
	border: 0;
	color: var(--hmvip-blog-text-muted);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.hmvip-guide__modal-title {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.hmvip-guide__modal-text {
	color: var(--hmvip-blog-text-muted);
	margin: 0 0 1rem;
}

/* ---------- Tips carousel ---------- */

.hmvip-blog__tips {
	position: relative;
	background: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 1rem;
	padding: 1.25rem 3rem;
	margin: 0 0 2rem;
	overflow: hidden;
}

.hmvip-blog__tips-track {
	position: relative;
	min-height: 3.5rem;
}

.hmvip-blog__tips-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hmvip-blog__tips-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateX(1rem);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.hmvip-blog__tips-slide.is-active {
	position: relative;
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.hmvip-blog__tips-text {
	font-size: 0.9375rem;
	color: var(--hmvip-blog-text);
	text-align: center;
}

.hmvip-blog__tips-link {
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmvip-blog-accent);
	text-decoration: none;
}

.hmvip-blog__tips-link:hover,
.hmvip-blog__tips-link:focus {
	text-decoration: underline;
}

.hmvip-blog__tips-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	color: var(--hmvip-blog-text-muted);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

.hmvip-blog__tips-arrow:hover,
.hmvip-blog__tips-arrow:focus {
	color: var(--hmvip-blog-text);
}

.hmvip-blog__tips-arrow--prev {
	left: 0.75rem;
}

.hmvip-blog__tips-arrow--next {
	right: 0.75rem;
}

@media (max-width: 36rem) {
	.hmvip-blog__tips {
		padding: 1rem 2.25rem;
	}

	.hmvip-blog__tips-slide {
		flex-direction: column;
		gap: 0.5rem;
	}

	.hmvip-blog__tips-text {
		font-size: 0.875rem;
	}
}

/* ---------- Screenshot mode (F1.4) ---------- */

.hmvip-screenshot-mode #masthead,
.hmvip-screenshot-mode .site-header,
.hmvip-screenshot-mode .buddyx-mobile-header,
.hmvip-screenshot-mode .bb-mobile-panel,
.hmvip-screenshot-mode #buddypanel,
.hmvip-screenshot-mode .buddypanel,
.hmvip-screenshot-mode .buddypanel-menu,
.hmvip-screenshot-mode #item-header,
.hmvip-screenshot-mode .bb-header,
.hmvip-screenshot-mode .bb-titlebar,
.hmvip-screenshot-mode .bp-nav,
.hmvip-screenshot-mode .item-list-tabs,
.hmvip-screenshot-mode .cookie-banner,
.hmvip-screenshot-mode .gdpr-banner,
.hmvip-screenshot-mode .wp-admin-bar,
.hmvip-screenshot-mode #wpadminbar,
.hmvip-screenshot-mode .bottom-menu,
.hmvip-screenshot-mode .site-footer,
.hmvip-screenshot-mode #colophon,
.hmvip-screenshot-mode .floating-chat,
.hmvip-screenshot-mode .msg-overlay,
.hmvip-screenshot-mode .hmvip-pwa-install-banner,
.hmvip-screenshot-mode .aiomatic-floating-button,
.hmvip-screenshot-mode .aiomatic-chat-button,
.hmvip-screenshot-mode .mfp-bg,
.hmvip-screenshot-mode .mfp-wrap,
.hmvip-screenshot-mode .pswp,
.hmvip-screenshot-mode .modal,
.hmvip-screenshot-mode .popup,
.hmvip-screenshot-mode .toast,
.hmvip-screenshot-mode .notification-toast,
.hmvip-screenshot-mode .hmvip-mobile-nav,
.hmvip-screenshot-mode .hmvip-bottom-bar,
.hmvip-screenshot-mode .bp-messages-side-threads,
.hmvip-screenshot-mode .bm-combined-wrapper,
.hmvip-screenshot-mode .chat-header,
.hmvip-screenshot-mode .bb-pusher-typing-indicator,
.hmvip-screenshot-mode #hmvip-pwa-fab,
.hmvip-screenshot-mode .bb-mobile-nav,
.hmvip-screenshot-mode .site-header-wrapper,
.hmvip-screenshot-mode .main-navigation,
.hmvip-screenshot-mode .bb-template-message,
.hmvip-screenshot-mode .bb-onscreen-privacy-notice,
.hmvip-screenshot-mode .privacy-settings-popup,
.hmvip-screenshot-mode .gdpr-actions,
.hmvip-screenshot-mode .bp-feedback,
.hmvip-screenshot-mode .bb-notice,
.hmvip-screenshot-mode .messages-button,
.hmvip-screenshot-mode .message-button,
.hmvip-screenshot-mode .header-button,
.hmvip-screenshot-mode .user-link,
.hmvip-screenshot-mode .bp-messages-user-threads,
.hmvip-screenshot-mode .bp-messages-container,
.hmvip-screenshot-mode .hmvip-blog__cta,
.hmvip-screenshot-mode .hmvip-blog__lead-form,
.hmvip-screenshot-mode .hmvip-blog__related,
.hmvip-screenshot-mode .hmvip-blog__cta--hmvip-mentions,
.hmvip-screenshot-mode #comments,
.hmvip-screenshot-mode .comments-area,
.hmvip-screenshot-mode .post-navigation,
.hmvip-screenshot-mode .entry-footer,
.hmvip-screenshot-mode .hmvip-guide {
	display: none !important;
}

/* Destaca título e imagem no modo screenshot para uma capa mais limpa. */
.hmvip-screenshot-mode .hmvip-blog__header {
	padding: 2rem 1.5rem 1rem;
	text-align: center;
}

.hmvip-screenshot-mode .hmvip-blog__title {
	font-size: clamp(2rem, 5vw, 3rem);
}

.hmvip-screenshot-mode .hmvip-blog__featured-image {
	margin-bottom: 0;
}

/* Quando a URL de screenshot e a propria pagina do post, esconde a imagem
 * destacada para evitar capa recursiva (imagem dentro da imagem). */
.hmvip-screenshot-mode.hmvip-screenshot-self .hmvip-blog__featured-image,
.hmvip-screenshot-mode.hmvip-screenshot-self .hmvip-blog__header + .hmvip-blog__featured-image {
	display: none !important;
}

/* ---------- Social Share (F1.5.5) ---------- */

.hmvip-blog__share {
	margin: 2rem 0;
	padding: 1rem 0;
	border-top: 1px solid var(--hmvip-blog-border);
	border-bottom: 1px solid var(--hmvip-blog-border);
}

.hmvip-blog__share-label {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmvip-blog-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.hmvip-blog__share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hmvip-blog__share-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 9999px;
	background: transparent;
	color: var(--hmvip-blog-text);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hmvip-blog__share-button:hover,
.hmvip-blog__share-button:focus {
	background: var(--hmvip-blog-surface-alt);
	border-color: var(--hmvip-blog-accent, #e72b6c);
	color: var(--hmvip-blog-accent, #e72b6c);
	outline: none;
}

.hmvip-blog__share-button--copied {
	border-color: var(--hmvip-blog-success, #22c55e);
	color: var(--hmvip-blog-success, #22c55e);
}

.hmvip-blog__share-icon {
	display: inline-flex;
	width: 1.25rem;
	height: 1.25rem;
}

.hmvip-blog__share-icon svg {
	width: 100%;
	height: 100%;
}

.hmvip-blog__share-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	padding: 0 0.375rem;
	border-radius: 9999px;
	background: var(--hmvip-blog-surface-alt);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.375rem;
	color: var(--hmvip-blog-text-muted);
}

.hmvip-screenshot-mode .hmvip-blog__share {
	display: none !important;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 48rem) {
	.hmvip-blog {
		padding: 0 2rem 4rem;
	}

	.hmvip-blog__header,
	.hmvip-blog__hero-content {
		padding: 2.5rem;
	}

	.hmvip-blog__related-grid,
	.hmvip-blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64rem) {
	.hmvip-blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Dark mode (padrão do tema) ---------- */

html.dark-mode .hmvip-blog,
html.buddyx-dark-mode .hmvip-blog,
body.bb-dark-theme .hmvip-blog,
body.buddyx-dark-mode .hmvip-blog,
body.buddyx-dark-theme .hmvip-blog,
body.hmvip-dark .hmvip-blog {
	--hmvip-blog-text: var(--bb-dark-text-color, #e8eaed);
	--hmvip-blog-text-muted: var(--bb-dark-text-secondary-color, #9aa3ad);
	--hmvip-blog-surface: var(--bb-dark-content-bg, #14171a);
	--hmvip-blog-surface-alt: var(--bb-dark-bg, #0a0a0a);
	--hmvip-blog-border: var(--bb-dark-border-color, #2a2e33);
}

/* ---------- Light mode ---------- */

html.light-mode .hmvip-blog,
html.buddyx-light-mode .hmvip-blog,
body.buddyx-light-mode .hmvip-blog,
body.light-mode .hmvip-blog {
	--hmvip-blog-text: var(--global-text-color, #1a1a1a);
	--hmvip-blog-text-muted: var(--global-text-secondary-color, #5f6b7a);
	--hmvip-blog-surface: var(--global-content-background-color, #ffffff);
	--hmvip-blog-surface-alt: var(--global-background-color, #f6f7f9);
	--hmvip-blog-border: var(--global-border-color, #e3e6ea);
}

/* ---------- Fallback por sistema operacional ---------- */

@media (prefers-color-scheme: dark) {
	html:not(.light-mode):not(.buddyx-light-mode) .hmvip-blog,
	body:not(.buddyx-light-mode):not(.light-mode) .hmvip-blog {
		--hmvip-blog-text: var(--bb-dark-text-color, #e8eaed);
		--hmvip-blog-text-muted: var(--bb-dark-text-secondary-color, #9aa3ad);
		--hmvip-blog-surface: var(--bb-dark-content-bg, #14171a);
		--hmvip-blog-surface-alt: var(--bb-dark-bg, #0a0a0a);
		--hmvip-blog-border: var(--bb-dark-border-color, #2a2e33);
	}
}

/* Light mode NUNCA vem da preferencia do SO sozinha (G-GAP-14).
 * So aplica light quando o tema/js declara explicitamente html.light-mode ou
 * body.buddyx-light-mode. Isso evita flash/clash de cores no web-app mobile
 * antes do UnifiedThemeDetector sincronizar o body. */
@media (prefers-color-scheme: light) {
	html.light-mode .hmvip-blog,
	body.buddyx-light-mode .hmvip-blog,
	body.light-mode .hmvip-blog {
		--hmvip-blog-text: var(--global-text-color, #1a1a1a);
		--hmvip-blog-text-muted: var(--global-text-secondary-color, #5f6b7a);
		--hmvip-blog-surface: var(--global-content-background-color, #ffffff);
		--hmvip-blog-surface-alt: var(--global-background-color, #f6f7f9);
		--hmvip-blog-border: var(--global-border-color, #e3e6ea);
	}
}

/* ---------- Help Center /tutoriais/ (F4) ---------- */

.hmvip-help-journeys {
	margin: 0 0 2.5rem;
}

.hmvip-help-journeys__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.hmvip-help-journeys__item {
	margin: 0;
}

.hmvip-help-journeys__card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background-color: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 1rem;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hmvip-help-journeys__card:hover,
.hmvip-help-journeys__card:focus {
	border-color: var(--hmvip-blog-accent);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	color: inherit;
}

.hmvip-help-journeys__icon {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	background: linear-gradient(135deg, var(--hmvip-blog-hero-from) 0%, var(--hmvip-blog-hero-to) 100%);
	color: #ffffff;
	border-radius: 0.75rem;
}

.hmvip-help-journeys__content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.hmvip-help-journeys__title {
	font-size: 1.125rem;
	font-weight: 700;
}

.hmvip-help-journeys__desc {
	font-size: 0.9375rem;
	color: var(--hmvip-blog-text-muted);
	line-height: 1.5;
}

.hmvip-help-toolbar {
	margin: 0 0 1.5rem;
}

.hmvip-help-search {
	margin-bottom: 1rem;
}

.hmvip-help-search__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.375rem;
	color: var(--hmvip-blog-text-muted);
}

.hmvip-help-search__input {
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: 1rem;
	background-color: var(--hmvip-blog-surface);
	border: 1px solid var(--hmvip-blog-border);
	border-radius: 0.75rem;
	color: var(--hmvip-blog-text);
}

.hmvip-help-search__input:focus {
	outline: 2px solid var(--hmvip-blog-accent);
	outline-offset: 2px;
}

.hmvip-help-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.hmvip-help-filters__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmvip-blog-text-muted);
	margin-right: 0.25rem;
}

.hmvip-help-filters__chip {
	appearance: none;
	border: 1px solid var(--hmvip-blog-border);
	background-color: var(--hmvip-blog-surface);
	color: var(--hmvip-blog-text);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hmvip-help-filters__chip:hover,
.hmvip-help-filters__chip:focus {
	border-color: var(--hmvip-blog-accent);
	color: var(--hmvip-blog-accent);
}

.hmvip-help-filters__chip.is-active {
	background-color: var(--hmvip-blog-accent);
	border-color: var(--hmvip-blog-accent);
	color: #ffffff;
}

.hmvip-help-card[hidden] {
	display: none;
}

@media (min-width: 48rem) {
	.hmvip-help-journeys__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.hmvip-help-search__input {
		max-width: 28rem;
	}
}

@media (min-width: 64rem) {
	.hmvip-help-journeys__list {
		grid-template-columns: repeat(3, 1fr);
	}
}
