/* NitiMarg P5-B shared UI: watch panel, share popover, tour overlay, spark */
[data-nm-watch]{cursor:pointer;font:700 11px"JetBrains Mono",monospace;color:#9fb0c6;background:#0d121d;border:1px solid #1d2636;border-radius:99px;padding:5px 13px;transition:.2s}
[data-nm-watch]:hover{border-color:#2dd4bf66;color:#2dd4bf}
[data-nm-watch].on{color:#c9a24b;border-color:#c9a24b66;background:#20190d}
[data-nm-share]{cursor:pointer;font:700 11px"JetBrains Mono",monospace;color:#9fb0c6;background:#0d121d;border:1px solid #1d2636;border-radius:99px;padding:5px 13px;transition:.2s;text-decoration:none;display:inline-block}
[data-nm-share]:hover{border-color:#2dd4bf66;color:#2dd4bf}
#nmWatchBadge{display:inline-block;min-width:14px;font:800 9px "JetBrains Mono",monospace;color:#0a0f1a;background:#c9a24b;border-radius:99px;padding:1px 5px;margin-left:2px;vertical-align:top}
#nmWatchBadge:empty{display:none}
.nmw{position:fixed;top:52px;right:10px;z-index:90;width:320px;max-width:calc(100vw - 20px);background:#0d1420;border:1px solid #1d2636;border-radius:14px;box-shadow:0 12px 40px #000a;padding:10px}
.nmw-h{font:800 10px"JetBrains Mono",monospace;color:#c9a24b;letter-spacing:1.5px;padding:4px 6px 8px}
.nmw-e{font-size:12px;color:#9fb0c6;padding:8px 6px;line-height:1.6}
.nmw-r{display:flex;gap:8px;align-items:center;padding:8px 6px;border-top:1px solid #131a28;text-decoration:none;color:#e8edf5;font-size:12.5px}
.nmw-r b{font-family:"JetBrains Mono",monospace;width:36px;color:#2dd4bf}
.nmw-r span:nth-child(2){font-family:"JetBrains Mono",monospace;font-weight:700}
.nmw-r .up{color:#2dd4bf;font-family:"JetBrains Mono",monospace;font-size:11px}
.nmw-r .dn{color:#e06565;font-family:"JetBrains Mono",monospace;font-size:11px}
.nmw-r .flat{color:#7e8fa6;font-family:"JetBrains Mono",monospace;font-size:11px}
.nmw-g{margin-left:auto;font-size:10px;color:#7e8fa6;font-family:"JetBrains Mono",monospace}
.nmsh{position:absolute;z-index:95;width:300px;background:#0d1420;border:1px solid #1d2636;border-radius:14px;box-shadow:0 12px 40px #000a;padding:12px}
.nmsh-h{font:800 10px"JetBrains Mono",monospace;color:#2dd4bf;letter-spacing:1.5px;margin-bottom:10px}
.nmsh-b{display:block;text-align:center;font:700 12.5px Inter,system-ui;color:#06110d;background:#2dd4bf;border-radius:10px;padding:10px;text-decoration:none;margin-bottom:8px}
.nmsh-b.alt{background:#1d2636;color:#e8edf5}
.nmsh-c{display:flex;gap:6px}
.nmsh-c input{flex:1;min-width:0;background:#0a0f1a;border:1px solid #1d2636;color:#9fb0c6;border-radius:8px;font:11px"JetBrains Mono",monospace;padding:7px 9px}
.nmsh-c button{background:#1d2636;color:#e8edf5;border:0;border-radius:8px;font:600 11px Inter;padding:7px 11px;cursor:pointer}
.nmtour{position:fixed;inset:0;z-index:100;background:rgba(4,7,12,.55);backdrop-filter:blur(1px)}
.nmtour-c{position:absolute;width:300px;background:#0d1420;border:1px solid #2dd4bf55;border-radius:14px;padding:14px;box-shadow:0 14px 50px #000c}
.nmtour-n{font:800 10px"JetBrains Mono",monospace;color:#c9a24b;letter-spacing:2px;margin-bottom:6px}
.nmtour-t{font-size:13px;color:#e8edf5;line-height:1.55}
.nmtour-b{display:flex;gap:8px;margin-top:12px}
.nmt-x{background:none;border:0;color:#7e8fa6;font:600 11px Inter;cursor:pointer}
.nmt-n{margin-left:auto;background:#2dd4bf;color:#06110d;font:700 12px Inter;border:0;border-radius:8px;padding:8px 14px;cursor:pointer}
.nmt-hi{position:relative;z-index:101;outline:2px solid #2dd4bf;outline-offset:4px;border-radius:8px}
.nm-spark{animation:nmsp 1.2s ease-in-out infinite}
@keyframes nmsp{0%,100%{box-shadow:0 0 0 0 #2dd4bf00}50%{box-shadow:0 0 0 6px #2dd4bf33}}
.nmtip{position:absolute;z-index:80;background:#0d1420;border:1px solid #2dd4bf55;color:#e8edf5;font-size:12px;border-radius:10px;padding:9px 12px;max-width:250px;box-shadow:0 8px 30px #000a;transition:opacity .8s;line-height:1.5}
.nmtip a{color:#2dd4bf;font-weight:700}
.nmtip.fade{opacity:0}
canvas.nm-amb{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.nm-ambwrap{position:relative;overflow:hidden}
/* rails */
.nmrails{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:6px}
.nmrail{background:#0d121d;border:1px solid #1d2636;border-radius:12px;padding:12px;text-decoration:none;color:#e8edf5;display:block;transition:.2s}
.nmrail:hover{border-color:#2dd4bf66;transform:translateY(-2px)}
.nmrail .k{font:700 9px"JetBrains Mono",monospace;color:#c9a24b;letter-spacing:1.2px}
.nmrail .t{font-size:12px;color:#9fb0c6;margin-top:5px;line-height:1.5}
.nmrail .g{font:600 10px"JetBrains Mono",monospace;color:#2dd4bf;margin-top:7px}
@media(max-width:700px){.nmrails{grid-template-columns:repeat(2,1fr)}}

/* ===== M2 UX polish (11 Nov 2026). Dark pages only: every rule is scoped to body:not(.nm), so the light (nm-shell) pages are untouched. ===== */
/* top menu: one look and one behaviour on every dark page */
body:not(.nm) nav:has(> a[href="/race/"]){scrollbar-width:none}
body:not(.nm) nav:has(> a[href="/race/"])::-webkit-scrollbar{display:none}
body:not(.nm) nav:has(> a[href="/race/"]) > :is(a,button,span){display:inline-flex;align-items:center;flex:0 0 auto;white-space:nowrap;min-height:32px;font-size:12px;line-height:1.2;cursor:pointer}
body:not(.nm) nav:has(> a[href="/race/"]) > a:not([aria-current]):not([style*="color"]):not(.on):not(.here){color:#b4c0d3}
body:not(.nm) nav:has(> a[href="/race/"]) > [aria-current="page"]:not([style*="color"]){color:#2dd4bf;border-color:rgba(45,212,191,.55)}
@media (max-width:899px){
 body:not(.nm) nav:has(> a[href="/race/"]){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;gap:6px!important;padding:8px 28px 8px 12px!important;max-width:100vw;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
 body:not(.nm) .wrap > nav:has(> a[href="/race/"]){margin-left:-14px;margin-right:-14px;max-width:none}
 body:not(.nm) nav:has(> a[href="/race/"]) > :is(a,button,span){min-height:44px;font-size:13px;padding-top:0!important;padding-bottom:0!important}
 body:not(.nm) nav:has(> a[href="/race/"]) > a[style*="margin-left:auto"]{margin-left:0!important}
}
/* skip link + slim legal footer added by nm.js */
.nm2-skip{position:absolute;left:-999px;top:8px;z-index:200;background:#fff;color:#0a0e17;padding:10px 16px;border-radius:8px;font:600 14px system-ui,sans-serif;text-decoration:none}
.nm2-skip:focus{left:8px}
.nm2-ft{max-width:1120px;margin:28px auto 0;padding:18px 16px 28px;border-top:1px solid #1f2940;color:#9aa8bd;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
.nm2-ft nav{display:flex;flex-wrap:wrap;gap:4px 14px;margin-bottom:8px}
.nm2-ft a{color:#c8d3e3;text-decoration:none;display:inline-flex;align-items:center;min-height:32px}
.nm2-ft a:hover{color:#2dd4bf;text-decoration:underline}
.nm2-ft p{margin:4px 0}
/* readable text and tap sizes */
body:not(.nm) [style*="color:#55637a"]{color:#8a97ac!important}
body:not(.nm) .oevi .el,body:not(.nm) .osrc{color:#8a97ac}
body:not(.nm) .gapproof summary{display:flex;align-items:center;min-height:36px;font-size:12px}
body:not(.nm) .tabs > button.tab[data-sec]{min-height:36px;font-size:12px}
body:not(.nm) .jump a{display:inline-flex;align-items:center;min-height:36px;font-size:12px}
body:not(.nm) .tile .tgo{display:inline-flex;align-items:center;min-height:32px;padding:0 4px}
body:not(.nm) .tile .info{min-width:32px;min-height:32px}
@media (max-width:899px){body:not(.nm) .tabs > button.tab[data-sec],body:not(.nm) .jump a{min-height:44px}}
/* Live 50 tiles: 2 per row on small phones instead of 3 squeezed ones */
@media (max-width:480px){
 body:not(.nm) .grid:has(> .tile[data-iso]){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body:not(.nm) .grid > .tile[data-iso] .tgdp{font-size:20px}
 body:not(.nm) .grid > .tile[data-iso] .tname{font-size:13px}
 body:not(.nm) .grid > .tile[data-iso] .chip{font-size:11px;padding:3px 6px}
}
/* GDP Race: the 1680 x 1050 ocean scrolls instead of being cut off on phones and laptops */
html:has(body > .nm2-race){overflow:auto}
body:has(> .nm2-race){width:auto!important;height:auto!important;min-height:100vh;overflow-x:hidden!important;overflow-y:auto!important}
.nm2-race{overflow-x:auto;overflow-y:hidden;max-width:100vw;-webkit-overflow-scrolling:touch}
.nm2-race > svg{display:block}
.nm2-race-hint{display:none;margin:8px 12px 0;font:600 13px system-ui,sans-serif;color:#b4c0d3}
@media (max-width:1679px){.nm2-race-hint{display:block}}
body:has(> .nm2-race) #card{max-width:calc(100vw - 20px)}
@media (max-width:600px){body:has(> .nm2-race) #card{left:10px!important;top:64px!important}}
.nm2-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* M2 round 2: faint grey text was too dim to read on the dark background */
html:has(> body:not(.nm)){--dim:#8d9bb1}
body:not(.nm) .note{color:#97a5ba}
body:not(.nm) a.tabbtn[href^="https://t.me/"]{display:inline-flex!important;align-items:center;min-height:44px;padding:0 18px;border:1px solid #c9a24b;border-radius:99px;color:#f1d48a;font-weight:700;text-decoration:none;background:rgba(201,162,75,.12)}
body:not(.nm) .nm > a[href^="/country/"]{display:inline-flex;align-items:center;min-height:32px}
body:not(.nm) .nsrc a{display:inline-flex;align-items:center;min-height:32px}
/* ===== M3 (11 Nov 2026) ===== */
/* honest data freshness + gentle stale notice */
.nm3-fresh{margin:6px 0;color:#b4c0d3}
.nm3-fresh b{color:#e2e8f0}
.nm3-fresh a,.nm3-how{color:#5eead4;text-decoration:underline;text-underline-offset:2px}
.nm3-stale{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:8px auto;max-width:1120px;padding:10px 14px;border:1px solid rgba(232,179,75,.45);border-radius:10px;background:rgba(232,179,75,.10);color:#f3dca6;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.nm3-stale b{color:#ffe7b0}
.nm3-stale button{flex:none;min-height:36px;min-width:44px;border-radius:99px;border:1px solid rgba(232,179,75,.6);background:transparent;color:#ffe7b0;font:600 13px system-ui,sans-serif;cursor:pointer}
body:not(.nm) .nm3-asof{margin:10px 0 6px;font:12px/1.5 system-ui,sans-serif;color:#b4c0d3}
body:not(.nm) .nm3-asof b{color:#e2e8f0}
body:not(.nm) .chip.mkt b.nf{color:#b4c0d3;font-weight:600}
body:not(.nm) .nm3-howp{margin:8px 0 0;font:13px system-ui,sans-serif}
body:not(.nm) .nm3-how{display:inline-flex;align-items:center;min-height:32px;white-space:nowrap}
body:not(.nm) .nm3-wa{display:inline-flex;align-items:center;min-height:36px}
body:not(.nm) .nm3-printrow{margin:10px 0 0}
body:not(.nm) .nm3-print{min-height:36px;cursor:pointer;background:transparent}
/* tiny data labels: lift the measured 8 to 10.5 px labels on key pages to 11 px (selectors come from the M3 audit, so nothing is made smaller) */
body:not(.nm) .t5 .iso,body:not(.nm) .t5 .sub,body:not(.nm) .t5 .sub span,body:not(.nm) .door .go,body:not(.nm) .nrow .nsec,body:not(.nm) .nrow .nsc,
body:not(.nm) .sec > .shead,body:not(.nm) .panel2 > .shead,body:not(.nm) .tcard .tag,body:not(.nm) header.hero > .kick,body:not(.nm) .wlive .wlab,body:not(.nm) .heat .heatlab,
body:not(.nm) .tile .trank,body:not(.nm) .tile .info,body:not(.nm) .tile .tgo,body:not(.nm) .nmrail .k,body:not(.nm) .nmrail .g,
body:not(.nm) main.wrap > .src,body:not(.nm) main.wrap > .src b,body:not(.nm) main.wrap > .src span,
body:not(.nm) .pcard .day,body:not(.nm) .wrap table tbody th,body:not(.nm) .wrap > .tick,body:not(.nm) header.hero > .tick,
body:not(.nm) .verdict .tag,body:not(.nm) .wrap > .foot,body:not(.nm) .metric .l,
body:not(.nm) .nc .nb,body:not(.nm) .nc .nb span,body:not(.nm) .nc .nsrc,body:not(.nm) .nc .nsrc a,body:not(.nm) .nc .nsrc b,body:not(.nm) .wrap > .fine,body:not(.nm) .wrap > .fine span,
body:not(.nm) .gapcard .gtag,body:not(.nm) .opp .otag,body:not(.nm) .oevi .el,body:not(.nm) .opp .osrc,body:not(.nm) h2 .secbadge,
body:not(.nm) .wrap > div[style*="10.5px"]{font-size:11px!important}
body:not(.nm) details.gapproof > div,body:not(.nm) details.gapproof > div > span,body:not(.nm) details.gapproof > div > b{font-size:11px!important}
body:not(.nm) #card .chip b{font-size:10px;letter-spacing:.04em}
/* rules that need the page's own size: only lift where that page set it below 11 px */
body:not(.nm) footer.nm2-ft nav a{font-size:13px!important}
body:not(.nm):has(.nc) .wrap > .kick,body:not(.nm):has(.secbadge) .wrap > .kick{font-size:11px!important}
@media (max-width:640px){body:not(.nm) .pillars .pbar{font-size:11px}}
body:not(.nm) #card .src{font-size:11px}
/* print-friendly country pages (and any dark page): white paper, dark ink, no menus or buttons */
@media print{
 body:not(.nm){background:#fff!important;color:#111!important}
 body:not(.nm) *{background:transparent!important;color:#111!important;box-shadow:none!important;text-shadow:none!important}
 body:not(.nm) nav,html body:not(.nm) nav:has(> a[href="/race/"]),body:not(.nm) .nm2-skip,body:not(.nm) .nm3-stale,body:not(.nm) .nm3-printrow,body:not(.nm) button,body:not(.nm) .copyrow,body:not(.nm) .nmrails,body:not(.nm) canvas,body:not(.nm) #nmWatchPanel,body:not(.nm) #nmSharePop,body:not(.nm) .toast{display:none!important}
 body:not(.nm) a{text-decoration:underline}
 body:not(.nm) .wrap{max-width:none!important}
 body:not(.nm) section,body:not(.nm) .metric,body:not(.nm) table{break-inside:avoid}
}
body:not(.nm) .grid > .tile[data-iso] .chip,body:not(.nm) .grid > .tile[data-iso] .chip b{font-size:11px}
/* hero kicker pill: when it wraps on a phone, keep it a neat rounded box */
body:not(.nm) header.hero > .kick{display:inline-block;max-width:100%;line-height:1.5;border-radius:14px}
/* M3 v2 (11 Nov 2026): menu B is the default. Keep the dark top menu on one line on small laptops too
   (it used to wrap to two lines between 900 and about 1180 px); extra items scroll sideways like on phones. */
@media (min-width:900px) and (max-width:1279px){
 body:not(.nm) nav:has(> a[href="/race/"]){flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;gap:6px!important;max-width:100vw;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
 body:not(.nm) nav:has(> a[href="/race/"]) > :is(a,button,span){flex:0 0 auto}
}
body:not(.nm) .nm3-more{margin:8px 0 0;font-size:13px;color:#9aa8bd}
body:not(.nm) .nm3-more a{color:#cfd8e6;display:inline-block;min-height:32px;line-height:32px}
/* M5 (11 Nov 2026): link card to the full scored list on /opportunities/ */
.nm5-all{display:flex;flex-direction:column;gap:2px;margin:10px 0 16px;padding:12px 14px;border:1px solid rgba(45,212,191,.45);border-radius:14px;background:rgba(45,212,191,.07);color:#e8edf7;text-decoration:none;max-width:760px}
.nm5-all b{color:#2dd4bf;font-size:15px}.nm5-all span{font-size:13.5px;color:#b8c4d8}
.nm5-all:hover{border-color:#2dd4bf}
