/* ============================================================================
   mf-header.css — the ONE header (the original app "chrome"), self-contained.
   Loaded on the PHP pages (home/fund/category/amc/screener/about) so they wear
   exactly the same bar as the tool pages (try.html etc.). The chrome rules and
   colour overrides are copied from adaptive-header.css + styles.css so the two
   render identically; the search box, the free-preview timer, the sign-up gate
   and the 3D buttons are added here and shared by every page.
   ============================================================================ */
:root{ --sun:#f5c542; --sun-d:#d9a520; --royal:#1e3a8a; }
/* NOTE: this file must NOT redefine the host pages' global tokens (--maxw,
   --header-h, --display, --bg3, --b2 …). It did once, and it silently resized
   the whole tool-page layout — the "header fluctuation". Everything below uses
   explicit values so the header is identical everywhere and touches nothing
   else on the page. */
/* the bar */
.chrome{position:sticky;top:0;z-index:50;height:64px;display:flex;align-items:center;
  padding:0 22px;background:#05111F;border-bottom:1px solid rgba(255,255,255,.10);
  --t1:#fff; --t2:#C3D0E0; --t3:#A9BACE}
.chrome-inner{width:100%;max-width:1560px !important;margin:0 auto;display:flex;align-items:center;gap:16px}
.chrome-brand{display:flex;align-items:center;gap:9px;white-space:nowrap;flex:none;text-decoration:none}
.chrome-brand .ivwm{height:34px;width:auto;display:block}
.chrome-brand .name{font-family:'DM Sans',system-ui,sans-serif;font-weight:600;font-size:16px;letter-spacing:-.01em;line-height:1.1;
  display:flex;align-items:center;gap:8px;color:#fff !important}
.chrome-brand .ivwm-suffix{font-weight:600;color:var(--sun);font-size:14.5px;letter-spacing:.01em}
/* tabs */
.chrome-tabs{display:flex;align-items:stretch;gap:2px;height:64px;overflow-x:auto;scrollbar-width:none;flex:0 0 auto}
.chrome-tabs::-webkit-scrollbar{display:none}
/* Scoped to .chrome so no host page can out-specify these. try.html, the app
   and styles.css each carried their own .chrome-tab.active rule that painted a
   filled gold block, and the header then looked like a different design on
   every page. One rule, one look: a gold underline, never a filled tab. */
/* !important on colour as well as background: the host pages carry their own
   `.chrome a { color: … !important }` contrast rules that were repainting the
   tabs a different shade on each page. The header is one component with one
   look, so it wins here by design, not by accident of load order. */
.chrome .chrome-tab{position:relative;display:inline-flex;align-items:center;gap:7px;padding:0 11px;
  height:64px;font-size:13.5px;font-weight:500;color:#E8EEF6 !important;white-space:nowrap;border:none;
  background:none !important;border-radius:0;cursor:pointer;text-decoration:none;transition:color .16s}
.chrome .chrome-tab:hover{color:#F5C518 !important;background:none !important}
.chrome .chrome-tab.active{color:#fff !important;font-weight:600;background:none !important;border-color:transparent}
.chrome .chrome-tab.active::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;
  background:linear-gradient(90deg,#c9982a,var(--sun));border-radius:2px}
/* the date, one format and one colour everywhere */
.chrome .chrome-date,.chrome [data-acc-date]{color:#C3D0E0 !important;font-size:12px}
/* nothing else may be appended into the bar */
.chrome #iv-pro-badge{display:none !important}
/* right cluster */
.chrome-right{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}
.chrome-date{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;color:#C3D0E0;white-space:nowrap}
.chrome-btn{display:inline-flex;align-items:center;gap:6px;background:#12233a;border:1px solid rgba(255,255,255,.14);
  color:#E8EEF6;border-radius:10px;padding:7px 12px;font-size:12.5px;font-weight:600;text-decoration:none;transition:border-color .14s,color .14s}
.chrome-btn:hover{border-color:rgba(255,255,255,.28);color:#fff}
.chrome-btn svg{width:14px;height:14px}
.chrome-avatar{width:34px;height:34px;border-radius:50%;flex:none;display:grid;place-items:center;color:#05111F;
  font-family:'DM Sans',system-ui,sans-serif;font-weight:700;font-size:13px;text-decoration:none;
  background:linear-gradient(135deg,var(--sun),#c9982a);border:1px solid rgba(255,255,255,.14)}
.chrome-avatar.acc-av{display:none} html.mfa-signedin .chrome-avatar.acc-av{display:grid}
.acc-unlock{display:inline-flex} html.mfa-signedin .acc-unlock{display:none}

/* header search */
.chrome-search{position:relative;flex:1 1 120px;max-width:300px;min-width:0}
.chrome-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#8ea0ba;pointer-events:none}
#mfQ{width:100%;height:38px;padding:0 14px 0 36px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);color:#fff;font:14px/1 'DM Sans',system-ui,sans-serif;outline:none;transition:.14s}
#mfQ::placeholder{color:#8ea0ba}
#mfQ:focus{background:#fff;color:#05111F;border-color:var(--sun);box-shadow:0 0 0 4px rgba(245,197,66,.28)}
#mfQ:focus::placeholder{color:#94A3B8}
.mfh-res{position:absolute;top:calc(100% + 7px);left:0;right:0;background:#fff;border:1px solid #ece6d8;border-radius:12px;
  box-shadow:0 18px 48px rgba(0,0,0,.28);overflow:hidden;max-height:min(70vh,480px);overflow-y:auto;z-index:60}
.mfh-res[hidden]{display:none}
.mfh-res .rgrp{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:#727b90;padding:11px 15px 5px;font-weight:700}
.mfh-res a{display:flex;align-items:center;gap:11px;padding:9px 15px;text-decoration:none;color:#17213c;border-top:1px solid #f1ece0}
.mfh-res a:first-of-type{border-top:0}
.mfh-res a:hover,.mfh-res a.on{background:#fdf8ec}
.mfh-res .ri{width:30px;height:30px;border-radius:8px;flex:none;display:grid;place-items:center;font:700 12px/1 'Bebas Neue',sans-serif;background:#fdf8ec;color:#8a6a15}
.mfh-res .rn{flex:1 1 auto;min-width:0}
.mfh-res .rn b{display:block;font-size:14px;font-weight:600;color:#17213c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mfh-res .rn span{display:block;font-size:12px;color:#727b90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mfh-res .rv{font:700 13px/1 'JetBrains Mono',ui-monospace,monospace;color:#3b4664;flex:none}
.mfh-res .rempty{padding:16px;color:#727b90;font-size:13.5px;text-align:center}

/* burger (mobile) */
.mfh-burger{display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;padding:6px;flex:none}
.mfh-burger span{width:20px;height:2px;background:#E8EEF6;border-radius:2px}
@media(max-width:960px){
  .chrome-search{flex-basis:160px}
  .chrome-date{display:none}
}
@media(max-width:760px){
  .chrome-tabs{position:absolute;top:64px;left:0;right:0;flex-direction:column;height:auto;gap:0;
    background:#0B1A2C;padding:6px 0;box-shadow:0 16px 32px rgba(0,0,0,.35);display:none;z-index:60}
  .chrome-tabs.open{display:flex}
  .chrome-tab{height:auto;padding:13px 22px;border-bottom:1px solid rgba(255,255,255,.06)}
  .chrome-tab.active::after{display:none}
  .mfh-burger{display:flex;order:-1}
  .chrome-search{flex:1 1 auto;max-width:none}
}

/* ── the one 3D button, shared by every page ───────────────────────────────
   Filters, CTAs, "Show funds", "Apply filters", the gate's own buttons. Raised
   with a hard bottom edge, and it presses down on click. Defined here once
   because more than one file owning a button style is exactly how the site
   ended up with two of everything. */
.btn3d,.lp-go,.cta,.scr-filters button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  border:0;border-radius:11px;font:700 14.5px/1 'DM Sans',system-ui,sans-serif;color:#17213c;
  padding:12px 22px;text-decoration:none;
  background:linear-gradient(180deg,var(--sun) 0%,#c9982a 100%);
  box-shadow:0 4px 0 var(--sun-d),0 8px 18px rgba(201,152,42,.34),inset 0 1px 0 rgba(255,255,255,.5);
  transition:transform .08s,box-shadow .08s}
.btn3d:hover,.lp-go:hover,.cta:hover,.scr-filters button:hover{transform:translateY(-1px);
  box-shadow:0 5px 0 var(--sun-d),0 10px 22px rgba(201,152,42,.4),inset 0 1px 0 rgba(255,255,255,.5)}
.btn3d:active,.lp-go:active,.cta:active,.scr-filters button:active{transform:translateY(3px);
  box-shadow:0 1px 0 var(--sun-d),0 3px 8px rgba(201,152,42,.3),inset 0 1px 0 rgba(255,255,255,.4)}
.btn3d.blue{background:linear-gradient(180deg,#2f4fb0,var(--royal));color:#fff;
  box-shadow:0 4px 0 #16296b,0 8px 18px rgba(30,58,138,.34),inset 0 1px 0 rgba(255,255,255,.25)}
.btn3d.blue:active{transform:translateY(3px);box-shadow:0 1px 0 #16296b,0 3px 8px rgba(30,58,138,.3)}

/* The free-preview timer and the sign-up gate live in mf-gate.css — one
   definition, loaded everywhere they can appear. */

/* ── the one footer ────────────────────────────────────────────────────────
   Four bands: what this is, where to go, who runs it, and what it legally is
   not. `margin-top:auto` with the body flex rule below keeps it welded to the
   bottom of the viewport on short pages instead of floating halfway up. */
html.mf-sticky-foot,html.mf-sticky-foot body{height:auto}
html.mf-sticky-foot body{min-height:100vh;display:flex;flex-direction:column}
html.mf-sticky-foot body>main{flex:1 0 auto}
.mfa-foot{margin:64px 0 0;padding:44px 22px 26px;background:#05111F;
  border-top:1px solid rgba(255,255,255,.10);margin-top:auto}
.mfa-foot-in{max-width:1560px;margin:0 auto;display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(0,2.35fr);gap:46px;align-items:start}
.mfa-foot .fbrand{display:flex;align-items:center;gap:9px;font-family:'DM Sans',system-ui,sans-serif}
.mfa-foot .fbrand .ivwm{height:30px;width:auto} .mfa-foot .ivwm-suffix{color:var(--sun);font-size:14.5px;font-weight:600}
.mfa-foot .ftag{font-size:13px;color:#C3D0E0;margin:14px 0 0;max-width:360px;line-height:1.72}
.mfa-foot .fmeta{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mfa-foot .fmeta li{font-size:11.5px;color:#A9BACE;background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.10);border-radius:8px;padding:5px 10px}
.mfa-foot .fmeta b{color:var(--sun);font-weight:700}
.mfa-foot .flinks{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:26px 22px}
.mfa-foot .fcol b{display:block;font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;color:#8ea0ba;
  margin-bottom:13px;font-family:'JetBrains Mono',ui-monospace,monospace}
.mfa-foot .fcol a{display:block;font-size:13px;color:#C3D0E0;margin-bottom:10px;text-decoration:none;transition:color .15s}
.mfa-foot .fcol a:hover{color:var(--sun)}
.mfa-foot .fcontact span{display:block;font-size:12px;color:#8ea0ba;line-height:1.65;margin-bottom:8px}
/* the entity band — the details a real business is required to show */
.mfa-foot-legal{max-width:1560px;margin:34px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.10);
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px 34px;align-items:flex-start}
.mfa-foot .fentity{display:flex;flex-wrap:wrap;gap:6px 26px;font-size:11.5px;color:#8ea0ba;line-height:1.7;max-width:920px}
.mfa-foot .fentity b{color:#C3D0E0;font-weight:600;margin-right:5px}
.mfa-foot .fcopy{font-size:11.5px;color:#8ea0ba}
.mfa-foot .fdisc{max-width:1560px;margin:18px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.07);
  font-size:11.5px;color:#7d8ea6;line-height:1.75}
.mfa-foot .fdisc b{color:#A9BACE}
@media(max-width:900px){
  .mfa-foot{padding:34px 18px 22px}
  .mfa-foot-in{grid-template-columns:1fr;gap:30px}
  .mfa-foot-legal{flex-direction:column;gap:10px}
}

/* Direct / Regular tag in search results — the same fund appears up to four
   times (plan × option) and the eye needs to tell them apart at a glance. */
.rtag{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:5px;vertical-align:1px;
  font:700 10px/1.5 'DM Sans',system-ui,sans-serif;letter-spacing:.04em}
.rtag.d{background:#eaf2ff;color:#1d4ed8}
.rtag.r{background:#fff3e6;color:#c2410c}
/* the scheme code, under the NAV — the number people copy off a statement */
.mfh-res .rv{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.rcode{font:600 10.5px/1 'JetBrains Mono',ui-monospace,monospace;color:#8ea0ba;font-style:normal;letter-spacing:.02em}

/* Between the burger breakpoint and a full desktop the bar is genuinely tight.
   The search goes before a nav tab does — every page has its own search. */
@media(max-width:1180px){ .chrome-search{display:none} }

/* ── the date, under the bar ───────────────────────────────────────────────
   It used to sit between the search box and Unlock Pro, competing with the
   five nav tabs for a strip that had run out of room. Nobody navigates with
   a date, so it moved to its own hairline under the header, right-aligned. */
.mf-datebar{padding:9px 22px 0;pointer-events:none}
.mf-datebar-in{max-width:1560px;margin:0 0 0 auto;width:max-content;display:flex;align-items:center;gap:7px;
  padding:4px 12px;border-radius:999px;background:#0e1c2f;border:1px solid rgba(255,255,255,.14);
  box-shadow:0 2px 8px rgba(13,21,38,.18);
  font-family:'JetBrains Mono',ui-monospace,monospace;font-size:11px;color:#c3d0e0;letter-spacing:.02em}
.mf-datebar-in i{width:5px;height:5px;border-radius:50%;background:#3fbf87;flex:none;
  box-shadow:0 0 0 3px rgba(63,191,135,.18)}
/* nothing to say until account-chrome fills it — an empty capsule is worse
   than none, so it hides itself */
.mf-datebar-in:has(span:empty){display:none}

/* ── the platform menu ─────────────────────────────────────────────────────
   The same grouped dropdowns the InvestVerdict header uses, so the tools read
   as one product wherever they are listed. `.ivnd-up` flips the panel above
   the button for the copy that lives in the footer. */
.ivnd-row{display:flex;flex-wrap:wrap;gap:6px}
.ivnd{position:relative}
.ivnd-top{display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);color:#E8EEF6;
  font:600 13px/1 'DM Sans',system-ui,sans-serif;padding:9px 13px;border-radius:9px;transition:.15s}
.ivnd-top:hover,.ivnd.open .ivnd-top{background:rgba(245,197,66,.13);border-color:rgba(245,197,66,.45);color:#fff}
.ivnd-car{width:0;height:0;border:4px solid transparent;border-top-color:currentColor;
  margin-top:2px;transition:transform .18s}
.ivnd.open .ivnd-car{transform:rotate(180deg);margin-top:-2px}
.ivnd-menu{position:absolute;left:0;min-width:290px;max-width:340px;z-index:80;
  background:#0e1c2f;border:1px solid rgba(255,255,255,.13);border-radius:12px;padding:6px;
  box-shadow:0 22px 54px rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .16s,transform .16s,visibility .16s}
.ivnd-row.ivnd-down .ivnd-menu{top:calc(100% + 8px)}
.ivnd-row.ivnd-up   .ivnd-menu{bottom:calc(100% + 8px)}
.ivnd.open .ivnd-menu{opacity:1;visibility:visible;transform:translateY(0)}
.ivnd-menu a{display:block;padding:9px 11px;border-radius:8px;text-decoration:none;transition:background .13s}
.ivnd-menu a:hover,.ivnd-menu a:focus-visible{background:rgba(245,197,66,.12);outline:none}
.ivnd-menu b{display:block;font:600 13.5px/1.3 'DM Sans',system-ui,sans-serif;color:#fff;margin-bottom:2px}
.ivnd-menu span{display:block;font-size:12px;line-height:1.45;color:#8ea0ba}
/* a menu near the right edge would otherwise run off the page */
.ivnd:nth-last-child(-n+2) .ivnd-menu{left:auto;right:0}

/* ── footer, compact ───────────────────────────────────────────────────────
   Two bands and a disclaimer. The long version listed the same links twice
   over and buried them under a registered-entity block; those details live on
   the contact page, which is where anyone looking for them goes. */
.mfa-foot{margin:64px 0 0;padding:38px 22px 22px;background:#05111F;
  border-top:1px solid rgba(255,255,255,.10);margin-top:auto}
.mfa-foot-in{max-width:1560px;margin:0 auto;display:grid;
  grid-template-columns:minmax(240px,.85fr) minmax(0,2fr);gap:40px;align-items:start}
.mfa-foot .fbrand{display:flex;align-items:center;gap:9px}
.mfa-foot .fbrand .ivwm{height:30px;width:auto}
.mfa-foot .ftag{font-size:12.5px;color:#A9BACE;margin:13px 0 0;max-width:380px;line-height:1.7}
.mfa-foot .fnav-lbl{display:block;font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;
  color:#8ea0ba;margin-bottom:12px;font-family:'JetBrains Mono',ui-monospace,monospace}
.mfa-foot-legal{max-width:1560px;margin:28px auto 0;padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);display:flex;flex-wrap:wrap;
  justify-content:space-between;align-items:center;gap:10px 24px}
.mfa-foot .fcopy{font-size:12px;color:#8ea0ba}
.mfa-foot .flegal{display:flex;flex-wrap:wrap;gap:6px 18px}
.mfa-foot .flegal a{font-size:12px;color:#A9BACE;text-decoration:none;transition:color .15s}
.mfa-foot .flegal a:hover{color:var(--sun)}
.mfa-foot .fdisc{max-width:1560px;margin:14px auto 0;font-size:11px;color:#6f8098;line-height:1.7}
.mfa-foot .fdisc b{color:#93a5bd}
@media(max-width:900px){
  .mfa-foot{padding:28px 16px 18px}
  .mfa-foot-in{grid-template-columns:1fr;gap:26px}
  .ivnd-menu{min-width:min(300px,86vw)}
  .ivnd .ivnd-menu,.ivnd:nth-last-child(-n+2) .ivnd-menu{left:0;right:auto}
}


/* ── the footer dropdowns were widening every page on a phone ─────────────
   Each .ivnd-menu inside the footer is 290-340px wide, absolutely positioned
   at left:0 of its own column. On a 375px screen the third column starts
   around x=206, so a closed menu still reached x=546 — and visibility:hidden
   does not remove an element from layout, it only stops it being painted. The
   page therefore carried 171px of horizontal scroll that nothing visible
   explained.

   On a phone the menu spans the footer instead, which is how a dropdown should
   behave there anyway. Scoped to .mfa-foot so the header's own menus keep the
   desktop behaviour they were designed for. */
@media (max-width: 620px){
  .mfa-foot .ivnd-row{ position:relative }
  .mfa-foot .ivnd{ position:static }
  .mfa-foot .ivnd-menu{
    left:0; right:0; width:auto; min-width:0; max-width:none;
  }
}
