/*
 * VSLO v3 Recovery Overrides
 * Responsive spacing corrections.
 * Original Escutcheon CSS remains untouched.
 */

@media screen and (max-width: 49.99em) {

    body.home .entry-content .wp-block-separator {
        margin-top: 1.5em !important;
        margin-bottom: 1.5em !important;
    }

    body.home .entry-content .wp-block-spacer {
        max-height: 25px !important;
    }

    body.home .entry-content .wp-block-group {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.home .entry-content .wp-block-buttons {
        margin-top: 1em !important;
        margin-bottom: 1em !important;
    }

    body.home .entry-content .wp-block-search {
        margin-top: 1em !important;
        margin-bottom: 1em !important;
    }
}

/* Compact legacy sidebar widget stack on mobile */
@media screen and (max-width: 49.99em) {

    .sidebar .widget {
        margin-bottom: 0.75em !important;
    }

    .sidebar .wp-block-spacer {
        max-height: 10px !important;
    }

    .sidebar .wp-block-separator {
        margin-top: 0.75em !important;
        margin-bottom: 0.75em !important;
    }
}

/* VSLO mobile sidebar final tightening */
@media screen and (max-width: 49.99em) {

    .sidebar .widget {
        margin-bottom: 0.25em !important;
    }

    /* Empty legacy Jetpack form block */
    .sidebar #block-113 {
        display: none !important;
    }

    .sidebar .wp-block-spacer {
        max-height: 5px !important;
    }

    .sidebar .wp-block-separator {
        margin-top: 0.35em !important;
        margin-bottom: 0.35em !important;
    }

    /* Keep actual content sections comfortably separated */
    .sidebar #block-87,
    .sidebar #block-41,
    .sidebar #block-100 {
        margin-bottom: 1em !important;
    }
}

/* Remove redundant mobile sidebar dividers */
@media screen and (max-width: 49.99em) {
    .sidebar #block-126,
    .sidebar #block-122 {
        display: none !important;
    }
}

/* Remove divider between Contact and Thank You on mobile */
@media screen and (max-width: 49.99em) {
}

/* VSLO site-wide system footer */
.site-footer {
    font-size: 0 !important;
    font-style: normal !important;
    text-align: center !important;
}

.site-footer::after {
    content: "S Y S T E M   O N L I N E\A\A Built By Code Not By GUI\A\A Linux Kernel – VSLO Web Hosting\A\A #AS14NBF";
    white-space: pre-wrap;
    display: block;
    font-family: monospace;
    font-size: 10.4px;
    line-height: 1.45;
    letter-spacing: 1.3px;
    color: #cad9d9;
    text-align: center;
}

/* Remove Escutcheon footer separator site-wide */
.site-footer::before {
    display: none !important;
}

/* Remove broken legacy hit counter, preserve Thank You + flowers */
.sidebar #block-100 div[align="center"] {
    display: none !important;
}

/* Remove redundant separator between Main Bottom Anchor and sidebar */
.sidebar #block-132 {
    display: none !important;
}

/* VSLO lower navigation gap tightening - mobile */
@media screen and (max-width: 49.99em) {

    /* Pull Site Map closer to search */
    .entry-content .wp-block-search + .wp-block-spacer,
    .entry-content .wp-block-search ~ .wp-block-spacer {
        max-height: 4px !important;
    }

    /* Remove empty legacy sidebar spacers before Contact */
    .sidebar #block-133,
    .sidebar #block-125,
    .sidebar #block-128,
    .sidebar #block-121,
    .sidebar #block-131 {
        display: none !important;
    }

    /* Tighten start of sidebar/contact section */
    .sidebar {
        margin-top: 1em !important;
    }
}

