/* Shared short-page shell: the black footer is always the actual page bottom. */
html { height:auto; min-height:100%; }
body.body { display:flex; flex-direction:column; min-height:100vh; height:auto; }
body.body > .page-content { flex:1 0 auto; }
body.body > .footer { flex:none; margin-bottom:0; }
/* The footer paints over the fixed decorative frame, including its bottom edge. */
body.body > .footer { position:relative; z-index:27; background-color:#000; }
/* A normal-flow main absorbs spare height; growing ranking content remains natural. */
body.body > .page-content:has([data-vote-page]) { display:flex; flex-direction:column; }
body.body > .page-content:has([data-vote-page]) > [data-vote-page] {
 flex:1 0 auto; display:flex; flex-direction:column; justify-content:center; align-items:center;
 gap:24px; width:100%; min-height:0; margin:0;
 padding:calc(var(--poll-nav-bottom,112px) + 48px) 0 48px;
}
/* Keep display-title glyphs on a stable paint layer as the flex main grows. */
[data-vote-page] [data-poll-intro] { flex:none; margin:0; transform:translateZ(0); }
[data-vote-page] [data-vote-poll] { flex:none; margin:0; }
body.body:has([data-vote-page]) > .footer { margin-top:0; }
@media(max-width:767px) {
 body.body > .page-content:has([data-vote-page]) > [data-vote-page] { gap:20px; padding:calc(var(--poll-nav-bottom,112px) + 32px) 0 32px; }
}
@media(max-width:479px) {
 body.body > .page-content:has([data-vote-page]) > [data-vote-page] { padding-top:calc(var(--poll-nav-bottom,0px) + 32px); }
}
/* The inline Why gate uses the same balanced, viewport-aware breathing room. */
.get-started-div:has([data-poll-reveal][data-open="true"]) { margin-bottom:var(--poll-balanced-gap,48px); }
@media(max-width:767px) {
 .get-started-div:has([data-poll-reveal][data-open="true"]) { margin-bottom:var(--poll-balanced-gap,32px); }
}
