/*
 * Plain CSS fixes — deliberately NOT part of the SCSS pipeline.
 *
 * The theme compiles SCSS at request time via sass.php using a vendored
 * scssphp v0.6.3. That compiler fatals on PHP 8.1. The site only still has
 * styles because sass/scss_cache/ holds output compiled on 2021-09-09 and the
 * sources have not changed since, so it is served from cache and never
 * recompiles. Touching ANY .scss file invalidates that cache, forces a
 * recompile, and takes out every stylesheet on the site.
 *
 * Until the SCSS toolchain is migrated to Dart Sass, put CSS fixes here.
 */

/*
 * Fixed header overflows to the right above 1920px.
 *
 * draadcore (parent) sets `#header { position: fixed; width: 100% }` with no
 * `left`. With `left: auto` the fixed header takes its static position — inside
 * #wrap_all, which is `max-width: 1920px; margin: 0 auto` — while `width: 100%`
 * resolves against the viewport. Above 1920px those disagree and the header runs
 * (viewport - 1920) / 2 past the right edge, carrying the nav off screen.
 * Measured: 298px lost at 2560px, 738px at 3440px.
 *
 * Capping to the same 1920px realigns it with #wrap_all. No-op below 1920px.
 * Root cause is in draadcore/sass/components/menu.scss — fix there eventually.
 */
html #root #wrap_all #header {
    max-width: 1920px;
}
