/* ==========================================================================
   Datavenia — camada "rede social de notícias" (mobile-first, estilo IG)
   Tipografia Inter, radius 12–20px, sombras discretas, micro-animações.
   ========================================================================== */
:root {
	--ig-bg: #fafafa;
	--ig-surface: #ffffff;
	--ig-border: #e9e9ee;
	--ig-text: #15151a;
	--ig-muted: #6b7280;
	--ig-accent: var(--dv-accent, #b8932f);
	--ig-primary: var(--dv-primary, #0b1f3a);
	--ig-like: #ed4956;
	--ig-radius: 16px;
	--ig-radius-sm: 12px;
	--ig-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
	--ig-grad: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
	--ig-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* A experiência de feed assume a tela; aplicada onde existe .dv-ig. */
.dv-ig, .dv-ig * { box-sizing: border-box; }
.dv-ig {
	font-family: var(--ig-font);
	color: var(--ig-text);
	background: var(--ig-bg);
	padding: 16px 0 96px;
	-webkit-font-smoothing: antialiased;
}
.dv-ig a { text-decoration: none; color: inherit; }
.dv-ig__wrap {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
.dv-ig__feed { min-width: 0; max-width: 620px; width: 100%; margin: 0 auto; }
.dv-ig__sidebar { display: none; }

/* ---------- Stories ---------- */
.dv-ig__stories {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 6px 2px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.dv-ig__stories::-webkit-scrollbar { display: none; }
.dv-story { flex: 0 0 auto; width: 72px; text-align: center; }
.dv-story__ring {
	display: block; width: 68px; height: 68px; border-radius: 50%;
	padding: 3px; background: var(--ig-grad); margin: 0 auto 6px;
	transition: transform .2s ease;
}
.dv-story:hover .dv-story__ring { transform: scale(1.05); }
.dv-story__img {
	display: block; width: 100%; height: 100%; border-radius: 50%;
	background: #ddd center/cover no-repeat; border: 3px solid var(--ig-surface);
}
.dv-story__title {
	display: block; font-size: 11px; color: var(--ig-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}

/* ---------- Card do feed ---------- */
.dv-card {
	background: var(--ig-surface);
	border: 1px solid var(--ig-border);
	border-radius: var(--ig-radius);
	box-shadow: var(--ig-shadow);
	margin-bottom: 22px;
	overflow: hidden;
}
.dv-card__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.dv-card__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.dv-card__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.dv-card__author { font-weight: 600; font-size: 14px; }
.dv-card__sub { font-size: 12px; color: var(--ig-muted); }
.dv-card__sub a { color: var(--ig-accent); font-weight: 600; }
.dv-card__more { margin-left: auto; background: none; border: 0; font-size: 20px; color: var(--ig-muted); cursor: pointer; line-height: 1; }

.dv-card__media { display: block; position: relative; aspect-ratio: 4 / 3; background: #f0f0f3; }
.dv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dv-card:hover .dv-card__media img { transform: scale(1.03); }
.dv-card__tag {
	position: absolute; left: 12px; top: 12px;
	background: rgba(11, 31, 58, .82); color: #fff; font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
	backdrop-filter: blur(4px);
}

.dv-card__actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 2px; }
.dv-act {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
	color: var(--ig-text); border-radius: 50%; transition: background .2s ease, transform .15s ease;
}
.dv-act svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dv-act:hover { background: #f2f2f5; }
.dv-act:active { transform: scale(.86); }
.dv-act--save { margin-left: auto; }
.dv-act--like.is-on { color: var(--ig-like); }
.dv-act--like.is-on svg { fill: var(--ig-like); stroke: var(--ig-like); }
.dv-act--save.is-on { color: var(--ig-primary); }
.dv-act--save.is-on svg { fill: var(--ig-primary); stroke: var(--ig-primary); }
@keyframes dv-pop { 0% { transform: scale(1);} 40% { transform: scale(1.35);} 100% { transform: scale(1);} }
.dv-act--anim svg { animation: dv-pop .4s ease; }

.dv-card__likes { padding: 2px 16px; font-size: 14px; font-weight: 600; }
.dv-card__title { display: block; padding: 8px 16px 0; font-weight: 700; font-size: 17px; line-height: 1.35; }
.dv-card__title:hover { color: var(--ig-accent); }
.dv-card__excerpt { margin: 6px 0 0; padding: 0 16px; font-size: 14px; color: #3f4452; line-height: 1.5; }
.dv-card__foot { display: flex; gap: 8px; align-items: center; padding: 12px 16px 16px; font-size: 12.5px; color: var(--ig-muted); }
.dv-card__foot a:hover { color: var(--ig-text); }

/* ---------- Skeleton ---------- */
.dv-skel { background: var(--ig-surface); border: 1px solid var(--ig-border); border-radius: var(--ig-radius); margin-bottom: 22px; overflow: hidden; }
.dv-skel__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.dv-skel__c, .dv-skel__l, .dv-skel__img { background: linear-gradient(90deg, #eee 25%, #f5f5f7 37%, #eee 63%); background-size: 400% 100%; animation: dv-shimmer 1.3s ease infinite; border-radius: 8px; }
.dv-skel__c { width: 38px; height: 38px; border-radius: 50%; }
.dv-skel__l { height: 12px; flex: 1; }
.dv-skel__img { height: 280px; border-radius: 0; }
.dv-skel__lines { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
@keyframes dv-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.dv-ig__sentinel { height: 1px; }

/* ---------- Sidebar (desktop) ---------- */
.dv-side__card { background: var(--ig-surface); border: 1px solid var(--ig-border); border-radius: var(--ig-radius); box-shadow: var(--ig-shadow); padding: 18px; margin-bottom: 20px; }
.dv-side__me { display: flex; align-items: center; gap: 12px; }
.dv-side__me img { width: 52px; height: 52px; border-radius: 50%; }
.dv-side__name { font-weight: 700; }
.dv-side__role { font-size: 13px; color: var(--ig-muted); }
.dv-side__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ig-muted); margin: 0 0 12px; }
.dv-side__list { list-style: none; margin: 0; padding: 0; }
.dv-side__list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ig-border); }
.dv-side__list li:last-child { border-bottom: 0; }
.dv-side__rank { color: var(--ig-accent); font-weight: 800; }
.dv-side__post { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.dv-side__post:hover { color: var(--ig-accent); }
.dv-side__post small { display: block; color: var(--ig-muted); font-weight: 500; }
.dv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-tag { font-size: 13px; font-weight: 600; color: var(--ig-primary); background: #eef1f6; padding: 7px 12px; border-radius: 999px; transition: all .2s ease; }
.dv-tag:hover { background: var(--ig-primary); color: #fff; }
.dv-btn-cta { display: inline-block; width: 100%; text-align: center; background: var(--ig-primary); color: #fff; font-weight: 700; padding: 12px; border-radius: var(--ig-radius-sm); margin-top: 12px; transition: opacity .2s ease; }
.dv-btn-cta:hover { opacity: .9; }

/* ---------- Cabeçalho: busca + auth ---------- */
.dv-search { position: relative; flex: 1; max-width: 360px; }
.dv-search input {
	width: 100%; height: 40px; border: 1px solid var(--ig-border); background: #f2f2f5;
	border-radius: 999px; padding: 0 16px 0 42px; font-size: 14px; font-family: var(--ig-font);
	color: var(--ig-text); outline: none; transition: background .2s ease, box-shadow .2s ease;
}
.dv-search input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(11,31,58,.08); }
.dv-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--ig-muted); fill: none; stroke-width: 2; }
.dv-auth { display: flex; align-items: center; gap: 8px; }
.dv-auth__btn { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.dv-auth__btn--ghost { color: var(--ig-primary); }
.dv-auth__btn--solid { background: var(--ig-primary); color: #fff; }
.dv-auth__btn--solid:hover { opacity: .9; }
.dv-auth__me { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dv-auth__me img { width: 34px; height: 34px; border-radius: 50%; }
.dv-auth__name { font-size: 13px; font-weight: 600; }

/* ---------- Menu inferior mobile ---------- */
.dv-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
	display: flex; justify-content: space-around; align-items: center;
	background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-top: 1px solid var(--ig-border); min-height: 58px; box-sizing: content-box; padding-bottom: env(safe-area-inset-bottom);
}
.dv-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ig-muted); font-size: 10px; }
.dv-tabbar a.is-active, .dv-tabbar a:hover { color: var(--ig-text); }
.dv-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dv-tabbar a.is-active svg { fill: currentColor; stroke: currentColor; }
@media (min-width: 1024px) { .dv-tabbar { display: none; } }

/* ---------- Página da notícia (single) ---------- */
.dv-article { font-family: var(--ig-font); color: var(--ig-text); max-width: 760px; margin: 0 auto; padding: 16px 16px 96px; }
.dv-article__cat { display: inline-block; color: var(--ig-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.dv-article__title { font-size: 30px; line-height: 1.2; font-weight: 800; margin: 10px 0 12px; }
.dv-article__sub { font-size: 18px; color: #3f4452; line-height: 1.5; margin: 0 0 18px; }
.dv-article__meta { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ig-border); border-bottom: 1px solid var(--ig-border); }
.dv-article__meta img { width: 44px; height: 44px; border-radius: 50%; }
.dv-article__metatext { font-size: 13px; color: var(--ig-muted); line-height: 1.4; }
.dv-article__metatext b { color: var(--ig-text); font-size: 14px; }
.dv-article__hero { width: 100%; border-radius: var(--ig-radius); overflow: hidden; margin: 18px 0; }
.dv-article__hero img { width: 100%; display: block; }
.dv-article__body { font-size: 17px; line-height: 1.75; }
.dv-article__body p { margin: 0 0 20px; }
.dv-article__body h2, .dv-article__body h3 { line-height: 1.3; margin: 32px 0 12px; font-weight: 800; }
.dv-article__body img { max-width: 100%; height: auto; border-radius: var(--ig-radius); margin: 8px 0; }
.dv-article__body blockquote { margin: 24px 0; padding: 6px 20px; border-left: 4px solid var(--ig-accent); font-size: 20px; font-style: italic; color: #2a2f3a; }
.dv-article__bar { position: sticky; bottom: 70px; display: flex; gap: 6px; align-items: center; background: var(--ig-surface); border: 1px solid var(--ig-border); border-radius: 999px; box-shadow: var(--ig-shadow); padding: 6px; margin: 28px auto; width: fit-content; }
@media (min-width: 1024px) { .dv-article__bar { bottom: 24px; } }
.dv-related { max-width: 1100px; margin: 12px auto 0; padding: 0 16px; }
.dv-related__h { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.dv-related__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dv-rel { display: flex; gap: 12px; background: var(--ig-surface); border: 1px solid var(--ig-border); border-radius: var(--ig-radius-sm); overflow: hidden; }
.dv-rel img { width: 110px; height: 90px; object-fit: cover; flex: 0 0 auto; }
.dv-rel__b { padding: 10px 12px 10px 0; }
.dv-rel__cat { font-size: 11px; font-weight: 700; color: var(--ig-accent); text-transform: uppercase; }
.dv-rel__t { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* Tela de busca / arquivo reaproveita os cards. */
.dv-feedhead { max-width: 620px; margin: 0 auto 6px; padding: 0 4px; }
.dv-feedhead h1 { font-size: 22px; font-weight: 800; }

/* ---------- Responsivo ---------- */
@media (min-width: 768px) {
	.dv-related__grid { grid-template-columns: 1fr 1fr; }
	.dv-rel img { width: 130px; height: 100px; }
}
@media (min-width: 1024px) {
	.dv-ig__wrap { grid-template-columns: minmax(0, 620px) 320px; justify-content: center; }
	.dv-ig__feed { margin: 0; }
	.dv-ig__sidebar { display: block; position: sticky; top: 96px; align-self: start; }
	.dv-ig { padding-bottom: 40px; }
}

/* ==========================================================================
   IMPORTANTE: a experiência "rede social" é MOBILE-ONLY.
   No desktop (>=1024px) o tema volta ao layout original (seções + menu).
   ========================================================================== */

/* Busca e área de login no cabeçalho: aparecem só no mobile. */
.dv-search, .dv-auth { display: none; }
@media (max-width: 1023px) {
	.dv-search { display: block; }
	/* O login NÃO fica no topo do mobile (ele vive no menu inferior). */
	.dv-auth { display: none; }
	/* No mobile, esconde o botão CTA do cabeçalho (o original aparece no desktop). */
	#top .btn_header { display: none; }
}

/* Garantia extra: nada da camada IG deve afetar o desktop. */
@media (min-width: 1024px) {
	.dv-tabbar { display: none; }
}

/* ---------- Visualizador de Stories (modal, mobile) ---------- */
.dv-storymodal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
	display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.dv-storymodal.is-open { opacity: 1; visibility: visible; }
.dv-storymodal__box { width: min(440px, 94vw); height: min(86vh, 800px); border-radius: 18px; overflow: hidden;
	position: relative; background: #111 center/cover no-repeat; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.dv-storymodal__bar { position: absolute; top: 10px; left: 12px; right: 12px; height: 3px; display: flex; gap: 4px; z-index: 3; }
.dv-storymodal__seg { flex: 1; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.dv-storymodal__seg > span { display: block; height: 100%; width: 0; background: #fff; }
.dv-storymodal__seg.is-done > span { width: 100%; }
.dv-storymodal__seg.is-active > span { animation: dv-story-fill 5s linear forwards; }
@keyframes dv-story-fill { from { width: 0; } to { width: 100%; } }
.dv-storymodal__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 28%, transparent 58%, rgba(0,0,0,.88)); }
.dv-storymodal__cat { position: absolute; top: 28px; left: 16px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; z-index: 3; }
.dv-storymodal__title { position: absolute; left: 16px; right: 16px; bottom: 80px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.3; z-index: 3; }
.dv-storymodal__read { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; background: #fff; color: #111; font-weight: 700; padding: 13px; border-radius: 12px; z-index: 4; }
.dv-storymodal__close { position: absolute; top: 16px; right: 14px; z-index: 5; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.dv-storymodal__nav { position: absolute; top: 0; bottom: 0; width: 33%; z-index: 2; }
.dv-storymodal__nav--prev { left: 0; }
.dv-storymodal__nav--next { right: 0; }
@media (min-width: 1024px) { .dv-storymodal { display: none !important; } }

/* ---------- Perfil ---------- */
.dv-profile { max-width: 620px; margin: 0 auto; }
.dv-profile__head { display: flex; align-items: center; gap: 16px; padding: 8px 4px 18px; }
.dv-profile__head img { width: 78px; height: 78px; border-radius: 50%; }
.dv-profile__name { font-size: 20px; font-weight: 800; }
.dv-profile__bio { color: var(--ig-muted); font-size: 14px; }
.dv-profile__tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--ig-border); margin-bottom: 16px; }
.dv-profile__tab { flex: 1; text-align: center; padding: 12px; font-weight: 700; color: var(--ig-muted); border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.dv-profile__tab.is-active { color: var(--ig-text); border-bottom-color: var(--ig-text); }
.dv-profile__panel { display: none; }
.dv-profile__panel.is-active { display: block; }
.dv-profile__empty { text-align: center; color: var(--ig-muted); padding: 40px 0; }

/* ==========================================================================
   Visibilidade por dispositivo
   - .dv-only-desktop : seções padrão (ocultas no mobile por padrão)
   - .dv-only-mobile  : feed (experiência exclusiva do mobile)
   - No mobile o cabeçalho vira uma barra sólida e o conteúdo começa abaixo
     dele (hero separado do header).
   ========================================================================== */
@media (min-width: 1024px) {
	.dv-only-mobile { display: none !important; }
}
@media (max-width: 1023px) {
	.dv-only-desktop { display: none !important; }

	/* Cabeçalho: barra sólida clara, separada do conteúdo. */
	#top, #top.is-fixed {
		position: fixed;
		background: #ffffff;
		box-shadow: 0 2px 12px rgba(16, 24, 40, .08);
		/* No PWA (standalone) o fundo do cabeçalho cobre a área do topo (status bar),
		   evitando a "fresta" por onde o conteúdo aparecia. */
		padding-top: calc(10px + env(safe-area-inset-top));
		padding-bottom: 10px;
	}
	#top .logo, #top .logo a { color: #15151a; }
	#nav-icon span { background-color: #15151a; }

	/* O conteúdo começa abaixo do cabeçalho fixo (não fica por baixo dele). */
	#content { padding-top: calc(64px + env(safe-area-inset-top)); }
}

/* No mobile o rodapé fica oculto por padrão; então removemos o espaço de
   "revelação" do footer fixo (senão sobra um vão grande no fim). */
@media (max-width: 1023px) {
	#content { margin-bottom: 0 !important; }
	body.dv-mfooter #content { margin-bottom: 380px !important; }
	/* Botão "voltar ao topo" acima do menu inferior. */
	.scrollTop { bottom: 74px; }
}

/* Avatar do usuário no item "Perfil" da barra inferior. */
.dv-tab__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid currentColor; }

/* ---------- Cabeçalho mobile configurável ---------- */
.dv-logo-mob { display: none; }
.dv-search--icon { position: static; }
@media (max-width: 1023px) {
	/* Logo específico do mobile (quando definido). */
	body.dv-has-mlogo .dv-logo-primary { display: none; }
	.dv-logo-mob { display: inline-flex; align-items: center; }
	.dv-logo-mob img { max-height: 34px; width: auto; }

	/* Busca "somente ícone". */
	.dv-search--icon {
		flex: 0 0 auto; width: 42px; height: 42px; max-width: 42px; padding: 0;
		display: inline-flex; align-items: center; justify-content: center;
		background: #f2f2f5; border-radius: 50%;
	}
	.dv-search--icon svg { position: static; transform: none; width: 20px; height: 20px; }

	/* O "cabeçalho" do card (avatar + autor + categoria) não aparece no mobile. */
	.dv-card__top { display: none; }
}

/* ---------- Barra inferior: tamanho fixo e estável ao rolar ---------- */
.dv-tabbar { box-sizing: content-box; min-height: 58px; flex-wrap: nowrap; }
.dv-tabbar a {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 2px;
	height: 100%;
	justify-content: center;
}
.dv-tabbar a svg { flex: 0 0 auto; width: 24px; height: 24px; }
.dv-tabbar a span {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.1;
}
.dv-tabbar .dv-tab__avatar { flex: 0 0 auto; }

/* ---------- Botões de login social ---------- */
.dv-soc-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dv-soc { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--ig-border, #e9e9ee); transition: opacity .2s ease, transform .15s ease; }
.dv-soc:hover { opacity: .92; }
.dv-soc:active { transform: scale(.98); }
.dv-soc--google { background: #fff; color: #3c4043; }
.dv-soc--fb { background: #1877f2; color: #fff; border-color: #1877f2; }

/* ==========================================================================
   Paywall Premium (overlay tela cheia, criativo 9:16)
   ========================================================================== */
.dv-paywall {
	position: fixed; inset: 0; z-index: 3000;
	background: rgba(8, 12, 20, .72);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	display: flex; align-items: center; justify-content: center;
	padding: 18px; font-family: var(--ig-font);
}
.dv-paywall__panel {
	position: relative; width: min(420px, 94vw); aspect-ratio: 9 / 16; max-height: 92vh;
	border-radius: 22px; overflow: hidden;
	background: linear-gradient(160deg, var(--ig-primary, #0b1f3a), #060d18);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.dv-paywall__slides, .dv-paywall__slide { position: absolute; inset: 0; }
.dv-paywall__slide { background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.dv-paywall__slide.is-active { opacity: 1; }
.dv-paywall__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,20,.25), rgba(8,12,20,.5) 45%, rgba(8,12,20,.92)); }
.dv-paywall__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; color: #fff; overflow: auto; }
.dv-paywall__content h2 { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 12px; }
.dv-paywall__content p { font-size: 14px; line-height: 1.55; color: #e8ecf3; margin: 0 0 14px; }
.dv-paywall__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dv-paywall__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 600; }
.dv-paywall__list svg { flex: 0 0 auto; margin-top: 2px; }
.dv-paywall__btn { display: block; text-align: center; background: var(--ig-accent, #b8932f); color: #0b1f3a; font-weight: 800; padding: 14px; border-radius: 12px; text-decoration: none; transition: transform .15s ease, opacity .2s ease; }
.dv-paywall__btn:hover { opacity: .95; }
.dv-paywall__btn:active { transform: scale(.98); }
.dv-paywall__foot { font-size: 12.5px; opacity: .82; margin: 10px 0 0; text-align: center; }

/* ---------- Paywall em TELA CHEIA + cores accent ---------- */
.dv-paywall { z-index: 900; padding: 0; align-items: stretch; justify-content: stretch; }
.dv-paywall__panel { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.dv-paywall__content { padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; left: 0; right: 0; }
.dv-paywall__content h2 { color: var(--ig-accent, #b8932f); }
.dv-paywall__list svg path { stroke: var(--ig-accent, #b8932f); }

/* Some com a barra inferior na tela do paywall (dá espaço). */
body.dv-paywalled .dv-tabbar { display: none !important; }

/* Botão redondo de casa (voltar) no cabeçalho da tela bloqueada. */
.dv-home-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
	background: var(--ig-accent, #b8932f); color: #0b1f3a;
}
.dv-home-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Paywall: textos em branco (apenas título e checks usam a cor de destaque). */
.dv-paywall__content p,
.dv-paywall__list,
.dv-paywall__list li,
.dv-paywall__list span,
.dv-paywall__foot { color: #ffffff; }

/* Botão home (voltar): pulsação para chamar atenção. */
.dv-home-btn { animation: dv-home-pulse 1.6s ease-in-out infinite; }
@keyframes dv-home-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(184, 147, 47, .55); }
	70%  { box-shadow: 0 0 0 12px rgba(184, 147, 47, 0); }
	100% { box-shadow: 0 0 0 0 rgba(184, 147, 47, 0); }
}

/* Na tela do paywall o cabeçalho mostra logo (esquerda) + botão Home (direita).
   O tema esconde o 3º item no mobile; aqui forçamos sua exibição (só botão Home). */
body.dv-paywalled #top .item:nth-of-type(3) {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
}
@media (max-width: 1023px) {
	body.dv-paywalled #top .item:nth-of-type(2) { flex: 1 1 auto; }
}

/* Paywall: marca (H1) + ícone de cadeado. */
.dv-paywall__brand { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: #fff; margin: 0 0 14px; }
.dv-paywall__lock { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); margin: 0 0 14px; }
.dv-paywall__lock svg { width: 26px; height: 26px; fill: none; stroke: var(--ig-accent, #b8932f); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-feedhead h1 { display: inline-flex; align-items: center; gap: 8px; }
.dv-feedhead__ico { color: var(--ig-accent, #b8932f); }

/* Marca Premium: topo, grande, fonte premium e reflexo passando. */
.dv-paywall__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; text-align: center; padding: 92px 20px 0; pointer-events: none; }
.dv-paywall__brand {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 900;
	font-size: clamp(34px, 9vw, 58px);
	line-height: 1.04;
	letter-spacing: .01em;
	margin: 0;
	color: var(--ig-accent, #b8932f);
}
.dv-paywall__brand span {
	background: linear-gradient(100deg, var(--ig-accent, #b8932f) 0%, var(--ig-accent, #b8932f) 38%, #fff6da 50%, var(--ig-accent, #b8932f) 62%, var(--ig-accent, #b8932f) 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: dv-shine 3.6s ease-in-out infinite;
}
@keyframes dv-shine { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }
@media (min-width: 1024px) { .dv-paywall__top { padding-top: 120px; } }


/* ==========================================================================
   Botão de alternar tema (claro/escuro) — aparece ao rolar (mobile).
   Estilos da base valem para os dois modos.
   ========================================================================== */
.dv-darktoggle {
	display: none; align-items: center; justify-content: center;
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: #f2f2f5; color: #15151a; cursor: pointer; flex: 0 0 auto;
}
.dv-darktoggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dv-darktoggle .ico-sun { display: none; }
html.dv-dark .dv-darktoggle .ico-sun { display: block; }
html.dv-dark .dv-darktoggle .ico-moon { display: none; }
@media (max-width: 1023px) {
	#top.is-fixed .dv-search { display: none; }
	/* O botão de modo escuro só aparece na home (a escolha de tema é feita lá). */
	body.dv-home #top.is-fixed .dv-darktoggle { display: inline-flex; }
	/* Botão de tema alinhado à direita quando o cabeçalho está fixo. */
	#top.is-fixed .item:nth-of-type(2) { display: flex; align-items: center; justify-content: flex-end; }
}

/* ==========================================================================
   MODO ESCURO — premium, "superfície contínua" (mobile/tablet).
   Bloco ÚNICO e consolidado. Mantém os espaçamentos originais do layout
   (sem esmagar o conteúdo); o visual "sem caixa" vem de: fundo uniforme,
   sem bordas/sombras, cantos retos e divisores sutis. Azul só em ações.
   ========================================================================== */
@media (max-width: 1023px) {

	/* Paleta: fundo uniforme; superfície quase idêntica (variação mínima). */
	html.dv-dark {
		--ig-bg: #0a0a0b;
		--ig-surface: #141416;
		--ig-border: #1c1c1f;
		--ig-text: #f3f3f5;
		--ig-muted: #8c8c93;
		--ig-accent: #4f8cff;
	}
	html.dv-dark body,
	html.dv-dark .content-wrap,
	html.dv-dark main,
	html.dv-dark #content,
	html.dv-dark .dv-ig { background: var(--ig-bg); color: var(--ig-text); }
	/* Placeholders de imagem (enquanto carrega) também escuros. */
	html.dv-dark .dv-card__media { background: #141416; }
	html.dv-dark .dv-card__media img { background: #141416; }

	/* Cabeçalho: plano, fio sutil no lugar de sombra. */
	html.dv-dark #top,
	html.dv-dark #top.is-fixed {
		background: var(--ig-bg);
		box-shadow: none;
		border-bottom: 1px solid rgba(255, 255, 255, .06);
	}
	html.dv-dark #top .logo,
	html.dv-dark #top .logo a,
	html.dv-dark .dv-logo-primary a { color: var(--ig-text); }
	html.dv-dark #nav-icon span { background-color: var(--ig-text); }
	html.dv-dark .dv-search input { background: #18181b; color: var(--ig-text); border-color: transparent; }
	html.dv-dark .dv-search input::placeholder { color: #7c7c84; }
	html.dv-dark .dv-search svg { stroke: var(--ig-muted); }
	html.dv-dark .dv-search--icon,
	html.dv-dark .dv-darktoggle { background: #18181b; color: var(--ig-text); }

	/* Stories: anel sóbrio (sem arco-íris). */
	html.dv-dark .dv-story__img { border-color: var(--ig-bg); background-color: #1d1d20; }
	html.dv-dark .dv-story__title { color: var(--ig-muted); }

	/* Cards: sem caixa. Fundo = fundo da página, sem borda/sombra,
	   cantos retos, separação por espaçamento + fio sutil.
	   IMPORTANTE: paddings internos preservados (layout intacto). */
	html.dv-dark .dv-card {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin-bottom: 0;
		padding-bottom: 24px;
		border-bottom: 1px solid rgba(255, 255, 255, .055);
	}
	html.dv-dark .dv-card + .dv-card { margin-top: 4px; }
	html.dv-dark .dv-card:last-child { border-bottom: 0; }

	/* Imagens: cantos retos (editorial). */
	html.dv-dark .dv-card__media,
	html.dv-dark .dv-card__media img { border-radius: 0; }

	/* Etiqueta de categoria: discreta e reta (sem pílula colorida). */
	html.dv-dark .dv-card__tag {
		background: rgba(0, 0, 0, .5);
		border-radius: 0;
		font-weight: 600;
		backdrop-filter: blur(2px);
	}

	/* Tipografia: títulos fortes, alto contraste; texto auxiliar suave. */
	html.dv-dark .dv-card__title { font-size: 18px; letter-spacing: -0.01em; color: #fafafc; }
	html.dv-dark .dv-card__excerpt { color: #a9a9b0; }
	html.dv-dark .dv-card__likes,
	html.dv-dark .dv-card__foot { color: var(--ig-muted); }
	html.dv-dark .dv-card__author { color: var(--ig-text); }
	html.dv-dark .dv-card__cat,
	html.dv-dark .dv-card__sub a { color: var(--ig-accent); }
	html.dv-dark .dv-act { color: var(--ig-text); }
	html.dv-dark .dv-act:hover { background: rgba(255, 255, 255, .07); }
	html.dv-dark .dv-act:active { background: rgba(255, 255, 255, .12); }

	/* Barra inferior: plana, fio sutil. */
	html.dv-dark .dv-tabbar {
		background: rgba(10, 10, 11, .96);
		border-top: 1px solid rgba(255, 255, 255, .07);
		box-shadow: none;
	}
	html.dv-dark .dv-tabbar a { color: var(--ig-muted); }
	html.dv-dark .dv-tabbar a.is-active { color: var(--ig-text); }

	/* Sidebar / tags: sem caixa. */
	html.dv-dark .dv-side__card { background: transparent; border: 0; box-shadow: none; }
	html.dv-dark .dv-side__title { color: var(--ig-muted); }
	html.dv-dark .dv-tag { background: #18181b; color: #d7dde8; border: 0; border-radius: 0; }
	html.dv-dark .dv-tag:hover { background: #232327; color: #fff; }

	/* Página da notícia: editorial, reto, alto contraste, espaçado. */
	html.dv-dark .dv-article { color: var(--ig-text); }
	html.dv-dark .dv-article__sub { color: #c2c2ca; }
	html.dv-dark .dv-article__body { color: #e6e6ea; font-size: 18px; line-height: 1.8; }
	html.dv-dark .dv-article__body p { margin-bottom: 22px; }
	html.dv-dark .dv-article__hero,
	html.dv-dark .dv-article__hero img { border-radius: 0; }
	html.dv-dark .dv-article__meta { border-color: rgba(255, 255, 255, .08); }
	html.dv-dark .dv-article__bar {
		background: transparent; border: 0; box-shadow: none;
		border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0;
	}
	html.dv-dark .dv-rel { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
	html.dv-dark .dv-rel img { border-radius: 0; }

	/* Skeleton escuro sutil. */
	html.dv-dark .dv-skel { background: transparent; border: 0; }
	html.dv-dark .dv-skel__c,
	html.dv-dark .dv-skel__l,
	html.dv-dark .dv-skel__img {
		background: linear-gradient(90deg, #141416 25%, #1d1d20 37%, #141416 63%);
		background-size: 400% 100%;
	}

	/* Microinterações suaves + transição ao alternar tema. */
	html.dv-dark #top,
	html.dv-dark .dv-tabbar,
	html.dv-dark .dv-search input,
	html.dv-dark .dv-darktoggle,
	html.dv-dark a,
	html.dv-dark .dv-act { transition: background-color .3s ease, color .25s ease, border-color .3s ease; }

	/* Acessibilidade: foco visível por teclado. */
	html.dv-dark :focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
}

/* Tablets: leitura um pouco maior. */
@media (min-width: 768px) and (max-width: 1023px) {
	html.dv-dark .dv-card__title { font-size: 20px; }
	html.dv-dark .dv-article__body { font-size: 19px; }
}

/* Respeita quem prefere menos movimento. */
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	html.dv-dark .dv-card__media img,
	html.dv-dark .dv-act,
	html.dv-dark a { transition: none; }
}

/* ==========================================================================
   Estilo da borda dos Stories (configurável em Mobile → Stories).
   Tema 1 (padrão): gradiente colorido (--ig-grad).
   Tema 2: dourado. Vale para os dois modos (claro/escuro).
   ========================================================================== */
body.dv-ring-gold .dv-story__ring {
	background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 28%, #b38728 52%, #fbf5b7 74%, #aa771c 100%);
}

/* ==========================================================================
   Título da página no topo (Acervo / Em alta) — substitui a busca, à direita,
   na cor da marca, com efeito de reflexo. Some os títulos do corpo.
   ========================================================================== */
body.dv-headtitle .dv-search { display: none !important; }
body.dv-headtitle .dv-acervo__head,
body.dv-headtitle .dv-feedhead { display: none; }

.dv-pagetitle {
	display: block; height: 40px; line-height: 40px;
	max-width: 62vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-weight: 700; font-size: 18px; letter-spacing: .01em; color: #BFA14A;
}
.dv-pagetitle--shine {
	background: linear-gradient(100deg, #BFA14A 0%, #BFA14A 38%, #fff4cf 50%, #BFA14A 62%, #BFA14A 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: dv-pagetitle-shine 3.4s ease-in-out infinite;
}
@keyframes dv-pagetitle-shine { 0% { background-position: 220% 0; } 100% { background-position: -220% 0; } }

/* No desktop o menu de navegação ocupa esse espaço: não exibimos o título lá. */
@media (min-width: 1024px) { .dv-pagetitle { display: none; } }
/* No mobile o título vai para a direita, no lugar da busca, sem alterar a altura. */
@media (max-width: 1023px) {
	body.dv-headtitle #top .item:nth-of-type(2) { display: flex; align-items: center; }
	.dv-pagetitle { margin-left: auto; text-align: right; }
}

/* ==========================================================================
   Altura estável do cabeçalho (mobile): a linha tem altura mínima fixa, então
   o cabeçalho NÃO encolhe quando a busca some ao rolar (posts) nem quando o
   botão de tema entra (home). Vale para os dois estados (normal e fixo).
   ========================================================================== */
@media (max-width: 1023px) {
	/* A linha já é flex com align-items:center; a altura mínima impede o encolhimento. */
	#top .row { min-height: 44px; }
}

/* ==========================================================================
   Ajustes: títulos de posts no escuro (dourado) e estabilidade da barra
   inferior no PWA (camada própria evita o "pulo" ao trocar de página no iOS).
   ========================================================================== */
@media (max-width: 1023px) {
	html.dv-dark .dv-card__title { color: #BFA14A; }
	html.dv-dark .dv-card__title:hover { color: #d8bd6a; }
	html.dv-dark .dv-article__title { color: #BFA14A; }

	.dv-tabbar {
		transform: translateZ(0);
		-webkit-transform: translateZ(0);
		will-change: transform;
	}
}

/* ==========================================================================
   Comentários (single) — padrão do tema. Usa as variáveis --ig-* (adaptam
   automaticamente ao modo claro/escuro). Vale no desktop e no mobile.
   ========================================================================== */
.dv-comments { max-width: 720px; margin: 30px auto 0; font-family: var(--ig-font); color: var(--ig-text); }
.dv-comments__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
.dv-comments__title span { color: var(--ig-accent); }
.dv-comments__list { list-style: none; margin: 0 0 22px; padding: 0; }
.dv-comments__list .children { list-style: none; margin: 12px 0 0 26px; padding: 0; }
.dv-comment { margin: 0 0 14px; }
.dv-comment__in { display: flex; gap: 12px; }
.dv-comment__avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.dv-comment__body { flex: 1; min-width: 0; background: var(--ig-surface); border: 1px solid var(--ig-border); border-radius: 14px; padding: 12px 15px; }
.dv-comment__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.dv-comment__author { font-weight: 700; font-size: 14px; }
.dv-comment__author a { color: inherit; text-decoration: none; }
.dv-comment__date { font-size: 12px; color: var(--ig-muted); }
.dv-comment__pending { font-size: 12px; font-style: italic; color: var(--ig-muted); margin: 0 0 6px; }
.dv-comment__text { font-size: 14px; line-height: 1.6; }
.dv-comment__text p { margin: 0 0 8px; }
.dv-comment__text p:last-child { margin-bottom: 0; }
.dv-comment__actions { margin-top: 7px; }
.dv-comment__actions a { font-size: 12.5px; font-weight: 600; color: var(--ig-accent); text-decoration: none; }
.dv-comment__actions a:hover { text-decoration: underline; }

/* Formulário (cobre classes do tema e os padrões do WordPress) */
.dv-cform, .comment-respond { max-width: 720px; margin: 10px auto 0; }
.comment-respond .comment-reply-title, #reply-title { font-size: 17px; font-weight: 800; margin: 0 0 12px; color: var(--ig-text); }
.dv-cform p, .comment-respond p { margin: 0 0 12px; }
.dv-cform__lbl, .comment-form label { display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ig-text); }
.dv-cform textarea, #commentform textarea,
.dv-cform input[type="text"], .dv-cform input[type="email"], .dv-cform input[type="url"],
#commentform input[type="text"], #commentform input[type="email"], #commentform input[type="url"] {
	width: 100%; border: 1px solid var(--ig-border); background: var(--ig-surface); color: var(--ig-text);
	border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.dv-cform textarea:focus, #commentform textarea:focus,
.dv-cform input:focus, #commentform input:focus {
	border-color: var(--ig-accent); box-shadow: 0 0 0 3px rgba(184,147,47,.18);
}
.dv-cform .dv-cform__submit, .dv-cform input[type="submit"],
#commentform #submit, .comment-respond input[type="submit"], .form-submit .submit {
	background: var(--ig-primary); color: #fff; border: 0; border-radius: 10px; font-weight: 700;
	padding: 11px 24px; cursor: pointer; font-size: 14px; transition: opacity .2s ease, transform .12s ease;
}
.dv-cform .dv-cform__submit:hover, #commentform #submit:hover { opacity: .92; }
.dv-cform .dv-cform__submit:active, #commentform #submit:active { transform: translateY(1px); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-size: 12.5px; color: var(--ig-muted); margin: 0; }
.comment-notes, .logged-in-as { font-size: 12.5px; color: var(--ig-muted); }
.comment-notes a, .logged-in-as a { color: var(--ig-accent); }
#cancel-comment-reply-link { font-size: 12.5px; color: var(--ig-accent); margin-left: 8px; }

/* Modo escuro (mobile): suaviza a borda dos cards/campos de comentário. */
@media (max-width: 1023px) {
	html.dv-dark .dv-comment__body { background: #141416; border-color: rgba(255,255,255,.08); }
	html.dv-dark .dv-cform textarea, html.dv-dark #commentform textarea,
	html.dv-dark .dv-cform input[type="text"], html.dv-dark .dv-cform input[type="email"], html.dv-dark .dv-cform input[type="url"],
	html.dv-dark #commentform input[type="text"], html.dv-dark #commentform input[type="email"], html.dv-dark #commentform input[type="url"] {
		background: #161618; border-color: rgba(255,255,255,.1);
	}
}

/* ==========================================================================
   Cards oficiais de notícia no modo escuro (ex.: "Notícias relacionadas" do
   single) — título dourado e meta clara para legibilidade.
   ========================================================================== */
@media (max-width: 1023px) {
	html.dv-dark .dv-news__title a { color: #BFA14A; }
	html.dv-dark .dv-news__title a:hover { color: #d8bd6a; }
	html.dv-dark .dv-news__cat { color: #BFA14A; }
	html.dv-dark .dv-news__meta { color: var(--ig-muted); }
}
