/* ==========================================================
   SusanWerner FSE Theme — Global Styles
   All design tokens come from theme.json / CSS custom props.
   ========================================================== */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    overflow-x: hidden;
    position: relative; /* Required for absolute pseudo-elements */
}
img { max-width: 100%; height: auto; display: block; }

/* ---- BACKGROUND IMAGE — full-width cover, fixed/sticky ---- */
body {
    background-size:       cover;
    background-position:   center top;
    background-repeat:     no-repeat;
    background-attachment: fixed;
    min-height:            100vh;
}

/* Right layout — shift background image to the right */
body.layout-right {
    background-position: right top !important;
}

/* Explicit desktop override — ensures cover scales to full browser width */
@media (min-width: 1025px) {
    body {
        background-size:       cover !important;
        background-attachment: fixed !important;
        background-repeat:     no-repeat !important;
    }
    body:not(.layout-right) {
        background-position: center top !important;
    }
    body.layout-right {
        background-position: right top !important;
    }
}

/* ---- GLOBAL TEXT SHADOW ---- */
.wp-block-post-content,
.wp-site-blocks main,
.wp-site-blocks p,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6,
.wp-site-blocks li,
.wp-site-blocks a,
.wp-site-blocks blockquote,
.wp-block-heading,
/* Accordion / Details block headings */
.wp-block-details summary,
.wp-block-details > summary,
details.wp-block-details summary,
.wp-block-accordion summary,
.wp-block-accordion-item summary,
.wp-block-accordion-heading__toggle-title,
.c-accordion__title,
.wp-block-pb-accordion-item .c-accordion__title {
    text-shadow: 3px 3px 8px rgba(0,0,0,1) !important;
}
h1.wp-block-post-title,
h2.wp-block-post-title,
.wp-block-post-title,
.entry-title,
h1.entry-title,
.wp-block-post-title a,
.entry-title a,
[class*="wp-block-post-title"] {
    background:              transparent !important;
    background-image:        none !important;
    background-color:        transparent !important;
    -webkit-background-clip: unset !important;
    background-clip:         unset !important;
    -webkit-text-fill-color: var(--wp--preset--color--accent, #e8c84a) !important;
    color:                   var(--wp--preset--color--accent, #e8c84a) !important;
    padding:                 0 !important;
    box-shadow:              none !important;
}

/* ---- GRADIENT OVERLAY
   Scrolls with the page, full height, so the gradient always
   covers the background image behind the content area.
---- */
body::before {
    content:    '';
    position:   absolute;
    top:        0;
    left:       0;
    right:      0;
    bottom:     0;
    min-height: 100%;
    z-index:    0;
    pointer-events: none;

    /* Left layout: solid on left → transparent right */
    background: linear-gradient(
        to right,
        rgba(10,10,15,1)    0%,
        rgba(10,10,15,1)    15%,
        rgba(10,10,15,0.85) 35%,
        rgba(10,10,15,0.45) 55%,
        rgba(10,10,15,0.1)  75%,
        transparent         100%
    );
}

/* Right layout: solid on right → transparent left */
body.layout-right::before {
    background: linear-gradient(
        to left,
        rgba(10,10,15,1)    0%,
        rgba(10,10,15,1)    15%,
        rgba(10,10,15,0.85) 35%,
        rgba(10,10,15,0.45) 55%,
        rgba(10,10,15,0.1)  75%,
        transparent         100%
    );
}

/* All site content sits above the overlay */
.wp-site-blocks,
#page,
.wp-block-template-part,
header, main, footer {
    position: relative;
    z-index:  1;
}

/* ---- CONTENT WIDTH — all pages 800px ---- */
.wp-block-post-content,
.wp-block-group.is-layout-constrained > *,
.is-layout-constrained > * {
    max-width: 800px;
}

/* ---- LEFT LAYOUT (default): content anchored left with 50px margin ---- */
body:not(.layout-right) .wp-block-post-content,
body:not(.layout-right) .wp-block-group.is-layout-constrained > :where(*),
body:not(.layout-right) .is-layout-constrained > :where(*) {
    margin-left:  50px !important;
    margin-right: auto !important;
}

/* ---- RIGHT LAYOUT: content anchored right with 50px margin ---- */
body.layout-right .wp-block-post-content,
body.layout-right .wp-block-group.is-layout-constrained > :where(*),
body.layout-right .is-layout-constrained > :where(*) {
    margin-left:  auto !important;
    margin-right: 50px !important;
}

/* The full-width wrapper itself should always span 100% */
.wp-block-group.is-layout-constrained,
.is-layout-constrained {
    max-width: none !important;
    width: 100% !important;
}

/* ---- CONTENT COLUMN — 800px, left or right aligned ---- */
.sw-content-column {
    max-width: 800px;
    width: 100%;
    margin-left:  50px;
    margin-right: auto;
}
body.layout-right .sw-content-column {
    margin-left:  auto;
    margin-right: 50px;
}

/* ---- ANNOUNCEMENT IMAGE — follows page alignment ---- */
.sw-announcement--image {
    margin-left: 0;
    margin-right: auto;
}
body.layout-right .sw-announcement--image {
    margin-left:  auto !important;
    margin-right: 0 !important;
    display: block;
}

/* ---- HEADER BAR — scrolls with page ---- */
.sw-header-bar {
    position: relative;
    z-index: 10;
    background: none !important;
}

/* Dark fade at very top of page to ensure site title is readable
   against the background image — fades out within the header height */
.wp-site-blocks::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10,10,15,0.7) 0%,
        transparent        100%
    );
}

