/* MENU-FIX (2026-11-18): canonical-menu additions for the app
 * shell (public/index.html). Loaded after pi-nav4.css. The topbar
 * now carries ONE Tools dropdown listing every tool, grouped —
 * these rules add the group labels and the wide two-column layout
 * for that menu, plus the same treatment for the homepage hero
 * nav's Tools menu. Everything else about the topbar is pi-nav4. */
header.topbar .nav-tools-menu .pi-menu-label{grid-column:1/-1;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#A39D8F;padding:10px 12px 2px}
header.topbar .nav-tools-menu .pi-menu-all{grid-column:1/-1;border-top:1px solid #F0E7D3;margin-top:4px}
header.topbar .nav-tools.pi-open .nav-tools-menu.pi-tools-menu,
header.topbar .nav-tools:hover .nav-tools-menu.pi-tools-menu,
header.topbar .nav-tools:focus-within .nav-tools-menu.pi-tools-menu{grid-template-columns:1fr 1fr;min-width:580px;left:0;transform:none;max-height:80vh;overflow-y:auto}
@media (max-width:900px){
  /* Stack the open mobile panel vertically: in the default row
   * layout the expanded tools list sits beside the other items and
   * its long descriptions force horizontal scrolling. */
  header.topbar .nav{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  header.topbar .nav-tools.pi-open .nav-tools-menu.pi-tools-menu{grid-template-columns:1fr;min-width:0;max-height:none;overflow:visible}
}
/* Homepage hero nav on the light Direction-D hero: the D skin
 * recolours the nav's plain anchors dark, but the dropdown triggers
 * and menus (new with this fix) kept pi-dhome4's dark-hero colours —
 * near-white triggers on a light hero, and menu links painted dark
 * by "#home a{color:inherit}" onto the dark dropdown panel. */
#home .dh-nav-links .dh-nav-trigger{color:#191c22}
#home .dh-nav-links .dh-nav-trigger:hover{color:#e60023;background:rgba(20,20,30,.05)}
#home .dh-nav-group.open .dh-nav-trigger{color:#e60023}
@media (min-width:761px){
  #home .dh-nav-menu a{color:#ededf0}
  #home .dh-nav-menu a:hover{color:#fff}
  #home .dh-nav-menu .dh-menu-label{color:rgba(255,255,255,.55)}
}
@media (max-width:760px){
  #home .dh-nav-menu .dh-menu-label{color:#8a8378}
}
/* Homepage hero nav: compact two-column Tools menu (names only). */
#home .dh-nav-menu.pi-tools-menu:not([hidden]){display:grid;grid-template-columns:1fr 1fr;min-width:600px;max-height:76vh}
#home .dh-nav-menu.pi-tools-menu .dh-menu-label{grid-column:1/-1}
#home .dh-nav-menu.pi-tools-menu .pi-menu-all{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);margin-top:6px;padding-top:12px}
@media (max-width:900px){
  #home .dh-nav-menu.pi-tools-menu:not([hidden]){grid-template-columns:1fr;min-width:0;max-height:none}
}
