/* macOS (Tahoe) menu bar for the homepage — the Meaningful mark sits where
   the Apple logo goes. Transparent bar, 13pt titles, bold app name, rounded
   highlight on the open menu, glass menus with blue selection, menu extras,
   locale clock, and Spotlight. */
:root { --nav-h: 30px; }

.nav.mbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: calc(var(--nav-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 8px;
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.22));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  font-size: 13px; letter-spacing: -0.003em; color: #fff;
  -webkit-user-select: none; user-select: none; cursor: default;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 0; min-width: 0; height: 100%; }
.mb-menu { position: relative; display: flex; align-items: center; height: 100%; }

.mb-item {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 5px;
  font: inherit; font-size: 13px; font-weight: 400; color: #fff; background: none; border: 0; white-space: nowrap; cursor: default;
  transition: background-color 60ms;
}
.mb-item:focus-visible { outline: none; background: rgba(255, 255, 255, 0.22); }
.mb-item.is-open, .mb-ic:active, .mb-extra:active { background: rgba(255, 255, 255, 0.22); }
.mb-logo { padding: 0 12px 0 11px; }
.mb-logo img { width: 15px; height: 15px; object-fit: contain; filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.3)); }
.mb-app { font-weight: 700; margin: 0; }
.mb-ic { width: 30px; padding: 0; justify-content: center; color: #fff; }
.mb-ic svg { width: 16px; height: 16px; }
.nav.mbar .icon-btn { width: 30px; height: 22px; border-radius: 5px; color: #fff; }
.nav.mbar .icon-btn:hover { background: none; }
.nav.mbar .icon-btn:active { transform: none; background: rgba(255, 255, 255, 0.22); }
.nav.mbar .menu-btn { display: none; }
.mb-extra { gap: 5px; padding: 0 9px 0 8px; }
.mb-extra svg { width: 14px; height: 14px; flex: none; }
.mb-clock { font-variant-numeric: tabular-nums; padding: 0 8px 0 10px; }

/* Drop-down menus */
.mb-drop {
  position: absolute; left: 0; top: calc(100% + 1px); min-width: 220px; padding: 5px;
  border-radius: 11px; background: rgba(38, 38, 42, 0.7);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.12), 0 14px 40px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-shadow: none; visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 0s 180ms;
}
.mb-menu.open .mb-drop { visibility: visible; opacity: 1; transition: none; }
.mb-drop a { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 22px; padding: 0 10px; border-radius: 5px; font-size: 13px; color: #fff; text-decoration: none; outline: none; cursor: default; }
.mb-drop a:focus, .mb-drop a:hover { background: #0a84ff; }
.mb-drop a.blink { animation: blink 140ms steps(2) 1; }
@keyframes blink { 50% { background: transparent; } }
.mb-drop kbd { font: inherit; color: rgba(235, 235, 245, 0.45); letter-spacing: 0.06em; }
.mb-drop a:focus kbd, .mb-drop a:hover kbd { color: rgba(255, 255, 255, 0.8); }
.mb-drop hr { border: 0; height: 0.5px; margin: 5px 10px; background: rgba(255, 255, 255, 0.14); }

/* the iOS menu (phones) drops from the bar */
.menu { top: calc(var(--nav-h) + var(--safe-t) + 6px); }

/* ── Spotlight ──────────────────────────────────────────────────────────── */
.spot { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.spot.open { visibility: visible; }
.spot-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 200ms; }
.spot.open .spot-dim { opacity: 1; }
.spot-box {
  position: absolute; left: 50%; top: 22vh; width: min(660px, calc(100vw - 32px)); transform: translate(-50%, -6px) scale(0.98); opacity: 0;
  transition: transform 340ms cubic-bezier(0.34, 1.36, 0.64, 1), opacity 160ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif; color: #fff;
}
.spot.open .spot-box { transform: translate(-50%, 0) scale(1); opacity: 1; }
.spot-field, .spot-results {
  background: rgba(36, 36, 40, 0.86); -webkit-backdrop-filter: blur(50px) saturate(180%); backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.18), inset 0 0.5px 0 rgba(255, 255, 255, 0.14), 0 24px 70px rgba(0, 0, 0, 0.5);
}
.spot-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: 28px; }
.spot-field svg { width: 22px; height: 22px; flex: none; color: rgba(235, 235, 245, 0.6); }
.spot-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; caret-color: #0a84ff; }
.spot-field input::placeholder { color: rgba(235, 235, 245, 0.45); }
.spot-results { margin-top: 8px; border-radius: 22px; padding: 6px; max-height: min(420px, 56vh); overflow-y: auto; display: none; }
.spot.has .spot-results { display: block; }
.spot-g { margin: 8px 12px 4px; font-size: 11px; font-weight: 600; color: rgba(235, 235, 245, 0.45); }
.spot-row { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; color: #fff; text-decoration: none; cursor: default; }
.spot-row.is-cur { background: #0a84ff; }
.spot-row > span:not(.spot-ic) { flex: 1; min-width: 0; }
.spot-row b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row small { display: block; font-size: 12px; color: rgba(235, 235, 245, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row.is-cur small { color: rgba(255, 255, 255, 0.8); }
.spot-row img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.spot-ic { width: 30px; height: 30px; border-radius: 7px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.spot-ic svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spot-row kbd { font: inherit; font-size: 13px; color: rgba(255, 255, 255, 0.7); visibility: hidden; }
.spot-row.is-cur kbd { visibility: visible; }

@media (max-width: 1000px) { .mb-help, .mb-clock .mb-date { display: none !important; } }
@media (max-width: 760px) {
  .mb-left .mb-menu:not(:first-child):not(:nth-child(2)) { display: none; }
  .mb-extra, .mb-clock { display: none !important; }
  .nav.mbar .menu-btn { display: inline-flex; }
  .spot-box { top: calc(var(--nav-h) + var(--safe-t) + 16px); }
}
@media (prefers-reduced-transparency: reduce) { .nav.mbar, .mb-drop, .spot-field, .spot-results { background: #1c1c1e; } }