/* Main Bottom Anchor precision spacing - mobile */
@media screen and (max-width: 49.99em) {

    /* Search -> Site Map */
    .vslo-bottom-anchor .wp-block-search {
        margin-bottom: 0 !important;
    }

    .vslo-bottom-anchor .wp-block-spacer {
        height: 2px !important;
        max-height: 2px !important;
    }

    .vslo-bottom-anchor .wp-block-buttons {
        margin-top: 0.25em !important;
        margin-bottom: 0.25em !important;
    }

    /* Reduce gap after Main Bottom Anchor before sidebar/contact */
    body.home .entry-content > .wp-block-spacer:last-child {
        height: 10px !important;
        max-height: 10px !important;
    }

    .sidebar {
        margin-top: 0 !important;
    }
}

/* Main Bottom Anchor final compact spacing - mobile */
@media screen and (max-width: 49.99em) {

    /* Search -> Site Map */
    .vslo-bottom-anchor .wp-block-search {
        margin-bottom: 0 !important;
    }

    .vslo-bottom-anchor .wp-block-spacer {
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
    }

    .vslo-bottom-anchor .wp-block-buttons {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Site Map -> Contact/sidebar */
    body.home .entry-content > .wp-block-spacer:last-child {
        height: 2px !important;
        max-height: 2px !important;
        margin: 0 !important;
    }

    .sidebar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* VSLO lower stack final visual tightening - mobile */
@media screen and (max-width: 49.99em) {

    /* Site Map -> Contact */
    .sidebar #block-41 {
        margin-top: -0.5em !important;
        margin-bottom: 0.5em !important;
    }

    /* Contact -> Thank You */
    .sidebar #block-100 {
        margin-top: 0 !important;
        margin-bottom: 0.25em !important;
    }

    /* Remove remaining tiny legacy spacer after Contact */
    .sidebar #block-130 {
        display: none !important;
    }

    /* Tighten final sidebar section before footer */
    .sidebar #block-76 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .widget-area {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* VSLO system footer - remove legacy Escutcheon bottom gap */
.site-footer {
    margin-bottom: 0 !important;
}



/* VSLO structural system footer */
.site-footer::after {
    display: none !important;
    content: none !important;
}

.vslo-system-footer {
    font-family: monospace;
    font-size: 10.4px;
    line-height: 1.45;
    letter-spacing: 1.3px;
    color: #cad9d9;
    text-align: center;
}

.vslo-footer-closing-line {
    display: block;
    clear: both;
    width: 100%;
    height: 6px;
    margin: 3em 0 0;
    background: #313537;
}

/* Final page element — clone of Escutcheon separator */
.vslo-footer-closing-line {
    display: block;
    clear: both;
    width: 100%;
    height: 6px;
    margin: 3em 0 0;
    background: #313537;
}

/* Final page element — clone of Escutcheon separator */
.vslo-footer-closing-line {
    display: block;
    clear: both;
    width: 100%;
    height: 6px;
    margin: 3em 0 0;
    background: #313537;
}

/* Match Contact lower breathing space above Thank You */
.sidebar #block-54 {
    margin-top: 3em !important;
}

/* Correct final spacing: line -> space -> Thank You */
.sidebar #block-54 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar #block-100 {
    margin-top: 3em !important;
}

/* VSLO footer — lower three lines 20% smaller */
.vslo-system-details {
    font-size: 80%;
}

/* VSLO SYSTEM ONLINE — +7.5% */
.vslo-system-signature > u {
    font-size: 107.5%;
}

/* VSLO homepage — hide contact prompt */
body.home .sidebar #block-41 {
    display: none !important;
}

/* VSLO homepage — breathing room between Site Map and Search */
@media screen and (max-width:49.99em) {
    .vslo-bottom-anchor .wp-block-buttons + .wp-block-spacer {
        height: 15px !important;
        max-height: 15px !important;
    }
}

/* VSLO homepage — Site Map to Search breathing room */
@media screen and (max-width:49.99em) {
    .vslo-bottom-anchor .wp-block-buttons + .wp-block-spacer {
        height: 25px !important;
        max-height: 25px !important;
    }
}
