/* Desktop rules stay in the historical theme. These overrides only affect narrow screens. */
.ss-mobile-navigation-toggle { display: none; }

@media screen and (max-width: 980px) {
    body { font-size: 100%; }
    .ym-wrapper { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    .ym-wbox { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
    #main .ym-col1, #main .ym-col2, #main .ym-col3 {
        display: block; float: none !important; width: auto !important;
        /* The legacy syncHeight script assigns desktop column heights inline. */
        height: auto !important; min-height: 0 !important;
        min-width: 0; margin: 0 !important;
    }
    #main .ym-col1_content, #main .ym-col2_content, #main .ym-col3_content,
    #main .ym-cbox, #main .ym-cbox-left, #main .ym-cbox-right {
        padding: 0 !important; min-width: 0;
    }
    #main { padding-top: 20px; }
    .logo #header .blogtitle > a {
        width: 100%; height: 0; padding-top: 20.416667%;
        background-size: 100% auto; background-position: center;
    }
    #content .entry-content { font-size: 1.125rem; line-height: 1.65; overflow: visible; overflow-wrap: anywhere; }
    #content .entry-content p, #content .entry-content li,
    #content .entry-content dd { line-height: 1.65; }
    #content .entry-content p { margin-bottom: 1.2em; }
    #content .entry-content a { overflow-wrap: anywhere; }
    #content .posttitle { font-size: 1.75rem; line-height: 1.25; }
    #content .entry-content h1, #content .entry-content h2 { font-size: 1.6em; line-height: 1.25; }
    #content .entry-content h3, #content .entry-content h4 { font-size: 1.3em; line-height: 1.35; }
    #content img, #content video, #content iframe, #content .wp-caption {
        max-width: 100%; box-sizing: border-box;
    }
    #content img, #content video { height: auto; }
    #content .alignleft, #content .alignright { float: none; margin: 1em auto; }
    #content .entry-content #s { width: 100% !important; max-width: 100%; }
    #content input[type="text"], #content input[type="email"],
    #content input[type="search"], #content textarea, #content select { max-width: 100%; font-size: 1rem; }
    #content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
    #content .entry-content table { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; }
    #content .uebl > li { padding-left: 0; }
    #content .uebl > li .leftindex { position: static; display: block; }
    #main .player {
        position: static; width: 100%; max-width: 300px;
        margin: 0 0 16px auto;
    }
    #main .sidebar { margin-left: 0; }
    #primarynav .ym-hlist ul { float: none; display: flex; flex-wrap: wrap; }
    #primarynav .ym-hlist ul li { float: none; }
    #primarynav .ym-hlist ul li a { padding: 10px 12px; }
    .ss-mobile-navigation-toggle {
        display: block; width: 100%; box-sizing: border-box;
        padding: 12px 16px; margin: 0 0 18px;
        border: 1px solid #9c9c8d; border-radius: 3px;
        background: #f0f0e6; color: #233b55;
        font: inherit; font-weight: bold; text-align: left; cursor: pointer;
    }
    .ss-mobile-navigation-toggle:focus-visible { outline: 3px solid #4d87c7; outline-offset: 3px; }
    .ss-mobile-navigation-panel.ss-mobile-navigation-closed { display: none !important; }
    .ss-mobile-navigation-panel .widget_pages a { padding-top: 7px; padding-bottom: 7px; }
    .ss-table-scroll { max-width: 100%; overflow-x: auto; margin: 0 0 1.5em; }
    .ss-table-scroll:focus-visible { outline: 2px solid #4d87c7; outline-offset: 2px; }
    #content .ss-table-scroll table { display: table; max-width: none; margin-bottom: 0; }
}
