/* Mobile layout for ejma.euap.org (added 2026-11). Desktop layout is unchanged. */
.ejma-menu-btn { display: none; }
@media screen and (max-width: 800px) {
    body { min-width: 0; max-width: none; }
    .head {
        height: auto; padding: 12px 16px; box-sizing: border-box;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        border-bottom: 1px solid #e3e3e3;
    }
    .head .logo { display: none; }
    div.hgroup { left: 0; top: 0; margin: 0; max-height: none; overflow: visible; flex: 1; }
    h1.site-title, h1.site-title a { display: block; width: auto; height: auto; font-size: 20px; line-height: 1.3; }
    span.site-description { display: none; }
    .head .clearfix { display: none; }
    .ejma-menu-btn {
        display: inline-block; flex: none; font: inherit; font-size: 15px; color: #bd5224;
        background: #fff; border: 1px solid #bd5224; border-radius: 6px; padding: 6px 12px; cursor: pointer;
    }
    .sidespacer { display: none; }
    #wrap { left: 0; width: 100%; padding: 0; display: block; box-sizing: border-box; }
    #sidebar {
        display: none; float: none; position: static; left: 0; width: auto; height: auto;
        padding: 4px 16px 12px; border-bottom: 1px solid #e3e3e3; font-size: 16px; box-sizing: border-box;
    }
    body.ejma-nav-open #sidebar { display: block; }
    #content { left: 0; width: auto; margin: 0; padding: 8px 16px 16px; float: none; box-sizing: border-box; }
    #content article.entry, #content .entry-header, #content .entry-container, #content .entry-title,
    #content .hentry, #content figure, #content p, #content .pagination {
        width: auto !important; max-width: 100%; margin-left: 0; margin-right: 0; box-sizing: border-box;
    }
    #content .entry-container { padding-left: 0; padding-right: 0; overflow-wrap: break-word; }
    #content td, #content th { overflow-wrap: normal; word-break: normal; }
    #content img { max-width: 100%; height: auto; }
    #content table { display: block; max-width: 100%; overflow-x: auto; }
    mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; max-width: 100%; }
    .site-footer, #footer-content { width: auto; box-sizing: border-box; padding: 12px 16px; }
}
