/* Nucrea Shipping Map. Fonts are not bundled: the site must load Obviously Narrow,
   AdihausDIN Cn and Azo Sans (Elementor > Custom Fonts or an Adobe Fonts kit). */
.nsm {
	--nsm-black: #050606;
	--nsm-green: #DAFD02;
	--nsm-silver: #D1D0CF;
	--nsm-white: #FFFFFF;
	--nsm-display: "Obviously Narrow", "obviously-narrow", "Oswald", "Arial Narrow", Arial, sans-serif;
	--nsm-label: "AdihausDIN Cn", "AdihausDIN", "Oswald", "Arial Narrow", Arial, sans-serif;
	--nsm-body: "Azo Sans", "azo-sans-web", "Outfit", Arial, sans-serif;

	container-type: inline-size;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	color: var(--nsm-white);
	background:
		radial-gradient(circle at 68% 38%, rgba(218, 253, 2, .045), transparent 32%),
		linear-gradient(135deg, #050606 0%, #0B0D0D 58%, #020303 100%);
	border-left: 5px solid var(--nsm-green);
	overflow: hidden;
	font-family: var(--nsm-body);
	-webkit-font-smoothing: antialiased;
}
.nsm *, .nsm *::before, .nsm *::after { box-sizing: border-box; }
.nsm button { font: inherit; color: inherit; }

/* ---------- Header ---------- */
.nsm-head {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding: clamp(28px, 4.2cqi, 64px) clamp(20px, 3.4cqi, 56px) 0;
}
.nsm-head::after { /* concentric rings, top right */
	content: "";
	position: absolute;
	top: -9cqi; right: -3cqi;
	width: 19cqi; height: 19cqi;
	border-radius: 50%;
	border: 1px solid rgba(218, 253, 2, .17);
	background:
		radial-gradient(circle, transparent 38.5%, rgba(218, 253, 2, .17) 39%, transparent 39.6%),
		radial-gradient(circle, transparent 68%, rgba(218, 253, 2, .17) 68.5%, transparent 69.2%);
	pointer-events: none;
}
.nsm-eyebrow {
	font-family: var(--nsm-label);
	font-size: clamp(11px, .9cqi, 15px);
	letter-spacing: .2em;
	color: var(--nsm-green);
}
.nsm-tagline {
	margin-top: .35em;
	font-family: var(--nsm-display);
	font-weight: 700;
	font-size: clamp(16px, 1.7cqi, 28px);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.nsm .nsm-title {
	margin: clamp(14px, 2cqi, 34px) 0 0;
	padding: 0;
	font-family: var(--nsm-display) !important; /* theme forces a font on every h2 */
	font-weight: 700;
	font-size: clamp(30px, 4.4cqi, 76px);
	line-height: .95;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--nsm-white);
}
.nsm-origin-line {
	margin: .9em 0 0;
	font-family: var(--nsm-body);
	font-size: clamp(11px, .85cqi, 15px);
	letter-spacing: .1em;
	color: var(--nsm-silver);
}
.nsm-meta {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: .7em;
	flex-shrink: 0;
}
.nsm-meta__num {
	font-family: var(--nsm-display);
	font-weight: 700;
	font-size: clamp(26px, 2.6cqi, 46px);
	line-height: 1;
}
.nsm-meta__txt {
	font-family: var(--nsm-label);
	font-size: clamp(10px, .75cqi, 13px);
	letter-spacing: .18em;
	line-height: 1.6;
	color: var(--nsm-silver);
}

/* ---------- Map stage ---------- */
.nsm-stage { position: relative; margin-top: clamp(4px, 1cqi, 16px); }
.nsm-svg { display: block; width: 100%; height: auto; overflow: visible; }

.nsm-sphere { fill: #080A0A; stroke: var(--nsm-silver); stroke-opacity: .22; stroke-width: 2; }
.nsm-grat { fill: none; stroke: #637875; stroke-opacity: .18; stroke-width: 1.2; }
.nsm-land { fill: #171A1A; stroke: #4A5151; stroke-opacity: .68; stroke-width: 1.6; }

.nsm-halo, .nsm-line { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity .35s ease, stroke-width .35s ease; }
.nsm-halo { stroke: var(--nsm-green); stroke-width: 13; opacity: .035; }
.nsm-line { stroke-width: 3.2; stroke-dasharray: 10 14; animation: nsm-flow 2.2s linear infinite; }
.nsm-particle { fill: var(--nsm-green); transition: opacity .35s ease; }
.nsm-port { cursor: pointer; outline: none; transition: opacity .35s ease; }
.nsm-hit { fill: transparent; }
.nsm-leader { stroke: var(--nsm-silver); stroke-opacity: .42; stroke-width: 1.5; }
.nsm-ring { fill: var(--nsm-black); stroke: var(--nsm-green); stroke-width: 3; transition: stroke-width .2s ease; }
.nsm-dot { fill: var(--nsm-green); animation: nsm-pulse 1.8s ease-in-out infinite; }
.nsm-port:hover .nsm-ring, .nsm-port:focus-visible .nsm-ring, .nsm-port.is-focus .nsm-ring { stroke-width: 6; }
.nsm-port:focus-visible .nsm-ring { stroke: var(--nsm-white); }

.nsm-city, .nsm-country, .nsm-svg text { paint-order: stroke; stroke: var(--nsm-black); stroke-linejoin: round; }
.nsm-city { font-family: var(--nsm-display); font-size: 34px; font-weight: 700; letter-spacing: 2.4px; fill: var(--nsm-white); stroke-width: 10px; }
.nsm-country { font-family: var(--nsm-label); font-size: 22px; letter-spacing: 2.4px; fill: var(--nsm-silver); stroke-width: 8px; }

.nsm-origin { cursor: pointer; outline: none; }
.nsm-origin-core { fill: var(--nsm-green); animation: nsm-pulse 1.8s ease-in-out infinite; }
.nsm-origin:focus-visible circle:nth-child(3) { stroke: var(--nsm-white); }
.nsm-svg .nsm-origin text { stroke: none; }
.nsm-o-eyebrow { font-family: var(--nsm-label); font-size: 20px; letter-spacing: 3.5px; fill: var(--nsm-green); }
.nsm-o-title { font-family: var(--nsm-display); font-size: 40px; font-weight: 700; letter-spacing: 2px; fill: var(--nsm-white); }
.nsm-o-sub { font-family: var(--nsm-label); font-size: 19px; letter-spacing: 1.6px; fill: var(--nsm-silver); }

/* focus / isolate */
.nsm-route.is-focus .nsm-line { stroke: var(--nsm-green); stroke-width: 6px; opacity: 1; }
.nsm-route.is-focus .nsm-halo { opacity: .2; }
.nsm-route.is-focus .nsm-particle { opacity: 1; }
.nsm-route.is-muted .nsm-line, .nsm-port.is-muted { opacity: .065; }
.nsm-route.is-muted .nsm-halo { opacity: .008; }
.nsm-route.is-muted .nsm-particle { opacity: .02; }

.nsm.is-paused .nsm-line, .nsm.is-paused .nsm-dot, .nsm.is-paused .nsm-origin-core { animation-play-state: paused; }

@keyframes nsm-flow { to { stroke-dashoffset: -48; } }
@keyframes nsm-pulse { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

/* ---------- Route card ---------- */
.nsm-card {
	position: absolute;
	z-index: 6;
	top: 4%; right: 2.6%;
	width: clamp(210px, 20cqi, 330px);
	padding: 20px 22px 22px;
	background: rgba(5, 6, 6, .88);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(209, 208, 207, .18);
	border-left: 3px solid var(--nsm-green);
	box-shadow: 0 22px 80px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: translateX(22px);
	transition: opacity .24s ease, transform .24s ease;
	pointer-events: none;
}
.nsm-card[hidden] { display: block; visibility: hidden; }
.nsm-card.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.nsm-card__eyebrow { font-family: var(--nsm-label); font-size: clamp(10px, .75cqi, 13px); letter-spacing: .2em; color: var(--nsm-green); margin-bottom: 12px; }
.nsm-card__close {
	position: absolute; top: 10px; right: 12px;
	width: 30px; height: 30px; padding: 0;
	background: none; border: 0; cursor: pointer;
	font-size: 24px; line-height: 1; color: var(--nsm-silver);
}
.nsm-card strong { display: block; font-family: var(--nsm-display); font-weight: 700; font-size: clamp(22px, 2.2cqi, 40px); line-height: .96; letter-spacing: .02em; text-transform: uppercase; }
.nsm-card [data-nsm="country"] { display: block; margin-top: 8px; font-family: var(--nsm-label); font-size: clamp(10px, .8cqi, 14px); letter-spacing: .16em; text-transform: uppercase; color: var(--nsm-silver); }
.nsm-card__rule { height: 1px; margin: 18px 0 14px; background: linear-gradient(90deg, var(--nsm-green), rgba(218, 253, 2, 0)); }
.nsm-card p, .nsm-card small { margin: 0; font-family: var(--nsm-body); font-size: clamp(11px, .8cqi, 14px); }
.nsm-card small { display: block; margin-top: 5px; color: rgba(209, 208, 207, .62); letter-spacing: .04em; }

/* ---------- Controls + hint ---------- */
.nsm-controls {
	position: absolute; z-index: 7;
	right: 2.6%; bottom: 3%;
	display: flex; align-items: center; gap: 3px;
	padding: 5px;
	background: rgba(5, 6, 6, .8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(209, 208, 207, .16);
	border-radius: 999px;
}
.nsm-controls button {
	display: flex; align-items: center; gap: 7px;
	min-height: 34px; padding: 0 13px;
	background: none; border: 0; border-radius: 999px; cursor: pointer;
	font-family: var(--nsm-label); font-size: clamp(10px, .7cqi, 12px); letter-spacing: .1em;
	transition: background .18s ease;
}
.nsm-controls button:hover { background: rgba(218, 253, 2, .12); }
.nsm-controls__div { width: 1px; height: 18px; background: rgba(209, 208, 207, .2); }
.nsm-ico { color: var(--nsm-green); font-size: 1.15em; }
.nsm-hint {
	position: absolute; left: clamp(20px, 3.4cqi, 56px); bottom: 3.6%;
	display: flex; align-items: center; gap: 10px;
	font-family: var(--nsm-label); font-size: clamp(10px, .7cqi, 12px); letter-spacing: .16em;
	color: var(--nsm-silver); opacity: .8;
}
.nsm-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--nsm-green); box-shadow: 0 0 10px rgba(218, 253, 2, .75); }

.nsm-port:focus-visible, .nsm-origin:focus-visible { outline: none; }
.nsm-controls button:focus-visible, .nsm-card__close:focus-visible, .nsm-item:focus-visible { outline: 2px solid var(--nsm-green); outline-offset: 2px; }

/* ---------- Port list ---------- */
.nsm-list {
	margin: clamp(12px, 1.6cqi, 26px) clamp(20px, 3.4cqi, 56px) 0;
	padding-top: clamp(16px, 1.6cqi, 26px);
	border-top: 1px solid rgba(209, 208, 207, .22);
}
.nsm-list__label { font-family: var(--nsm-label); font-size: clamp(11px, .8cqi, 14px); letter-spacing: .22em; color: var(--nsm-green); }
.nsm-list__items {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	margin: clamp(10px, 1.2cqi, 20px) 0 0; padding: 0;
	list-style: none;
}
.nsm-list__items li { margin: 0; padding: 0; }
.nsm-list__items li + li .nsm-item { border-left: 1px solid rgba(209, 208, 207, .18); }
.nsm-item {
	display: flex; flex-direction: column; gap: .3em;
	width: 100%; padding: 4px 10px 6px 0; margin: 0;
	text-align: left; background: none; border: 0; border-radius: 0; cursor: pointer;
	transition: opacity .25s ease;
}
.nsm-list__items li + li .nsm-item { padding-left: clamp(8px, 1cqi, 18px); }
.nsm-item__id { font-family: var(--nsm-label); font-weight: 700; font-size: clamp(11px, .8cqi, 15px); letter-spacing: .12em; color: var(--nsm-green); }
.nsm-item__city { font-family: var(--nsm-display); font-weight: 700; font-size: clamp(12px, 1cqi, 19px); letter-spacing: .03em; line-height: 1.05; }
.nsm-item__country { font-family: var(--nsm-label); font-size: clamp(10px, .7cqi, 13px); letter-spacing: .12em; color: var(--nsm-silver); }
.nsm-foot > span:last-child { white-space: nowrap; }
.nsm-item:hover .nsm-item__city, .nsm-item[aria-pressed="true"] .nsm-item__city { color: var(--nsm-green); }
.nsm.has-focus .nsm-item[aria-pressed="false"] { opacity: .4; }

/* ---------- Footer ---------- */
.nsm-foot {
	display: flex; justify-content: space-between; gap: 24px;
	padding: clamp(18px, 2cqi, 34px) clamp(20px, 3.4cqi, 56px) clamp(20px, 2.4cqi, 40px);
	font-family: var(--nsm-body); font-size: clamp(9px, .62cqi, 12px); letter-spacing: .08em;
	color: rgba(209, 208, 207, .62);
}

/* ---------- Mobile: port list only ---------- */
@container (max-width: 760px) {
	.nsm-head::after, .nsm-stage, .nsm-foot__note { display: none; }
	.nsm-meta { display: none; }
	.nsm-list { margin-top: 26px; }
	.nsm-list__items { grid-template-columns: 1fr; margin-top: 8px; }
	.nsm-list__items li + li .nsm-item { border-left: 0; }
	.nsm-list__items li + li { border-top: 1px solid rgba(209, 208, 207, .14); }
	.nsm-item {
		display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 12px;
		padding: 14px 0 !important; cursor: default; pointer-events: none;
	}
	.nsm-item__city { font-size: 20px; }
	.nsm-item__country { font-size: 12px; text-align: right; }
	.nsm-item__id { font-size: 13px; }
	.nsm-foot { justify-content: flex-start; }
}

/* Medium widths: two rows of five so city names stay readable */
@container (min-width: 761px) and (max-width: 1100px) {
	.nsm-list__items { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 16px; }
	.nsm-list__items li:nth-child(6) .nsm-item { border-left: 0; padding-left: 0; }
	.nsm-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.nsm-line, .nsm-dot, .nsm-origin-core { animation: none; }
}

/* ---------- Site grid: match the 1240px boxed column used by the other Nucrea sections ---------- */
.nsm {
	--nsm-col: 1240px;
	--nsm-gutter: 24px;
	border-left: 0;
	padding: 96px max(var(--nsm-gutter), calc((100% - var(--nsm-col)) / 2));
}
.nsm-head, .nsm-foot { padding-left: 0; padding-right: 0; }
.nsm-head { padding-top: 0; }
.nsm-head::after { display: none; }
.nsm-list { margin-left: 0; margin-right: 0; }
.nsm-foot { padding-bottom: 0; }
.nsm-eyebrow, .nsm-list__label { font-size: 12px; font-weight: 800; letter-spacing: .19em; }
.nsm .nsm-title { font-size: clamp(36px, 4.2vw, 64px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.nsm-tagline { font-size: clamp(16px, 1.4vw, 22px); }
.nsm-hint { left: 0; }
.nsm-controls, .nsm-card { right: 0; }
@media (max-width: 767px) {
	.nsm { padding-top: 72px; padding-bottom: 72px; }
}
/* Map labels sized for the 1240px column */
.nsm-city { font-size: 38px; }
.nsm-country { font-size: 26px; }
.nsm-o-eyebrow { font-size: 24px; }
.nsm-o-title { font-size: 44px; }
.nsm-o-sub { font-size: 23px; }
