
/* Snap near closing quotes without taking over normal page scrolling. */
html{scroll-snap-type:y proximity;scroll-padding-block:0;}
/* Every closing quote occupies exactly the currently visible viewport.
   Height includes padding and borders. It cannot grow with its content. */
.page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog{
  box-sizing:border-box;
  height:100vh;min-height:100vh;max-height:100vh;
  height:100dvh;min-height:100dvh;max-height:100dvh;
  margin-block:0;flex:none;
  scroll-margin-block:0;scroll-snap-align:start;scroll-snap-stop:always;
  display:flex;align-items:center;
  overflow:hidden;
}
/* Keep the quote in its intended single column, including legacy subpages. */
.page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog>article{
  display:flex;flex-direction:column;grid-template-columns:none;gap:0;
  min-width:0;min-height:0;flex:0 0 auto;
}
/* Short windows and landscape phones: fit typography and spacing inside
   the same screen instead of increasing the section height. */
@media(max-height:650px){
  .page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog{
    padding-top:clamp(12px,6vh,39px);padding-bottom:clamp(12px,6vh,39px);
    padding-top:clamp(12px,6dvh,39px);padding-bottom:clamp(12px,6dvh,39px);
  }
  .page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog .label{
    margin-bottom:min(20px,3vh);margin-bottom:min(20px,3dvh);
    font-size:10px;line-height:1.4;
  }
  .page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog blockquote p{
    font-size:clamp(16px,min(7.8vw,6.4vh),42px);
    font-size:clamp(16px,min(7.8vw,6.4dvh),42px);
    line-height:1.12;max-width:30ch;
  }
  .page:is(#core,#trading,#rozwoj,#technologia,#inwestowanie,#wlasny-room,#kontakt)>section.epilog figcaption{
    margin-top:min(22px,3.5vh);margin-top:min(22px,3.5dvh);
    font-size:12px;line-height:1.4;
  }
  #trading.page>section.epilog .tr-quote-source{font-size:10px;margin-top:5px;line-height:1.4}
}