.sw-header-bar .wp-block-site-title a {
    text-decoration: none;
    transition: opacity 0.3s;
}
.sw-header-bar .wp-block-site-title a:hover { opacity: 0.75; }

.sw-primary-nav .wp-block-navigation__container a {
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.sw-primary-nav .wp-block-navigation__container a:hover,
.sw-primary-nav .wp-block-navigation__container .current-menu-item > a {
    color: var(--wp--preset--color--accent) !important;
    border-color: var(--wp--preset--color--accent);
    background: rgba(232,200,74,0.06);
}

/* ---- FOOTER ---- */
.sw-footer,
footer.wp-block-group.sw-footer {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
}
.sw-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--accent) 50%, transparent 100%);
}
.sw-footer-nav { border-bottom: 1px solid rgba(232,200,74,0.1); }

/* ---- BACKGROUND IMAGE / OVERLAY ---- */
.has-background-image {
    background-attachment: fixed;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ---- MUSIC CATALOG GRID ---- */
.sw-music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
}

.sw-music-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(232,200,74,0.18);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.sw-music-card:hover {
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 8px 30px rgba(232,200,74,0.1);
}
.sw-music-card-artwork {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.sw-music-card-artwork img {
    width: 100%; height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
}
.sw-music-card-no-image {
    width: 100%; height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    color: var(--wp--preset--color--accent);
    opacity: 0.3;
}
.sw-music-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sw-music-card-release-type {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
    margin-bottom: 0.3rem;
}
.sw-music-card-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.3rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: var(--wp--preset--color--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}
.sw-music-card-title:hover { color: var(--wp--preset--color--accent); }
.sw-music-card-artist {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 0.5rem;
}
.sw-music-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(232,200,74,0.18);
}
.sw-music-card-date {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-muted);
}
.sw-music-card-genre {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent-red);
    background: rgba(192,57,43,0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

/* ---- GENRE FILTER BAR ---- */
.sw-block-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.sw-block-filter-btn {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(232,200,74,0.18);
    border-radius: 2px;
    color: var(--wp--preset--color--text-muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    display: inline-block;
}
.sw-block-filter-btn:hover,
.sw-block-filter-btn.active {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
    background: rgba(232,200,74,0.06);
}

/* ---- SINGLE ALBUM PAGE ---- */
.sw-music-single { padding: 0; }

.sw-music-single-header {
    align-items: flex-start !important;
    margin-bottom: 2rem;
}
.sw-music-single-artwork img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(232,200,74,0.18);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.sw-artwork-placeholder {
    width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    color: var(--wp--preset--color--accent);
    opacity: 0.25;
    border: 1px solid rgba(232,200,74,0.18);
    border-radius: 4px;
}
.sw-music-single-type {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
    margin-bottom: 0.5rem;
}
.sw-music-single-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.sw-music-single-artist {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 1rem;
    color: var(--wp--preset--color--text-muted);
    margin-bottom: 1rem;
}

/* ---- META TABLE ---- */
.sw-music-meta-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.25rem;
}
.sw-music-meta-table tr { border-bottom: 1px solid rgba(232,200,74,0.18); }
.sw-music-meta-table td {
    padding: 0.5rem 0;
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.88rem;
}
.sw-music-meta-table td:first-child {
    color: var(--wp--preset--color--text-muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    width: 40%;
    padding-right: 1rem;
}
.sw-music-meta-table td:last-child { color: var(--wp--preset--color--text); }
.sw-release-year {
    font-size: 1rem;
    font-family: var(--wp--preset--font-family--display);
    color: var(--wp--preset--color--accent);
    letter-spacing: 0.06em;
}

/* ---- MUSIC LINK BUTTONS ---- */
.sw-music-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.sw-music-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 3px;
    border: 1px solid var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
    background: transparent;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}
.sw-music-link-btn i { font-size: 0.85rem; line-height: 1; flex-shrink: 0; }
.sw-music-link-btn:hover { background: var(--wp--preset--color--accent); color: #0a0a0f; }

/* ---- TRACKLIST ---- */
.sw-tracklist { margin: 2rem 0; max-width: 500px; }
.sw-tracklist-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: var(--wp--preset--color--accent);
    text-transform: uppercase;
}
.sw-track-ol { list-style: none; padding: 0; counter-reset: track-counter; }
.sw-track-item {
    counter-increment: track-counter;
    display: grid;
    grid-template-columns: 2rem 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(232,200,74,0.18);
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.9rem;
    color: var(--wp--preset--color--text);
}
.sw-track-item::before {
    content: counter(track-counter, decimal-leading-zero);
    font-family: var(--wp--preset--font-family--display);
    font-size: 1rem;
    color: var(--wp--preset--color--accent);
    line-height: 1;
}
.sw-track-item .track-duration {
    color: var(--wp--preset--color--text-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sw-view-lyrics-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    border: 1px solid rgba(232,200,74,0.18);
    background: transparent;
    color: var(--wp--preset--color--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.sw-view-lyrics-btn:hover {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
    background: rgba(232,200,74,0.06);
}

/* ---- LYRICS MODAL ---- */
.sw-lyrics-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
    animation: sw-fade-in 0.2s ease;
}
.sw-lyrics-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: min(560px, 92vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #18181e;
    border: 1px solid rgba(232,200,74,0.18);
    border-radius: 6px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    animation: sw-modal-in 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.sw-lyrics-modal[hidden], .sw-lyrics-backdrop[hidden] { display: none; }
@keyframes sw-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sw-modal-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
.sw-lyrics-modal-inner {
    display: flex; flex-direction: column;
    overflow: hidden; height: 100%;
    padding: 2rem 2rem 1.5rem;
    position: relative;
}
.sw-lyrics-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    color: var(--wp--preset--color--text-muted);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    padding: 0.25rem 0.5rem; border-radius: 2px;
    transition: color 0.3s; z-index: 1;
}
.sw-lyrics-close:hover { color: var(--wp--preset--color--accent); }
.sw-lyrics-title {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.4rem; letter-spacing: 0.1em;
    color: var(--wp--preset--color--accent);
    text-transform: uppercase;
    margin-bottom: 1rem; margin-top: 0;
    padding-right: 2rem; flex-shrink: 0;
}
.sw-lyrics-body {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.92rem; line-height: 1;
    color: var(--wp--preset--color--text);
    overflow-y: auto; white-space: pre-wrap;
    scrollbar-width: thin;
    scrollbar-color: var(--wp--preset--color--accent) transparent;
    padding-bottom: 0.5rem;
}
.sw-lyrics-body::-webkit-scrollbar { width: 4px; }
.sw-lyrics-body::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--accent);
    border-radius: 2px;
}

/* ---- BREADCRUMBS ---- */
.sw-breadcrumbs { margin-bottom: 1.5rem; }
.sw-breadcrumb-list {
    list-style: none !important; padding: 0 !important; margin: 0;
    display: flex; flex-wrap: wrap; align-items: center;
}
.sw-breadcrumb-item {
    display: inline-flex; align-items: center;
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.sw-breadcrumb-item a {
    color: var(--wp--preset--color--text-muted);
    text-decoration: none; transition: color 0.3s;
}
.sw-breadcrumb-item a:hover { color: var(--wp--preset--color--accent); }
.sw-breadcrumb-sep {
    color: var(--wp--preset--color--text-muted);
    padding: 0 0.5rem; opacity: 0.5; font-size: 1rem; line-height: 1;
}
.sw-breadcrumb-current { color: var(--wp--preset--color--accent); }

/* ---- RELATED RELEASES ---- */
.sw-related-music {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232,200,74,0.18);
}

.sw-related-heading {
    /* Inherits font-family, size, weight from Global Styles → Headings → H2.
       Override any of these in Appearance → Editor → Styles → Additional CSS. */
    color:          var(--wp--preset--color--accent);
    margin-bottom:  1.25rem;
    margin-top:     0;
}

/* ---- MUSIC SINGLE CONTENT ---- */
.sw-music-single-content {
    padding-top: 2rem;
    border-top: 1px solid rgba(232,200,74,0.18);
}
.sw-music-excerpt {
    font-size: 1.1rem;
    color: var(--wp--preset--color--text-muted);
    font-style: italic;
    margin-bottom: 1.25rem;
}

/* ---- BLOCK EDITOR ALIGNMENTS ---- */
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(-50vw + 50%); }

