/* Be Wise Apps shared navigation (added 2026-09-26).
   Styles for: the "Be Wise Apps" button at the top of every app page,
   the "Back" and "Back to Top" buttons at the bottom, and the 3-bar menu
   added to apps that did not already have one. Loaded by bw-nav.js pages. */

/* ---------- Top strip with the "Be Wise Apps" button ---------- */
.bw-strip{display:flex;align-items:center;justify-content:flex-start;gap:8px;
  background:#16191d;color:#fff;padding:5px 12px;min-height:38px;box-sizing:border-box;
  font:600 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  position:relative;z-index:5}
.bw-appsbtn{display:inline-flex;align-items:center;gap:7px;color:#fff !important;text-decoration:none !important;
  border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:4px 12px 4px 5px;
  font:600 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:rgba(255,255,255,.06);white-space:nowrap;-webkit-tap-highlight-color:transparent;letter-spacing:.01em}
.bw-appsbtn:hover,.bw-appsbtn:focus-visible{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5)}
.bw-appsbtn img{width:22px;height:22px;display:block;flex-shrink:0}

/* Apps with a fixed top bar (Crime, Injury, Health, Pet, Solar): strip sits just under it */
:root{--bw-strip-h:38px}
.bw-strip.bw-strip-under{position:absolute;top:100%;left:0;right:0;height:var(--bw-strip-h);min-height:0;
  padding:0 12px;box-shadow:0 2px 6px rgba(0,0,0,.18);z-index:1}

/* The Be Wise Apps button placed above the headline on each app's home screen (2026-09-26) */
.bw-appsbtn.bw-hero-apps{margin:0 0 12px;vertical-align:middle}
.bw-appsbtn.bw-on-light{color:#1B2A4A !important;border-color:rgba(27,42,74,.28);background:rgba(27,42,74,.04)}
.bw-appsbtn.bw-on-light:hover,.bw-appsbtn.bw-on-light:focus-visible{background:rgba(27,42,74,.09);border-color:rgba(27,42,74,.5)}

/* ---------- 3-bar menu (only on apps that had no 3-bar menu) ---------- */
.bw-burger{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
  background:none;border:1px solid transparent;border-radius:8px;color:#fff;cursor:pointer;padding:0;flex-shrink:0;
  -webkit-tap-highlight-color:transparent}
.bw-burger:hover,.bw-burger:focus-visible,.bw-burger[aria-expanded="true"]{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
.bw-burger svg{width:22px;height:22px;display:block}
.bw-menu{position:fixed;z-index:2147483000;min-width:230px;max-width:calc(100vw - 16px);max-height:calc(100vh - 80px);overflow-y:auto;
  background:#fff;color:#1b1f24;border:1px solid #d6d9de;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.22);padding:6px;
  font:500 15px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;box-sizing:border-box}
.bw-menu[hidden]{display:none}
.bw-menu a,.bw-menu button{display:block;width:100%;text-align:left;box-sizing:border-box;background:none;border:0;border-radius:7px;
  padding:11px 12px;color:#1b1f24 !important;text-decoration:none !important;font:inherit;cursor:pointer}
.bw-menu a:hover,.bw-menu button:hover,.bw-menu a:focus-visible,.bw-menu button:focus-visible{background:#f0f2f5}
.bw-menu .bw-sep{height:1px;background:#e3e6ea;margin:5px 4px}
.bw-menu .bw-contact{font-weight:700}

/* ---------- Bottom "Back" and "Back to Top" links (small, discreet, thin arrows) ---------- */
.bw-bottom{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 26px;
  padding:14px 16px;margin:0 auto;box-sizing:border-box;width:100%;clear:both}
.bw-bottom button{display:inline-flex;align-items:center;gap:5px;background:none;border:0;border-radius:4px;
  padding:6px 4px;margin:0;color:inherit;opacity:.7;cursor:pointer;
  font:500 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-tap-highlight-color:transparent}
.bw-bottom button:hover,.bw-bottom button:focus-visible{opacity:1;text-decoration:underline;text-underline-offset:3px}
.bw-bottom button svg{width:15px;height:15px;flex-shrink:0}

/* Solar and Pet Wise topic pages already had their own "Back to topics" / "Back to top" pair
   at the foot of each topic. Hidden so the page doesn't show two sets. */
.content-footer-nav{display:none !important}

/* Chatbot answers formatted by bw-chat-format.js */
.bw-md-h{display:inline-block;margin-top:4px}
.bw-md-table-wrap{overflow-x:auto;margin:6px 0;white-space:normal}
.bw-md-table{border-collapse:collapse;font-size:.92em;line-height:1.45;min-width:100%}
.bw-md-table th,.bw-md-table td{border:1px solid rgba(0,0,0,.18);padding:6px 8px;text-align:left;vertical-align:top}
.bw-md-table th{background:rgba(0,0,0,.05);font-weight:600}

@media print{:root{--bw-strip-h:0px}.bw-strip,.bw-burger,.bw-menu,.bw-bottom{display:none !important}}
