/* Vantage: interface do APP instalado (só vale com <html class="is-app">; a versão web não muda). */
#vapp, #vtab, #vread { display: none }
.is-app #vapp { display: block }
.is-app #vtab { display: grid }
.is-app body { padding-bottom: calc(var(--tb, 58px) + env(safe-area-inset-bottom, 0px)) }
.is-app .mod { z-index: 70 }
.is-app .share { z-index: 80 }

/* qual tela aparece */
.is-app body:not(.vt-profile) main#conteudo,
.is-app body:not(.vt-profile) .vbg,
.is-app body:not(.vt-profile) .vdust,
.is-app body:not(.vt-profile) .vglow { display: none !important }
#vapp > section { display: none }
body.vt-home #v-home, body.vt-news #v-news, body.vt-alerts #v-alerts { display: block }
body.vt-reels #v-reels { display: block }
.is-app main#conteudo { padding-bottom: 24px }

/* barra de abas */
#vtab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; grid-template-columns: repeat(5, 1fr); background: rgba(11, 11, 13, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px) }
#vtab button { position: relative; background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 2px 8px; min-height: 56px; font-family: var(--display); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase }
#vtab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
#vtab svg .fl { fill: currentColor; stroke: none }
#vtab button.on { color: var(--gold2) }
#vtab button.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--gold) }
#vtab .bd { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: var(--ink); font: 700 10px/16px system-ui, sans-serif; text-align: center; letter-spacing: 0 }
#vtab .bd[hidden] { display: none }

