/* =========================================
   NVA TYPOGRAPHY CONTINUITY LAYER
   MENU-FIREWALL VERSION
   Add below existing custom CSS
   ========================================= */

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Core readable text areas only */
body:not(.rm-open) .entry-content,
body:not(.rm-open) .page-content,
body:not(.rm-open) .post-content,
body:not(.rm-open) .site-main,
body:not(.rm-open) .comment-content,
body:not(.rm-open) #content,
body:not(.rm-open) #primary,
body:not(.rm-open) .entry-summary,
body:not(.rm-open) .archive-description,
body:not(.rm-open) .widget-area,
body:not(.rm-open) #secondary,
body:not(.rm-open) .sidebar,
body:not(.rm-open) .site-footer,
body:not(.rm-open) .footer-widgets {
  font-size: 1rem;
  line-height: 1.72;
}

/* Paragraphs and general text in content only */
.entry-content p,
.page-content p,
.post-content p,
.site-main p,
.comment-content p,
.entry-summary p,
.archive-description p,
#secondary p,
.sidebar p,
.widget-area p,
.site-footer p,
.footer-widgets p,
.entry-content li,
.page-content li,
.post-content li,
.site-main li,
.comment-content li,
.entry-summary li,
.archive-description li,
#secondary li,
.sidebar li,
.widget-area li,
.site-footer li,
.footer-widgets li,
.entry-content blockquote,
.page-content blockquote,
.post-content blockquote,
.site-main blockquote,
.comment-content blockquote,
.entry-content figcaption,
.page-content figcaption,
.post-content figcaption,
.site-main figcaption,
.entry-content label,
.page-content label,
.post-content label,
.site-main label,
.entry-content td,
.entry-content th,
.page-content td,
.page-content th,
.post-content td,
.post-content th {
  font-size: 1rem;
  line-height: 1.72;
}

.entry-content p,
.page-content p,
.post-content p,
.site-main p,
.comment-content p,
.entry-summary p,
.archive-description p {
  margin: 0 0 1.2em;
}

/* Lists in content/sidebar/footer only */
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol,
.site-main ul,
.site-main ol,
#secondary ul,
#secondary ol,
.sidebar ul,
.sidebar ol,
.widget-area ul,
.widget-area ol,
.site-footer ul,
.site-footer ol,
.footer-widgets ul,
.footer-widgets ol {
  margin: 0 0 1.35em 1.4em;
  padding: 0;
}

.entry-content li,
.page-content li,
.post-content li,
.site-main li,
#secondary li,
.sidebar li,
.widget-area li,
.site-footer li,
.footer-widgets li {
  margin: 0 0 0.45em;
}

.entry-content li > ul,
.entry-content li > ol,
.page-content li > ul,
.page-content li > ol,
.post-content li > ul,
.post-content li > ol,
.site-main li > ul,
.site-main li > ol {
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

/* Headings in content areas only */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.site-main h5,
.site-main h6,
.comment-content h1,
.comment-content h2,
.comment-content h3,
.comment-content h4,
.comment-content h5,
.comment-content h6,
.widget-title,
.sidebar .widget-title,
#secondary .widget-title,
.footer-widgets .widget-title {
  line-height: 1.25;
  font-weight: 700;
}

.entry-content h1,
.page-content h1,
.post-content h1,
.site-main h1,
.comment-content h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-top: 1.25em;
  margin-bottom: 0.6em;
}

.entry-content h2,
.page-content h2,
.post-content h2,
.site-main h2,
.comment-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 1.25em;
  margin-bottom: 0.6em;
}

.entry-content h3,
.page-content h3,
.post-content h3,
.site-main h3,
.comment-content h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  margin-top: 1.25em;
  margin-bottom: 0.6em;
}

.entry-content h4,
.page-content h4,
.post-content h4,
.site-main h4,
.comment-content h4 {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  margin-top: 1.2em;
  margin-bottom: 0.55em;
}

.entry-content h5,
.page-content h5,
.post-content h5,
.site-main h5,
.comment-content h5 {
  font-size: 1.05rem;
  margin-top: 1.15em;
  margin-bottom: 0.5em;
}

