/* Insightios v2 shared chrome: nav, footer, enquiry modal, article styling.
   Loaded on every page, after style.css where style.css is used. */
.mnav, .mnav *, .mfoot, .mfoot *, .mm, .mm * { box-sizing: border-box; }
.mnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid rgba(229,231,235,.7); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.mnav-in { max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mlogo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: #111827 !important; text-decoration: none !important; }
.mlinks { display: flex; align-items: center; gap: 26px; }
.mlinks a.l { font-size: 14px; color: #4b5563; text-decoration: none; transition: color .2s; }
.mlinks a.l:hover, .mlinks a.l[aria-current] { color: #111827; }
.mlinks a.l[aria-current] { font-weight: 600; }
.mbtn { font: 600 14px/1 "Inter", system-ui, sans-serif; padding: 10px 16px; border-radius: 10px; background: #1e40af; color: #fff !important; text-decoration: none !important; white-space: nowrap; transition: transform .15s; }
.mbtn:hover { transform: translateY(-1px); }
.mprog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, #1e40af, #60a5fa); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) { .mlinks a.l1 { display: none; } .mlinks { gap: 20px; } }
@media (max-width: 560px) { .mlinks a.l2 { display: none; } .mnav-in { padding: 0 16px; } }

.mfoot { border-top: 1px solid #f3f4f6; padding: 32px 24px; font: 14px/1.5 "Inter", system-ui, sans-serif; color: #6b7280; }
.mfoot-in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mfb { font-weight: 700; color: #111827 !important; letter-spacing: -.02em; text-decoration: none !important; }
.mfl { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.mfl a { color: #6b7280; text-decoration: none; transition: color .2s; } .mfl a:hover { color: #111827; }
.mfl a.li { display: inline-flex; align-items: center; } .mfl a.li:hover { color: #0a66c2; }

/* enquiry modal (components.js) */
.mm { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; font-family: "Inter", system-ui, sans-serif; }
.mm.open { display: flex; }
.mm-bg { position: absolute; inset: 0; background: rgba(11,18,32,.6); }
.mm-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.mm-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e5e7eb; background: #fff; color: #4b5563; display: grid; place-items: center; cursor: pointer; }
.mm h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #111827; }
.mm .mm-sub { margin: 0 0 18px; font-size: 14.5px; color: #6b7280; line-height: 1.55; }
.mm form { display: grid; gap: 14px; }
.mm .mm-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mm label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: #374151; min-width: 0; }
.mm label small { font-weight: 400; color: #6b7280; }
.mm input, .mm select, .mm textarea { font: 15px/1.4 "Inter", system-ui, sans-serif; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; color: #111827; width: 100%; min-width: 0; }
.mm input:focus, .mm select:focus, .mm textarea:focus { outline: none; border-color: #1e40af; box-shadow: 0 0 0 3px #dbeafe; }
.mm textarea { min-height: 96px; resize: vertical; }
.mm button[type=submit] { font: 600 15px/1 "Inter", system-ui, sans-serif; padding: 14px; border-radius: 10px; border: 0; background: #1e40af; color: #fff; cursor: pointer; }
.mm .mm-note { margin: 0; font-size: 13px; color: #6b7280; text-align: center; }
.mm .mm-alt { margin: 0; font-size: 13px; color: #6b7280; text-align: center; }
.mm .mm-alt a { color: #1e40af; font-weight: 600; text-decoration: none; }
.mm .mm-ok { text-align: center; padding: 24px 0 8px; }
.mm .mm-ok b { display: block; font-size: 18px; color: #111827; margin-bottom: 6px; }
.mm .mm-ok p { margin: 0; color: #6b7280; font-size: 14.5px; }
.mm .mm-err { margin: 0; font-size: 13.5px; color: #b91c1c; text-align: center; }
@media (max-width: 520px) { .mm .mm-2 { grid-template-columns: 1fr; } .mm-box { padding: 22px; } }

/* article pages (research studies + blog posts) */
main.art { position: relative; isolation: isolate; padding-top: 56px !important; }
main.art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(59,130,246,.15), transparent 70%), radial-gradient(25% 45% at 90% 35%, rgba(196,181,253,.18), transparent 70%), radial-gradient(25% 45% at 8% 55%, rgba(147,197,253,.15), transparent 70%); }
main.art::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 560px; z-index: -1; opacity: .45; pointer-events: none;
  background-image: linear-gradient(#e5e7eb 1px, transparent 1px), linear-gradient(90deg, #e5e7eb 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); }
main.art header h1 { font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.08 !important; font-size: clamp(30px, 4.4vw, 46px) !important; }
main.art header .text-lg { font-size: 18.5px; line-height: 1.65; }
main.art .key-takeaways { border-radius: 18px !important; box-shadow: 0 18px 40px -26px rgba(30,64,175,.4); }
main.art .prose h2 { font-weight: 800; letter-spacing: -.025em; }
main.art figure img { border-radius: 18px !important; box-shadow: 0 30px 60px -30px rgba(17,24,39,.35); }
.mauthor { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; margin-bottom: 40px; border: 1px solid #e5e7eb; border-radius: 999px; background: rgba(255,255,255,.85); width: fit-content; max-width: 100%; }
.mauthor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mauthor p { margin: 0; line-height: 1.3; }
.mcta { margin: 40px 0; padding: 26px 28px; border-radius: 22px; border: 1px solid #dbe4fb; background: linear-gradient(150deg, #f3f7ff, #fff 60%); box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 18px 40px -18px rgba(30,64,175,.22); display: grid; gap: 18px; text-align: center; justify-items: center; }
.mcta p { margin: 0 !important; }
.mcta .mcta-t { font-size: 20px !important; font-weight: 800; letter-spacing: -.02em; color: #111827 !important; line-height: 1.3; }
.mcta .mcta-p { font-size: 15px !important; color: #4b5563 !important; line-height: 1.6; margin: 6px auto 0 !important; max-width: 34rem; }
.mcta-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mcta-b a { font: 600 14.5px/1 "Inter", system-ui, sans-serif; padding: 13px 18px; border-radius: 10px; text-decoration: none !important; }
.mcta-b .mb1 { background: #1e40af; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(30,64,175,.5); }
.mcta-b .mb2 { background: #fff; color: #111827 !important; border: 1px solid #e5e7eb; }
.mbio { margin-top: 56px; padding: 22px; border: 1px solid #e5e7eb; border-radius: 20px; display: flex; gap: 16px; align-items: flex-start; background: linear-gradient(180deg, #f8faff, #fff); }
.mbio img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.mread { margin-top: 56px; }
.mread-h { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1e40af; margin: 0 0 16px; }
.mread-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rn { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none !important; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rn:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 18px 40px -18px rgba(30,64,175,.25); }
.rn img { width: 100%; height: 110px; object-fit: cover; display: block; }
.rnb { height: 110px; position: relative; display: flex; align-items: flex-end; padding: 12px; background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #3b82f6 100%); }
.rnb svg { position: absolute; top: 12px; right: 12px; opacity: .9; }
.rnb span { color: rgba(255,255,255,.88); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.rnd { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rnp { align-self: flex-start; background: #eff6ff; color: #1e40af; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.rnd b { font-size: 14px; line-height: 1.4; color: #111827; }
.rn:hover .rnd b { color: #1e40af; }
.rnd i { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 500; color: #1e40af; }
.mback { margin-top: 40px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #1e40af !important; text-decoration: none !important; padding: 10px 16px; border: 1px solid #e5e7eb; border-radius: 999px; }
.mback:hover { border-color: #bfdbfe; background: #f8faff; }
@media (max-width: 640px) {
  .mread-g { grid-template-columns: 1fr; }
  .rn { flex-direction: row; } .rn img, .rnb { width: 110px; height: auto; min-height: 96px; flex: none; } .rnb span { display: none; }
  .mcta { padding: 20px; } .mcta-b a { flex: 1 1 100%; text-align: center; }
}

/* An old cached components.js may still inject its Tailwind-styled #modal; never show it. */
#modal:not(.mm) { display: none !important; }
