/* dw-header-gap-20261109.css (cc-dw-header-gap-20261109). Desktop header (1281 px and up, where the one-row nav shows).
   Christopher, 2026-11-09: "OVERLAP? MOVE DW SIGIL AND WORDMARK LEFT". Signed in, the wider Your Galaxy control pushed
   the nav under the wordmark (2 px from Worlds at 1440 px and wider). Enqueued after every other stylesheet.
   Layout only: no wording, no reordering (focus order unchanged), no motion added, nothing below 1281 px. */
@media (min-width: 1281px) {
    /* 1. The sigil and wordmark move left: the header row gets a wider frame and a slim edge gutter
          (was a 1290 px frame with 24 px padding, so the logo sat 94 px in at 1440 and 334 px in at 1920). */
    #masthead #main-header .site-container {
        max-width: 1600px !important;
        padding-left: clamp(20px, 1.6vw, 32px) !important;
        padding-right: clamp(20px, 1.6vw, 32px) !important;
    }
    /* 2. Clear space that cannot collapse: the nav column is exactly as wide as its one row (never squeezed, never
          wrapped), the logo column takes what is left, and 32 px always separates them. The row fills the frame on
          every page, which also replaces the Home-only signed-in width (dw-forge-20261107/hero.css, 1280 px). */
    #masthead #main-header .site-main-header-inner-wrap:has(#site-navigation .dw-nav-item) {
        grid-template-columns: minmax(0, 1fr) max-content;
        column-gap: 32px;
        width: auto;
        max-width: none;
        margin-inline: 0;
    }
    #masthead #main-header .site-header-main-section-right:has(.dw-nav-item) {
        min-width: max-content;
    }
    /* 3. Only if that row is ever short of room does the wordmark step down (it scales inside its box, never below
          132 px). With room, it keeps its full clamp(162px, 13vw, 184px). */
    #masthead #main-header .site-header-main-section-left:has(+ .site-header-main-section-right .dw-nav-item),
    #masthead #main-header .site-header-main-section-left > .site-header-item,
    #masthead #main-header .site-branding,
    #masthead #main-header .site-branding .site-title-wrap {
        min-width: 0;
    }
    #masthead #main-header .site-branding .site-title {
        flex: 0 1 auto;
        min-width: 132px;
    }
}
