/* Shared frosted-pill navigation bar across all Monitros pages (matches the homepage 40px bottom control strip). */
.head-nav {
  display: inline-flex; align-items: center; gap: 2px;
  height: 40px; padding: 0 4px 0 6px; border-radius: 999px;
  background: rgba(11, 18, 32, 0.78);
  border: 1px solid rgba(210, 218, 230, 0.18);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.52);
}
.head-nav .head-link {
  font: 600 14px var(--body, "IBM Plex Sans", system-ui, sans-serif);
  color: rgba(235, 242, 252, 0.88); text-decoration: none; white-space: nowrap;
  height: 32px; display: inline-flex; align-items: center;
  padding: 0 13px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.head-nav .head-link[aria-current="page"] {
  color: #FBFBFA; background: rgba(251, 251, 250, 0.14);
}
@media (hover: hover) and (pointer: fine) {
  .head-nav .head-link:hover, .head-nav .head-link[aria-expanded="true"] {
    color: #FBFBFA; background: rgba(251, 251, 250, 0.12);
  }
}
.head-nav .head-cta {
  font: 600 14px var(--body, "IBM Plex Sans", system-ui, sans-serif);
  color: #0B1220; text-decoration: none; white-space: nowrap;
  height: 32px; display: inline-flex; align-items: center;
  margin-left: 4px; padding: 0 15px; border-radius: 999px;
  background: #FBFBFA;
  border: 1px solid rgba(251, 251, 250, 0.92);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .head-nav .head-cta:hover {
    background: #F5A46F; border-color: #F5A46F; color: #0B1220;
  }
}

/* Phones: the header links fold into a Menu button (nav.js) inside the same frosted pill. */
.nav-menu, .nav-panel { display: none; }
@media (max-width: 599px) {
  .head-nav { height: 42px; padding: 0 4px 0 4px; gap: 4px; }
  .head-nav > .head-link:not(.nav-menu) { display: none; }
  .head-nav > .nav-menu {
    display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0;
    border: 0; border-radius: 999px; background: transparent; color: #FBFBFA; cursor: pointer;
    position: relative;
  }
  .head-nav > .nav-menu::after {
    content: ""; position: absolute; right: -2px; top: 8px; bottom: 8px; width: 1px;
    background: rgba(210, 218, 230, 0.2);
  }
  .head-nav .head-cta { height: 34px; min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; margin-left: 2px; font-size: 13px; }
  .nav-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .nav-menu .nm-x, .nav-menu[aria-expanded="true"] .nm-bars { display: none; }
  .nav-menu[aria-expanded="true"] .nm-x { display: inline; }
  .nav-panel:not([hidden]) {
    display: flex; flex-direction: column; position: fixed; z-index: 60; right: 12px; min-width: 210px; padding: 6px;
    border-radius: 12px; background: rgba(11, 18, 32, 0.96); border: 1px solid rgba(201, 209, 222, 0.18);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.78), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .nav-item {
    display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px;
    background: transparent; color: #C9D1DE; font: 600 15px "IBM Plex Sans", system-ui, sans-serif; text-align: left;
    text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none;
  }
  .nav-item[aria-current="page"] { color: #FBFBFA; background: rgba(201, 209, 222, 0.08); }
  .nav-item:active { background: rgba(201, 209, 222, 0.12); }
  .nav-item:focus-visible { outline: 2px solid #FBFBFA; outline-offset: -2px; }
}
