/* Kill the theme’s content gutters so the page runs full-bleed inside Canvas. */
.gsn-stations-embed { width: 100%; margin: 0; padding: 0; line-height: 0; }
.gsn-stations-embed iframe {
display: block;
width: 100%;
border: 0;
/* Fallback height before the page reports its real one, and if JS is off.
Deliberately tall: too tall shows some empty navy, too short cuts content off. */
height: 6000px;
background: #02111a;
}
/* Sizes the iframe to the page inside it, so there is no inner scrollbar and no
dead space. The stations page posts its height on load, on resize, and whenever
its content changes. */
(function () {
var frame = document.getElementById(‘gsn-stations-frame’);
if (!frame) return;
window.addEventListener(‘message’, function (e) {
/* Only trust messages from the stations deployment itself. */
if (e.origin !== ‘https://gsn-stations.vercel.app’) return;
var h = e.data && e.data.gsnStationsHeight;
if (typeof h === ‘number’ && h > 200 && h < 100000) {
frame.style.height = h + 'px';
}
}, false);
})();