/* início */
#v-home, #v-news, #v-alerts { max-width: 600px; margin: 0 auto; position: relative; z-index: 2 }
.vrail { display: flex; gap: 14px; overflow-x: auto; padding: 14px 14px 12px; scrollbar-width: none; border-bottom: 1px solid var(--line-soft) }
.vrail::-webkit-scrollbar { display: none }
.rc { flex: none; width: 76px; background: none; border: 0; padding: 0; text-align: center; color: var(--text) }
.rc i { display: block; width: 72px; height: 72px; border-radius: 50%; padding: 3px; margin: 0 auto 5px; border: 2px solid var(--line); overflow: hidden; background: #000; box-sizing: border-box }
.rc.new i { border-color: transparent; background: conic-gradient(from 20deg, #8a6a2c, #e8cf94, #C9A45C, #8a6a2c, #e8cf94, #8a6a2c) border-box; background-clip: border-box; padding: 3px; border: 0; position: relative }
.rc.new i > img, .rc.new i > video { border: 3px solid #000; box-sizing: border-box }
.rc i img, .rc i video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #000 }
.rc i img.mk { object-fit: contain; padding: 10px }
.rc span { display: block; font-size: 12.5px; line-height: 1.2; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.rc.new span { color: var(--cream) }

.fc { border-bottom: 1px solid var(--line-soft); padding-bottom: 6px }
.fc header { display: flex; align-items: center; gap: 10px; padding: 12px 14px }
.fc header img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #000; border: 1px solid var(--gold); padding: 2px }
.fc header b { font-family: var(--display); font-size: 12.5px; letter-spacing: .1em; color: var(--cream); font-weight: 500 }
.fc header time { margin-left: auto; font-size: 13px; color: var(--muted) }
.fm { position: relative; background: #000 }
.fm img, .fm video { display: block; width: 100%; max-height: 78svh; object-fit: contain; background: #000 }
.fm .mm { position: absolute; top: 10px; right: 10px; font: 600 11px/1 system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, .55); padding: 5px 8px; border-radius: 10px; font-style: normal }
.fa { display: flex; gap: 6px; padding: 6px 8px 0 }
.fa button, #v-reels .rs button { background: none; border: 0; color: var(--text); min-width: 44px; min-height: 44px; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px }
.fa button em, #v-reels .rs button em { font: 500 14px/1 var(--serif); font-style: normal; color: var(--muted) }
.fa button.on span, #v-reels .rs button.on span { color: #e0556a }
.fcap { margin: 0; padding: 2px 14px 8px; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere }
.fcap b { color: var(--cream); font-weight: 600 }
.vmore, .lnk { background: none; border: 0; color: var(--gold2); text-decoration: underline; text-underline-offset: 4px; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 14px 0; min-height: 44px }
.vmore { display: block; margin: 8px auto 16px }
.empty { text-align: center; color: var(--muted); padding: 40px 20px }

/* reels em tela cheia */
body.vt-reels { overflow: hidden }
body.vt-reels #v-reels { position: fixed; top: var(--ab, 52px); bottom: calc(var(--tb, 58px) + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; z-index: 25; background: #000; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; max-width: none }
#v-reels::-webkit-scrollbar { display: none }
.rl { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000 }
.rl video { width: 100%; height: 100%; object-fit: contain; display: block }
.rl .ro { position: absolute; left: 0; right: 64px; bottom: 0; padding: 40px 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none }
.rl .ro p { margin: 0; font-size: 17px; color: #eee; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.rl .ro b { color: var(--gold2) }
.rl .rs { position: absolute; right: 4px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px }
.rl .rs button { color: #fff; flex-direction: column; gap: 2px; text-shadow: 0 1px 4px #000 }
.rl .rs button em { color: #ddd }

/* novidades + avisos: linhas simples, sem caixas */
#v-news h2 { font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold2); font-weight: 500; margin: 22px 16px 4px }
.ni, .ai { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 14px 16px; color: var(--text) }
.ni b, .ai b { display: block; color: var(--cream); font-size: 19px; line-height: 1.25; font-weight: 600 }
.ni span, .ai span { display: block; font-size: 16.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.ni time, .ai time { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: .04em }
.ai { display: flex; gap: 14px; align-items: flex-start; position: relative }
.ai i { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold2); font-style: normal; font-size: 15px }
.ai div { min-width: 0; flex: 1 }
.ai.new { background: linear-gradient(90deg, rgba(201, 164, 92, .08), transparent) }
.ai.new i { border-color: var(--gold) }
.ai em { font: 600 10px/1 var(--display); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); flex: none; margin-top: 4px }
.pbox { padding: 18px 16px 8px; border-bottom: 1px solid var(--line-soft) }
.pbox p { margin: 0 0 2px; font-size: 16.5px; color: var(--muted) }

/* leitor de artigos dentro do app */
#vread:not([hidden]) { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60; background: var(--ink) }
#vread .rb { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; border-bottom: 1px solid var(--line); background: rgba(11, 11, 13, .96); font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase }
#vread .rb button { background: none; border: 0; color: var(--gold2); font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 44px; padding: 0 4px }
#vread .rb span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); text-align: center; text-transform: none; letter-spacing: .02em; font: 500 15px var(--serif) }
#vread .rb a { color: var(--muted); font-size: 10px; white-space: nowrap }
#vread iframe { flex: 1; width: 100%; border: 0; background: var(--ink) }
body.v-reading { overflow: hidden }

@media (prefers-reduced-motion: reduce) { .rl, #v-reels { scroll-behavior: auto } }

.fa .ic svg, .rs .ic svg, .rs .mu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; display: block }
.rs .mu svg { width: 26px; height: 26px }
.rc i img[src$='logo.png'] { object-fit: contain; padding: 8px }

/* app instalado: sem cópia do site (nada de baixar app, copiar link, site, acessibilidade); topo = logo + conta + idioma */
.is-app .inst, .is-app #pushBtn, .is-app #appCopy, .is-app .appbar a, .is-app .a11y, .is-app .vtools .vget { display: none !important }
.is-app .appbar { flex-wrap: nowrap; padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 8px }
.is-app .appbar .wm img { height: 26px; width: auto; display: block }
.is-app .appbar > span { display: flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto }
.is-app .appbar #vtools { position: static; display: flex; align-items: center; gap: 4px; flex-wrap: nowrap }
.is-app .appbar button { margin-left: 0 }
.is-app .appbar .wm { flex: none }
.is-app .appbar > span { overflow: hidden; justify-content: flex-end }
.is-app .appbar #vtools button, .is-app .appbar #vtools a { letter-spacing: .06em; font-size: 10px; padding-left: 6px; padding-right: 6px }
.is-app .appbar { justify-content: space-between }

/* botões "Get the Vantage app" e links do perfil: placa de vidro escura com fio dourado, legível sobre qualquer foto */
.inst .vget, .prof .lks a {
  background: rgba(8, 8, 10, .66) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 164, 92, .38) !important; border-radius: 3px; text-shadow: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important; transition: border-color .3s, background .3s, transform .3s;
}
.inst .vget { padding: 8px 18px !important; min-height: 40px !important; color: var(--gold2) !important; width: 100%; max-width: 330px; justify-content: flex-start }
.inst .vget:hover, .inst .vget:focus-visible, .prof .lks a:hover, .prof .lks a:focus-visible { border-color: var(--gold2) !important; background: rgba(20, 16, 8, .78) !important; transform: translateY(-1px) }
.vhero .inst { gap: 8px !important }
.inst .vget i { opacity: .55 !important; transform: none !important; margin-left: auto }
.inst .vget span { background: none !important; padding: 0 !important }
.prof .lks { gap: 8px 10px }
.prof .lks a { padding: 7px 14px !important; font-size: 16px; letter-spacing: .04em; color: var(--cream) }
.prof .lks a::before { color: var(--gold2); opacity: .9 }
#instHelp { background: rgba(8, 8, 10, .78); border: 1px solid var(--line); padding: 10px 14px; border-radius: 3px; text-shadow: none !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
#instHelp[hidden] { display: none }
