/* --- FLOATING STICKY NAV BAR --- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
  .admin-bar header.wp-block-template-part { top: 46px; }
}

/* --- MOBILE NAV (hamburger menu) --- */
@media (max-width: 599px) {
  .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-width: 48px;
    min-height: 48px;
    background: #1e293b;
    border-radius: 8px;
    color: #fff;
  }
  .wp-block-navigation__responsive-container-open svg {
    width: 24px; height: 24px; fill: #fff;
  }
  .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    z-index: 100000 !important;
    background: #fff !important;
    padding: 80px 24px 24px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    flex-direction: column !important;
    gap: 0 !important; width: 100% !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    display: block !important;
    padding: 16px 8px !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    text-decoration: none !important;
  }
  .wp-block-navigation__responsive-container-close {
    position: absolute !important;
    top: 20px !important; right: 20px !important;
    min-width: 48px !important; min-height: 48px !important;
    background: #f1f5f9 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
  }
  html, body { overflow-x: hidden; max-width: 100vw; }
}

/* --- TABLET NAV (600-900px) --- */
@media (min-width: 600px) and (max-width: 900px) {
  .wp-block-navigation .wp-block-navigation-item a {
    font-size: 14px; padding: 6px 10px;
  }
}

/* Hide empty/duplicate elements */
body > nav:not([class]), body > nav:empty { display: none !important; }
footer:not(.site-footer-container):not(#colophon) { display: none !important; }

/* Footer styling */
.site-footer-container { background: #f8fafc; }
.site-footer-container a { color: #475569; text-decoration: none; transition: color 0.15s; }
.site-footer-container a:hover { color: #1e40af; text-decoration: underline; }

/* Alignment */
.wp-block-navigation { max-width: 1200px; }.rsds-container{width:min(1180px,calc(100% - 48px));margin:0 auto}
.site-header{position:sticky!important;top:0!important;z-index:9999!important;border-bottom:1px solid rgba(226,232,240,.88)!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(16px)!important}
.site-nav{min-height:78px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
.brand{display:flex!important;flex-direction:column!important;color:#0f172a!important;font-size:1.35rem!important;font-weight:900!important;letter-spacing:-.04em!important;text-decoration:none!important;line-height:1.2!important}
.brand small{color:#64748b!important;font-size:.58rem!important;text-transform:uppercase!important;letter-spacing:.22em!important;font-weight:900!important;display:block!important}
.nav-links{display:flex!important;gap:28px!important;font-size:.93rem!important;font-weight:800!important;margin:0!important;padding:0!important;list-style:none!important}
.nav-links a{color:#475569!important;text-decoration:none!important}
.nav-links a:hover{color:#0f172a!important}
.nav-actions{display:flex!important;gap:12px!important;align-items:center!important}
.rsds-button-secondary{display:inline-flex!important;align-items:center!important;min-height:44px!important;border-radius:999px!important;padding:0 22px!important;font-weight:900!important;text-decoration:none!important;border:2px solid #e2e8f0!important;color:#0f172a!important;background:#fff!important}
.rsds-button-primary{display:inline-flex!important;align-items:center!important;min-height:44px!important;border-radius:999px!important;padding:0 22px!important;font-weight:900!important;text-decoration:none!important;background:#0f172a!important;color:#fff!important;border:none!important}
.menu-button{display:none!important}
@media(max-width:767px){.nav-links,.nav-actions{display:none!important}.menu-button{display:inline-flex!important}.site-nav{min-height:70px!important}}
/* --- NAVY SINGLE POSTS + BOOK REVIEWS ARCHIVE --- */
body.single-post{background:#0b1e3b;color:#ffffff;overflow-x:clip}
body.single-post .wp-site-blocks{background:#0b1e3b}
body.single-post main{background:transparent}
body.single-post .wp-block-post-title{color:#ffffff}
body.single-post .wp-block-post-content{color:#ffffff}
body.single-post main a:not(.wp-element-button):not(.wp-block-button__link){color:#a9d4f5}
body.single-post .wp-block-post-date,body.single-post .wp-block-post-terms,body.single-post .wp-block-post-author__name{color:#c9d6e4}
body.single-post .wp-block-quote{border-left:3px solid #a9d4f5;color:#dbe9f7}
body.single-post .wp-block-quote cite{color:#c9d6e4}
body.single-post .wp-block-pullquote{border-color:rgba(255,255,255,0.35);color:#ffffff}
body.single-post .wp-block-post-content table,body.single-post .wp-block-table table{color:#ffffff}
body.single-post .wp-block-post-content th,body.single-post .wp-block-post-content td{border-color:rgba(255,255,255,0.28)}
body.single-post .wp-block-post-content thead{background:rgba(255,255,255,0.08)}
body.single-post .wp-block-preformatted,body.single-post .wp-block-code,body.single-post .wp-block-post-content pre{background:rgba(255,255,255,0.08);color:#eaf3fb}
body.single-post .wp-block-post-content code{background:rgba(255,255,255,0.12);color:#eaf3fb}
body.single-post .wp-block-post-content pre code{background:transparent}
body.single-post figcaption,body.single-post .wp-element-caption{color:#c9d6e4}
body.single-post .wp-block-separator{border-color:rgba(255,255,255,0.35)}
body.single-post .wp-block-jetpack-subscriptions{background-color:#ffffff;color:#1f2527}
body.category-book-reviews{background:#0b1e3b;color:#ffffff;overflow-x:clip}
body.category-book-reviews .wp-site-blocks{background:#0b1e3b}
body.category-book-reviews .wp-block-query-title{color:#ffffff}
body.category-book-reviews .wp-block-post-title{color:#ffffff}
body.category-book-reviews .wp-block-post-title a{color:#ffffff!important;text-decoration:none}
body.category-book-reviews .wp-block-post-excerpt,body.category-book-reviews .wp-
/* --- FIXES: base text stays dark for Jetpack modal/overlays; white text scoped to main --- */
body.single-post{color:#1F2527}
body.single-post main{color:#ffffff}
body.single-post .wp-block-post-content [style*="background:#f7f9fa"],body.single-post .wp-block-post-content [style*="background:#fff"]{color:#1F2527}
body.category-book-reviews{color:#1F2527}
body.category-book-reviews main{color:#fffff
/* Keep Jetpack subscribe modal readable (dark text on its white card) */
body.single-post .jetpack-memberships-modal{color:#1F2527!important}
body.single-post .jetpack-memberships-modal :is(h1,h2,h3,h4,h5,h6,p,span,label)
}
/* --- UNIFIED HEADER NAV: show theme header with Header menu on Home page; hide legacy custom header --- */
body.home header.wp-block-template-part{display:block!important;}
.rsn-nav{display:none!important;}
{color:#1F2527!important}f}block-post-excerpt p{color:#c9d6e4}
body.category-book-reviews .wp-block-post-excerpt a{color:#a9d4f5}

/* --- BOOK REVIEWS READABILITY: light body text on navy background --- */
body.category-book-reviews .entry-content > p,
body.category-book-reviews .entry-content > ul > li,
body.category-book-reviews .entry-content > ol > li,
body.category-book-reviews .entry-content > h1,
body.category-book-reviews .entry-content > h2,
body.category-book-reviews .entry-content > h3,
body.category-book-reviews .entry-content > h4,
body.category-book-reviews .entry-content > h5,
body.category-book-reviews .entry-content > h6,
body.category-book-reviews .entry-content > blockquote,
body.category-book-reviews .entry-content > blockquote p {
  color: #ffffff !important;
}
body.category-book-reviews .entry-content > p span,
body.category-book-reviews .entry-content > p strong,
body.category-book-reviews .entry-content > p em,
body.category-book-reviews .entry-content > ul > li span,
body.category-book-reviews .entry-content > ol > li span,
body.category-book-reviews .entry-content > blockquote span {
  color: #ffffff !important;
}
body.category-book-reviews .entry-content > p a,
body.category-book-reviews .entry-content > ul > li a,
body.category-book-reviews .entry-content > ol > li a,
body.category-book-reviews .entry-content > blockquote a {
  color: #9ecbff;
}

body.category-book-reviews .wp-block-post-date{color:#c9d6e4}
body.category-book-reviews .wp-block-post-terms,

/* --- BOOK REVIEWS single posts: readable light text on navy ---
   WP core does not add category-* classes to single-post bodies, so the
   body.category-book-reviews .entry-content rules above only match the
   category archive. Single book-review posts are scoped here via :has()
   on the "Book Reviews" category link in the post meta. */
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > p,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ul > li,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ol > li,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h1,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h2,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h3,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h4,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h5,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > h6,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > blockquote {
  color: #ffffff !important;
}
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > p :is(span, strong, em),
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ul > li :is(span, strong, em),
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ol > li :is(span, strong, em),
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > blockquote :is(span, strong, em, p) {
  color: #ffffff !important;
}
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > p a,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ul > li a,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > ol > li a,
body.single-post:has(.taxonomy-category a[href*="/category/book-reviews/"]) .entry-content > blockquote a {
  color: #9ecbff;
}
/* Book Reviews category archive: excerpts */
body.category-book-reviews .wp-block-post-excerpt__excerpt {
  color: #e9eff6 !important;
}
body.category-book-reviews .wp-block-post-terms a{color:#a9d4f5}
body.category-book-reviews .wp-block-query-pagination,body.category-book-reviews .wp-block-query-pagination a{color:#a9d4f5}
body.category-book-reviews .wp-block-query-pagination-numbers .current{color:#ffffff}
body.category-book-reviews .wp-block-separator{border-color:rgba(255,255,255,0.28)}body header.wp-block-template-part{display:block!important;}
