/* NWHCU shared article layout. Original branding remains in /css/styles*.css. */
.nwhcu-skip-link { position:absolute; left:1rem; top:-8rem; padding:.75rem 1rem; z-index:1100; background:#fff; color:#111; }
.nwhcu-skip-link:focus { top:1rem; }
.nwhcu-article-section { padding:clamp(2rem,4vw,4rem) 0; }
.nwhcu-article { min-width:0; }
.nwhcu-article > h1 { margin:0 0 1.5rem; overflow-wrap:anywhere; }
.nwhcu-article-body { line-height:1.7; overflow-wrap:break-word; }
.nwhcu-article-body img { max-width:100%; height:auto; }
.nwhcu-article-body iframe { max-width:100%; }
.nwhcu-article-body table { max-width:100%; }
.nwhcu-article-body h2, .nwhcu-article-body h3 { margin-top:1.5rem; }
.nwhcu-related-content { margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid #ddd; }
.nwhcu-public-article .modal { z-index:1060; }
.nwhcu-public-article .modal-backdrop { z-index:1055; }
.nwhcu-public-article .modal-title { margin-bottom:0; }
.nwhcu-public-article .modal-body { line-height:1.6; }
.nwhcu-public-article a[role="button"], .nwhcu-public-article .navbar-toggler { cursor:pointer; }
.nwhcu-public-article a:focus-visible, .nwhcu-public-article button:focus-visible, .nwhcu-public-article [role="button"]:focus-visible { outline:3px solid currentColor; outline-offset:4px; }
#nwhcu-site-footer .media { display:flex; }
#nwhcu-site-footer .media-body { flex:1; min-width:0; }
#nwhcu-site-footer .footer-link a { overflow-wrap:anywhere; }
.nwhcu-scroll-top { display:inline-flex; gap:.4rem; align-items:center; margin:1rem; }

/* Fallback navigation activates only when the original theme menu cannot initialize.
   It retains the same four groups and every supplied menu link. */
.nwhcu-menu-fallback .nwhcu-site-header .navbar { position:relative; display:flex; flex-wrap:wrap; gap:1rem; }
.nwhcu-menu-fallback .nwhcu-site-header #nav { display:flex !important; flex:1; flex-direction:row; gap:1.1rem; list-style:none; margin-bottom:0; padding-left:0; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li { position:static; list-style:none; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li > a { display:block; padding:1rem .25rem; font-weight:600; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul { display:none !important; position:absolute; top:100%; left:0; right:0; width:100%; margin:0; padding:1.5rem 1rem; z-index:1040; background:#fff; color:#222; box-shadow:0 .5rem 1.25rem #0002; list-style:none; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li.nwhcu-submenu-open > ul { display:flex !important; flex-wrap:wrap; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul ul { display:block !important; position:static !important; opacity:1 !important; visibility:visible !important; padding-left:0; margin:0; list-style:none; box-shadow:none; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul li { list-style:none; }
.nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul a { display:block; color:inherit; padding:.35rem 0; }
.nwhcu-menu-fallback .nwhcu-site-header .attr-nav ul { list-style:none; margin-bottom:0; padding-left:0; }
.nwhcu-menu-fallback .nwhcu-site-header .navbar-toggler { display:none; }
@media(max-width:991.98px) {
  .nwhcu-menu-fallback .nwhcu-site-header .navbar-toggler { display:block; margin-left:auto; min-width:2.75rem; min-height:2.75rem; padding:.5rem; border:1px solid currentColor; }
  .nwhcu-menu-fallback .nwhcu-site-header #nav { display:none !important; flex-basis:100%; flex-direction:column; gap:0; order:3; }
  .nwhcu-menu-fallback .nwhcu-site-header #nav.nwhcu-menu-open { display:flex !important; }
  .nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul { position:static; box-shadow:none; padding:1rem; }
  .nwhcu-menu-fallback .nwhcu-site-header #nav > li > ul > li { width:100%; padding-bottom:1rem; }
}
@media print {
  .nwhcu-site-header, #nwhcu-site-footer, .nwhcu-scroll-top, .nwhcu-skip-link, .modal, .modal-backdrop { display:none !important; }
  .nwhcu-article-section { padding:0; }
  .nwhcu-article-section .container { max-width:none; }
}
