/* Market Limits — standalone (Tailwind-free) site header, used by Micro Angle. */
.ml-header, .ml-header * { box-sizing: border-box; }
.ml-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 26, 20, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 78, 59, .4);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ml-header-inner { max-width: 1280px; height: 80px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ml-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ml-brand-mark { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(52, 211, 153, .3); background: linear-gradient(135deg, #10b981, #047857); display: flex; align-items: center; justify-content: center; }
.ml-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-brand-name { font-weight: 800; font-size: 18px; letter-spacing: .05em; color: #fff; transition: color .15s; }
.ml-brand:hover .ml-brand-name { color: #34d399; }

.ml-nav { display: none; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.ml-nav .nav-dd { position: relative; }
.ml-nav .nav-dd-btn { appearance: none; border: 0; background: none; color: #cbd5e1; font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; cursor: pointer; white-space: nowrap; transition: color .15s; }
.ml-nav .nav-dd-btn:hover, .ml-nav .nav-dd.open > .nav-dd-btn, .ml-nav .nav-dd-btn.is-current-group { color: #34d399; }
.ml-nav .nav-dd-btn > i:first-child { font-size: 13.6px; margin-right: 1.6px; }
.ml-header .chev { font-size: 9.6px; transition: transform .15s ease; }
.nav-dd.open .chev, .m-acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ml-nav .nav-panel { display: none; position: absolute; left: 0; top: 100%; padding-top: 12px; z-index: 70; }
.ml-nav .nav-panel-right { left: auto; right: 0; }
.ml-nav .nav-dd.open > .nav-panel { display: block; }
.ml-nav .nav-panel-inner { min-width: 240px; background: #0b261e; border: 1px solid rgba(6, 78, 59, .6); border-radius: 12px; box-shadow: 0 20px 25px -12px rgba(0, 0, 0, .6); padding: 8px; }
.ml-nav .nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: #cbd5e1; text-decoration: none; transition: background-color .15s, color .15s; }
.ml-nav .nav-item i { width: 16px; text-align: center; font-size: 12.8px; }
.ml-nav .nav-item:hover { background: rgba(2, 44, 34, .7); color: #34d399; }
.ml-nav .nav-item[aria-current="page"] { color: #34d399; background: rgba(6, 78, 59, .45); font-weight: 600; }
.ml-nav .nav-sub { display: block; width: 100%; }
.ml-nav .nav-sub-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: #cbd5e1; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.ml-nav .nav-sub-btn:hover, .ml-nav .nav-sub-btn[aria-expanded="true"] { background: rgba(2, 44, 34, .7); color: #34d399; }
.ml-nav .nav-sub-btn > i:first-child { width: 16px; text-align: center; font-size: 12.8px; }
.ml-nav .nav-sub-btn .chev { margin-left: auto; transform: none; }
.ml-nav .nav-sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ml-nav .nav-sub-panel { margin: 2px 0 4px 18px; padding-left: 8px; border-left: 1px solid rgba(6, 78, 59, .6); }
.ml-nav .nav-sub-panel[hidden] { display: none; }
.ml-header :focus-visible { outline: 2px solid #34d399; outline-offset: 2px; border-radius: 6px; }

.ml-toggle { appearance: none; background: none; border: 0; color: #cbd5e1; font-size: 20px; padding: 8px; cursor: pointer; }
.ml-toggle:hover { color: #fff; }
.ml-mobile { background: #0b261e; border-bottom: 1px solid rgba(6, 78, 59, .5); padding: 12px 24px 16px; max-height: calc(100vh - 80px); overflow-y: auto; }
.ml-mobile[hidden], .m-acc-panel[hidden] { display: none; }
.ml-mobile .m-acc-btn { appearance: none; border: 0; background: none; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; color: #cbd5e1; font: inherit; font-weight: 500; cursor: pointer; }
.ml-mobile .m-acc-btn i:first-child { margin-right: 7.2px; font-size: 13.6px; }
.ml-mobile .m-acc-btn[aria-expanded="true"] { color: #34d399; }
.ml-mobile .m-acc-panel { margin: 1.6px 0 6.4px 8px; padding-left: 24px; border-left: 1px solid rgba(6, 78, 59, .5); }
.ml-mobile .m-acc-panel a { display: block; padding: 5.6px 0; color: #cbd5e1; text-decoration: none; font-weight: 500; }
.ml-mobile .m-acc-panel a:hover, .ml-mobile .m-acc-panel a[aria-current="page"] { color: #34d399; }
.ml-mobile .nav-sub { display: block; width: 100%; }
.ml-mobile .nav-sub-btn { display: flex; width: 100%; align-items: center; gap: 7.2px; padding: 5.6px 0; border: 0; background: none; color: #cbd5e1; font: inherit; text-align: left; font-weight: 500; cursor: pointer; }
.ml-mobile .nav-sub-btn:hover, .ml-mobile .nav-sub-btn[aria-expanded="true"] { color: #34d399; }
.ml-mobile .nav-sub-btn .chev { margin-left: auto; }
.ml-mobile .nav-sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.ml-mobile .nav-sub-panel { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid rgba(6, 78, 59, .6); }
.ml-mobile .nav-sub-panel[hidden] { display: none; }

@media (min-width: 1280px) { .ml-nav { display: flex; } .ml-toggle, .ml-mobile { display: none !important; } }
@media (max-width: 640px) { .ml-header-inner { padding: 0 16px; } }

/* Top-level Hashlines link */
.ml-nav .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: #cbd5e1; text-decoration: none; white-space: nowrap; transition: color .15s; }
.ml-nav .nav-link:hover { color: #34d399; }
.ml-nav .nav-link > i:first-child { font-size: 13.6px; margin-right: 1.6px; }
.ml-mobile .m-link { display: block; padding: 8px 0; color: #cbd5e1; text-decoration: none; font-weight: 500; }
.ml-mobile .m-link i { margin-right: 7.2px; font-size: 13.6px; }
.ml-mobile .m-link:hover { color: #34d399; }
