function optimizeHeaderAndLayout() {
const header = document.querySelector('.header');
if (window.innerWidth <= 768) {
// Set header to iOS standard height
if (header) {
header.style.height = '44px';
}
}
}
// Call on load and resize
window.addEventListener('DOMContentLoaded', optimizeHeaderAndLayout);
window.addEventListener('resize', optimizeHeaderAndLayout);