/* ---- NO RESULTS ---- */
.sw-block-no-results {
    text-align: center; padding: 4rem 2rem;
    color: var(--wp--preset--color--text-muted);
}
.sw-block-no-results-icon { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.3; }

/* ---- PAGINATION ---- */
.wp-block-query-pagination {
    display: flex; justify-content: center;
    gap: 0.4rem; padding: 2rem 0;
    flex-wrap: wrap;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    font-family: var(--wp--preset--font-family--ui);
    font-size: 0.82rem; font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(232,200,74,0.18);
    color: var(--wp--preset--color--text-muted);
    border-radius: 2px; text-decoration: none;
    transition: all 0.3s;
}
.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current {
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--accent);
    background: rgba(232,200,74,0.08);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
    .sw-music-single-header { flex-direction: column !important; }
    .sw-music-grid,
    .sw-block-music-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    /* Ensure related releases section is visible on mobile */
    .sw-related-music {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .sw-related-music .sw-music-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sw-music-grid,
    .sw-block-music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
    }
}

/* ---- MOBILE BACKGROUND IMAGE ---- */
/* On mobile: Admin bar → Site title → Background image → Nav → Content */
@media (max-width: 1024px) {

    /* Remove background image from body on mobile */
    body {
        background-image:      none !important;
        background-attachment: scroll !important;
        padding-top:           0 !important;
    }

    /* Remove left/right gradient overlay on mobile */
    body::before { display: none !important; }

    /* Outer wrapper positions the image between title and nav */
    .sw-mobile-image-outer {
        display: block;
        width:   100%;
        order:   2;
    }

    /* The image div */
    .sw-mobile-image {
        display:             block;
        width:               100%;
        height:              56.25vw;
        background-size:     cover;
        background-position: center top;
        background-repeat:   no-repeat;
        position:            relative;
    }
    .sw-mobile-image::after {
        content:    '';
        position:   absolute;
        inset:      0;
        background: linear-gradient(to bottom, transparent 40%, rgba(10,10,15,0.9) 90%, #0a0a0f 100%);
    }

    /* Header: flex column so title, image, nav stack vertically */
    .sw-header-bar {
        position:       relative !important;
        display:        flex !important;
        flex-direction: column !important;
        width:          100%;
        z-index:        10;
    }

    /* Move the image outer div inside the header flow using negative margin trick:
       wp_body_open fires before the header, so we pull it into position */
    .sw-mobile-image-outer {
        /* Pulled out of normal flow and placed visually after site title */
        width: 100%;
    }

    /* Site title — order 1 */
    .sw-header-bar .wp-block-site-title { order: 1; width: 100%; }

    /* Nav — order 3 (image outer is order 2 but lives before header in DOM,
       so we insert it into the header via JS as a fallback, or reposition via CSS) */
    .sw-header-bar .wp-block-navigation,
    .sw-header-bar .sw-primary-nav {
        order: 3;
        width: 100%;
    }
    .sw-header-bar .wp-block-navigation__container {
        flex-wrap:       wrap !important;
        justify-content: flex-start !important;
    }

    /* Content flows below header */
    .wp-site-blocks {
        background: #0a0a0f;
        position:   relative;
        z-index:    1;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .sw-mobile-image { height: 75vw; }
    .sw-music-grid,
    .sw-block-music-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}

@media print {
    .sw-header-bar { }
    .sw-lyrics-modal, .sw-lyrics-backdrop { display: none; }
    body { background: #fff; color: #000; }
}