.entry-content h6,
.page-content h6,
.post-content h6,
.site-main h6,
.comment-content h6 {
  font-size: 1rem;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
}

/* Titles outside nav only */
.entry-title,
.page-title,
.archive-title,
.page-header .page-title,
.archive-header .archive-title,
.search-results .entry-title,
.error-404 .page-title {
  line-height: 1.25;
  font-weight: 700;
}

.entry-title,
.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 0.55em;
}

.archive-title,
.page-header .page-title,
.archive-header .archive-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.6em;
}

.search-results .entry-title {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.error-404 .page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

/* Meta text */
small,
.site-info,
.entry-meta,
.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link,
.edit-link,
.wp-block-latest-posts__post-date,
.more-link {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Sidebar/footer/widget readability */
.widget-title,
.sidebar .widget-title,
#secondary .widget-title,
.footer-widgets .widget-title {
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 0.75em;
}

#secondary,
.sidebar,
.widget-area,
.footer-widgets,
.site-footer {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Latest posts and query blocks */
.wp-block-latest-posts__post-title,
.wp-block-post-title a {
  font-size: 1rem;
  line-height: 1.45;
}

.wp-block-latest-posts__post-excerpt,
.wp-block-post-excerpt {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Forms in content only */
.entry-content input,
.entry-content textarea,
.entry-content select,
.page-content input,
.page-content textarea,
.page-content select,
.post-content input,
.post-content textarea,
.post-content select,
.comment-form label,
.comment-form input,
.comment-form textarea {
  font-size: 1rem;
  line-height: 1.45;
}

/* Tables in content only */
.entry-content table,
.page-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td,
.post-content th,
.post-content td {
  font-size: 1rem;
  line-height: 1.55;
  padding: 0.7em 0.8em;
}

/* Captions and quotes */
figcaption,
.wp-caption-text,
.gallery-caption {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 0.55em;
}

.entry-content blockquote,
.page-content blockquote,
.post-content blockquote,
.site-main blockquote,
.entry-content blockquote p,
.page-content blockquote p,
.post-content blockquote p,
.site-main blockquote p,
.wp-block-pullquote p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content blockquote,
.page-content blockquote,
.post-content blockquote,
.site-main blockquote {
  margin: 1.5em 0;
  padding: 0.2em 0 0.2em 1.1em;
}

/* Content links only — not nav */
.entry-content a,
.page-content a,
.post-content a,
.comment-content a {
  text-underline-offset: 0.08em;
}

/* Mobile */
@media (max-width: 768px) {
  .entry-content,
  .page-content,
  .post-content,
  .site-main,
  .comment-content,
  .entry-summary,
  .archive-description,
  #secondary,
  .sidebar,
  .widget-area,
  .site-footer,
  .footer-widgets,
  .entry-content p,
  .page-content p,
  .post-content p,
  .site-main p,
  .comment-content p,
  .entry-content li,
  .page-content li,
  .post-content li,
  .site-main li,
  .site-footer p,
  .site-footer li {
    font-size: 1rem;
  }

  .entry-content h1,
  .page-content h1,
  .post-content h1,
  .site-main h1,
  .comment-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .entry-content h2,
  .page-content h2,
  .post-content h2,
  .site-main h2,
  .comment-content h2 {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
  }

  .entry-content h3,
  .page-content h3,
  .post-content h3,
  .site-main h3,
  .comment-content h3 {
    font-size: clamp(1.25rem, 5vw, 1.45rem);
  }

  .entry-content h4,
  .page-content h4,
  .post-content h4,
  .site-main h4,
  .comment-content h4 {
    font-size: 1.1rem;
  }

  .entry-content h5,
  .page-content h5,
  .post-content h5,
  .site-main h5,
  .comment-content h5 {
    font-size: 1.02rem;
  }

  .entry-content h6,
  .page-content h6,
  .post-content h6,
  .site-main h6,
  .comment-content h6 {
    font-size: 1rem;
  }

  .entry-title,
  .page-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .widget-title,
  .sidebar .widget-title,
  #secondary .widget-title,
  .footer-widgets .widget-title {
    font-size: 1.05rem;
  }

  .site-footer,
  .site-footer p,
  .site-footer li,
  .site-info {
    font-size: 0.96rem;
  }

  .entry-content blockquote,
  .page-content blockquote,
  .post-content blockquote,
  .site-main blockquote,
  .entry-content blockquote p,
  .page-content blockquote p,
  .post-content blockquote p,
  .site-main blockquote p,
  .wp-block-pullquote p {
    font-size: 1rem;
  }

  figcaption,
  .wp-caption-text,
  .gallery-caption {
    font-size: 0.93rem;
  }
}

/* Larger screens */
@media (min-width: 1200px) {
  .entry-content p,
  .page-content p,
  .post-content p,
  .site-main p,
  .comment-content p,
  .entry-content li,
  .page-content li,
  .post-content li,
  .site-main li,
  .entry-content td,
  .entry-content th,
  .page-content td,
  .page-content th,
  .post-content td,
  .post-content th {
    font-size: 1.02rem;
  }
}
/* =========================================
   NVA CARD / BOX POLISH
   Soft fill + shadow for empty white boxes
   Sitewide gentle continuity styling
   ========================================= */

/* Generic card-style blocks and boxed sections */
.wp-block-group,
.wp-block-cover,
.wp-block-media-text,
.wp-block-column,
.wp-block-latest-posts li,
.wp-block-post-template li,
.page .entry-content > div[style*="border-radius"],
.post .entry-content > div[style*="border-radius"],
.entry-content .is-style-default,
.entry-content .wp-block-group.is-layout-constrained {
  background: linear-gradient(180deg, #fcfbf9 0%, #f6f1eb 100%);
  border: 1px solid #e6ddd3;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(72, 52, 38, 0.06);
}

/* Add breathing room where boxed sections are stacked */
.entry-content .wp-block-group,
.entry-content .wp-block-media-text,
.entry-content .wp-block-columns,
.entry-content .wp-block-column {
  padding: 1.15rem;
}

/* Subtle hover for clickable card-like boxes */
.entry-content .wp-block-group:hover,
.entry-content .wp-block-media-text:hover,
.wp-block-latest-posts li:hover,
.wp-block-post-template li:hover {
  box-shadow: 0 12px 28px rgba(72, 52, 38, 0.1);
  border-color: #d8c8bb;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* If those topic cards contain links, make the whole thing feel more intentional */
.entry-content .wp-block-group a,
.entry-content .wp-block-media-text a,
.wp-block-latest-posts li a,
.wp-block-post-template li a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

/* Headings inside boxed sections */
.entry-content .wp-block-group h2,
.entry-content .wp-block-group h3,
.entry-content .wp-block-group h4,
.entry-content .wp-block-media-text h2,
.entry-content .wp-block-media-text h3,
.entry-content .wp-block-media-text h4 {
  margin-top: 0;
}

/* Mobile: keep spacing tidy */
@media (max-width: 768px) {
  .entry-content .wp-block-group,
  .entry-content .wp-block-media-text,
  .entry-content .wp-block-column,
  .wp-block-latest-posts li,
  .wp-block-post-template li {
    padding: 1rem;
    border-radius: 12px;
  }
}
/* =========================================
   NVA UNIVERSAL EMPTY BOX RULE
   Keep empty boxes visible but never clickable
   Sitewide content areas only
   ========================================= */

/* Empty links used as visual boxes */
.entry-content a[href]:empty,
.page-content a[href]:empty,
.post-content a[href]:empty,
.site-main a[href]:empty {
  display: block !important;
  width: 100% !important;
  min-height: 74px !important;
  background: linear-gradient(180deg, #fcfbf9 0%, #f3eee8 100%) !important;
  border: 1px solid #e4d8cc !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(60, 44, 32, 0.06) !important;
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  transition: none !important;
}

/* Empty links inside common WordPress block wrappers */
.entry-content .wp-block-group a[href]:empty,
.entry-content .wp-block-column a[href]:empty,
.entry-content .wp-block-columns a[href]:empty,
.entry-content .wp-block-media-text a[href]:empty,
.entry-content .wp-block-buttons a[href]:empty,
.page-content .wp-block-group a[href]:empty,
.page-content .wp-block-column a[href]:empty,
.page-content .wp-block-columns a[href]:empty,
.page-content .wp-block-media-text a[href]:empty,
.page-content .wp-block-buttons a[href]:empty,
.post-content .wp-block-group a[href]:empty,
.post-content .wp-block-column a[href]:empty,
.post-content .wp-block-columns a[href]:empty,
.post-content .wp-block-media-text a[href]:empty,
.post-content .wp-block-buttons a[href]:empty,
.site-main .wp-block-group a[href]:empty,
.site-main .wp-block-column a[href]:empty,
.site-main .wp-block-columns a[href]:empty,
.site-main .wp-block-media-text a[href]:empty,
.site-main .wp-block-buttons a[href]:empty {
  display: block !important;
  width: 100% !important;
  min-height: 74px !important;
  background: linear-gradient(180deg, #fcfbf9 0%, #f3eee8 100%) !important;
  border: 1px solid #e4d8cc !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(60, 44, 32, 0.06) !important;
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  transition: none !important;
}

/* Kill hover/focus behavior on empty boxes */
.entry-content a[href]:empty:hover,
.entry-content a[href]:empty:focus,
.page-content a[href]:empty:hover,
.page-content a[href]:empty:focus,
.post-content a[href]:empty:hover,
.post-content a[href]:empty:focus,
.site-main a[href]:empty:hover,
.site-main a[href]:empty:focus {
  transform: none !important;
  box-shadow: 0 8px 20px rgba(60, 44, 32, 0.06) !important;
  border-color: #e4d8cc !important;
  outline: none !important;
}

/* If an empty box is sitting inside a grid/column layout, keep spacing tidy */
.entry-content a[href]:empty,
.page-content a[href]:empty,
.post-content a[href]:empty,
.site-main a[href]:empty {
  margin: 0 0 1rem 0 !important;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .entry-content a[href]:empty,
  .page-content a[href]:empty,
  .post-content a[href]:empty,
  .site-main a[href]:empty {
    min-height: 58px !important;
    border-radius: 14px !important;
  }
}
/* =========================================
   MOBILE MENU DUPLICATE FIX
   Hide theme mobile menu/toggle behind Responsive Menu
   ========================================= */

@media (max-width: 1024px) {

  /* hide Nucleare/theme mobile navigation and duplicate toggles */
  .main-navigation,
  .main-navigation.toggled,
  .menu-toggle,
  button.menu-toggle,
  .nav-toggle,
  .mobile-menu-toggle,
  .site-header-menu,
  .secondary-toggle,
  .dropdown-toggle,
  .navigation-toggle,
  .toggle-nav,
  .header-menu-toggle,
  .site-navigation .menu-toggle,
  .main-navigation .menu-toggle,
  .main-navigation ul,
  .main-navigation .menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* keep Responsive Menu visible and clickable */
  .rm-container,
  .rm-container *,
  .rm-navbar,
  .rm-navbar *,
  .rm-toggle-button,
  .rm-toggle-button *,
  .rm-overlay,
  .rm-menu,
  .rm-menu * {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .rm-container,
  .rm-navbar,
  .rm-toggle-button {
    display: block !important;
  }
}
/* Hide duplicate theme page titles on custom NVA pages */

.page-id-1404 .entry-header,
.page-id-1404 .page-header,
.page-id-1404 .entry-title,
.page-id-1404 .page-title,

.page-id-3102 .entry-header,
.page-id-3102 .page-header,
.page-id-3102 .entry-title,
.page-id-3102 .page-title,

.page-id-2921 .entry-header,
.page-id-2921 .page-header,
.page-id-2921 .entry-title,
.page-id-2921 .page-title,

.page-id-1441 .entry-header,
.page-id-1441 .page-header,
.page-id-1441 .entry-title,
.page-id-1441 .page-title,

.page-id-2660 .entry-header,
.page-id-2660 .page-header,
.page-id-2660 .entry-title,
.page-id-2660 .page-title,

.page-id-2396 .entry-header,
.page-id-2396 .page-header,
.page-id-2396 .entry-title,
.page-id-2396 .page-title,

.page-id-1516 .entry-header,
.page-id-1516 .page-header,
.page-id-1516 .entry-title,
.page-id-1516 .page-title {
  display: none !important;
}
