/* ============================================================================
   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:1280px !important;margin:0 auto;display:flex;align-items:center;gap:18px}
.chrome-brand{display:flex;align-items:center;gap:9px;white-space:nowrap;flex:none;text-decoration:none}
.chrome-brand .ivwm{height:22px;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:15px}
/* tabs */
.chrome-tabs{display:flex;align-items:stretch;gap:2px;height:64px;overflow-x:auto;scrollbar-width:none;flex:0 1 auto;min-width:0}
.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 14px;
  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 300px;max-width:380px}
.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 original app footer (.mfa-foot), self-contained for the PHP pages */
.mfa-foot{margin:54px 0 0;padding:40px 22px 30px;background:#05111F;border-top:1px solid rgba(255,255,255,.10)}
.mfa-foot-in{max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:28px;align-items:flex-start}
.mfa-foot .fbrand{font-family:'Bebas Neue',sans-serif;font-weight:400;font-size:20px;letter-spacing:.5px;color:#fff;display:flex;align-items:center;gap:8px}
.mfa-foot .fbrand .ivwm{height:20px;width:auto} .mfa-foot .ivwm-suffix{color:var(--sun);font-size:16px}
.mfa-foot .ftag{font-size:12.5px;color:#C3D0E0;margin-top:8px;max-width:320px;line-height:1.6}
.mfa-foot .flinks{display:flex;gap:40px;flex-wrap:wrap}
.mfa-foot .fcol b{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#A9BACE;margin-bottom:11px;font-family:'JetBrains Mono',ui-monospace,monospace}
.mfa-foot .fcol a{display:block;font-size:13px;color:#C3D0E0;margin-bottom:9px;text-decoration:none;transition:.15s}
.mfa-foot .fcol a:hover{color:var(--sun)}
.mfa-foot .fdisc{max-width:1280px;margin:26px auto 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.10);font-size:11.5px;color:#8ea0ba;line-height:1.7}

/* 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}
