/* Shared decoration across the history and community sections. */
.history .history-architecture{display:none}
.history.history-refined{isolation:isolate;background:linear-gradient(#faf7efad,#faf7efad),url('/assets/continuidade/papel.png') 0 0 / 40px 150px!important}
.history.history-refined .history-shape{background:none;inset:0;width:100%;height:100%;overflow:hidden;clip-path:none}
.history.history-refined .history-architecture{display:block;position:absolute;right:0;bottom:5%;width:100%;height:65%;max-width:none;object-fit:fill;mask-image:none}
.history.history-refined .history-note{max-width:40vw;margin-right:35%;min-width:0}
@media(max-width:1024px){
.history.history-refined{background-size:auto,20px 75px!important}
.history.history-refined .history-architecture{bottom:0;width:100%;height:55%}
.history.history-refined .history-note{max-width:65%;margin-right:28%}
}

/* Shared layer: mobile reference coordinates y150..825, section boundary y508. */
.history-flow{display:contents}.history-boundary{display:none}
.history-flow-active{display:block;position:relative;isolation:isolate;background:linear-gradient(#faf7efad,#faf7efad),url('/assets/continuidade/papel.png') 0 0 / 40px 150px}
.history-flow-active .history.history-refined{background:transparent!important}
.history-flow-active .history>.wave{display:none}
.history-flow-active .history-boundary{display:block;position:absolute;left:0;right:0;top:calc(var(--history-height) - 100px);height:160px;background:url('/assets/continuidade/continuidade-desktop.svg') 0 0 / 100% 100% no-repeat;pointer-events:none;z-index:2;mask-image:linear-gradient(#000 65%,transparent)}
@media(max-width:1024px){
.history-flow-active{background-size:auto,20px 75px}
.history-flow-active .history-shape{display:none}
.history-flow-active .home-community{background:transparent;isolation:auto}
.history-flow-active .home-community::before{display:none}
.history-flow-active .history-boundary{top:calc(var(--history-height) - 38.0446vw);height:71.7322vw;background-image:url('/assets/continuidade/passagem-medida.svg?v=5');z-index:0;mask-image:none}
.history-flow-active .history>.inner,.history-flow-active .home-community>.inner,.history-flow-active .home-mosaic,.history-flow-active .gallery-link{position:relative;z-index:1}
}

@media(max-width:1024px){.history-flow-active .history.history-refined{position:relative;z-index:1}}

@media(min-width:1025px){
 .history.history-refined .history-architecture{bottom:0;height:70%}
}
@media(max-width:1024px){
 .history-flow-active .messages{
  border-radius:0;
  mask-image:url('/assets/continuidade/messages-cap.svg'),linear-gradient(#000,#000);
  mask-size:100% 7vw,100% calc(100% - 7vw + 1px);
  mask-position:top,bottom;mask-repeat:no-repeat;
 }
}
