/*
Theme Name:        Kate Angelo Child
Theme URI:         https://kateangelo.com
Description:       Astra child theme for Kate Angelo. Inherits all Astra + Elementor Pro compatibility. Overrides: front page (animated home with book orbit), 404 page (searchlight reveal). Book landing pages are handled by the Kate Book Manager plugin via the single_template filter — not this theme.
Template:          astra
Version:           1.0.2
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
Author:            Kate Angelo
Author URI:        https://kateangelo.com
Text Domain:       kate-angelo-child
License:           All Rights Reserved
*/

/* ── Hide Astra's header & footer on the front/home page ──────────────────────
   The home page template has its own nav and footer built in.
   Astra's masthead and colophon are suppressed so they don't double-render. */
body.home #masthead,
body.home .ast-masthead-custom-menu-items,
body.home #ast-fixed-header,
body.home #colophon {
    display: none !important;
}

/* Remove Astra's default page padding/margin on home page */
body.home,
body.home .site,
body.home #page,
body.home #content,
body.home #primary,
body.home .site-main,
body.home .ast-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* ── Book single pages: force true 100% full-bleed ── */
body.single-book #masthead,
body.single-book #ast-fixed-header,
body.single-book .ast-masthead-custom-menu-items,
body.single-book #colophon { display: none !important; }

body.single-book,
body.single-book .site,
body.single-book #page,
body.single-book #content,
body.single-book #primary,
body.single-book .site-main,
body.single-book .ast-container,
body.single-book .ast-container-wrapper,
body.single-book .entry-header,
body.single-book .entry-content,
body.single-book article,
body.single-book .post-content-wrap {
    margin:  0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Override Astra's content-width variable */
body.single-book { --content-width: 100%; }

/* Remove any Astra-added margins from the site wrapper */
body.single-book .ast-row {
    margin-left:  0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* ── All pages: prevent Astra from adding top padding for admin bar offset on custom templates ── */
body.single-book .site,
body.home .site { margin-top: 0 !important; }

/* Admin bar: allow our nav to sit at the very top */
body.single-book.admin-bar #wpadminbar { position: fixed; }
body.home.admin-bar #wpadminbar { position: fixed; }

body.single-book #masthead { display: none !important; }
