/*
 * wp.css — WordPress integration fixes for DediSeedBox theme
 * Constrains WP page content to match the site's 1330px container
 * and neutralises any WP default styles that conflict.
 */

/* Match the site's .container width for WP content areas */
.dsb-wp-content {
    max-width: 1330px;
    margin: 0 auto;
    padding: 48px 15px 64px;
    width: 100%;
    min-height: 60vh;
}

/* WP block editor adds its own max-width — override it */
.dsb-wp-content .wp-block-group,
.dsb-wp-content .wp-block-cover,
.dsb-wp-content .alignwide,
.dsb-wp-content .alignfull {
    max-width: 100%;
}

/* Basic typography for WP-generated content */
.dsb-wp-content h1,
.dsb-wp-content h2,
.dsb-wp-content h3,
.dsb-wp-content h4,
.dsb-wp-content h5,
.dsb-wp-content h6 {
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
}

.dsb-wp-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.dsb-wp-content a {
    color: #1d4ed8;
}

.dsb-wp-content a:hover {
    color: #1e40af;
}

.dsb-wp-content ul,
.dsb-wp-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.dsb-wp-content ol {
    list-style: decimal;
}

.dsb-wp-content li {
    margin-bottom: 6px;
    color: #475569;
}

/* Remove WP admin bar top offset interference */
html.wp-toolbar {
    padding-top: 0 !important;
}

/* Ensure the header sits above the WP admin bar properly */
@media screen and (min-width: 783px) {
    .header-wrap header {
        top: 32px;
    }
    .header-wrap {
        margin-top: 32px;
    }
}

@media screen and (max-width: 782px) {
    .header-wrap header {
        top: 46px;
    }
    .header-wrap {
        margin-top: 46px;
    }
}
