/* Phones and narrow windows (added 2026-11-29). The desktop layout above is untouched;
   this only lets the fixed 800px page shrink to fit a small screen. */
@media (max-width: 820px) {
    html { -webkit-text-size-adjust: 100%; }
    #container-inner { width: auto; max-width: 800px; }

    #nav { margin-left: 0; padding: 0 8px; }
    #nav ul { margin-left: 0; }
    #nav li { margin: 0 4px 4px 0; font-size: 14px; }
    #nav li a { padding: 8px 12px; }

    #header { margin: 0 11px 1em; padding: 2em 0; }
    .date-header { float: none; width: auto; text-align: left; padding: 11px 11px 6px; margin-bottom: 0; }
    .asset { padding: 11px; }
    .asset .asset-list { margin: 0; }

    /* the thumbnail grids on the home and section pages */
    .asset-list > table, .asset-list > table > tbody { display: block; width: 100%; }
    .asset-list > table > tbody > tr { display: flex; flex-wrap: wrap; justify-content: center; }
    .asset .asset-list > table > tbody > tr > td { flex: 0 1 50%; width: auto; padding: 6px 4px; box-sizing: border-box; }

    .asset .asset-header { font-size: 17px; }
    .asset .asset-content { font-size: 16px; overflow-wrap: break-word; word-wrap: break-word; }
    .asset .asset-footer { font-size: 14px; }
    .archive { font-size: 16px; }

    img { max-width: 100%; height: auto; }
    object, embed, iframe, video { max-width: 100%; }
    .asset .asset-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .asset .asset-content pre { margin: 0 0 10px; overflow-x: auto; }
    .asset .asset-content blockquote { margin: 0 0 10px; }
    .asset .asset-content ul, .asset .asset-content ol { margin-left: 24px; }
    .asset .asset-content [style*="float: right"],
    .asset .asset-content [style*="float: left"] { float: none !important; display: block; margin: 0 0 12px 0 !important; }

    .content-nav { padding: 3px 11px; }
    .archive, .content-header, .archive-title, .search-results-header,
    .comments-header, .widget, #footer,
    .search-results-container.no-search-result, .search-results-container.no-search { margin-left: 11px; margin-right: 11px; }
    .page-asset .content-header { margin-left: 0; margin-right: 0; }
    .trackbacks, .comments, #comment-preview-content, #comment-respons-content { margin: 1em 11px; }
    #footer { padding: 1.5em 11px 3em; }
}
