/*
 * Opportunita — Countries index V2 (Release 1.1.48).
 *
 * The public country catalogue at /countries/: a coverage choropleth with a
 * ranking rail, a spotlight scroller, a filterable card grid, two analysis
 * panels and a band of ready-made searches. Scoped entirely to `.op-cx2` so
 * nothing here can reach another public template.
 *
 * Theming: one role-token family (`--cx-*`) declared three times — Light on
 * the bare class, Dim and Dark-Contrast under `html[data-op-theme=…]`. The
 * values are the ones the universities index and the single-university page
 * already use, which is what lets the three catalogue pages read as one
 * system in all three appearances. Components read tokens only; no literal
 * colour outside the theme blocks.
 *
 * Layout: container queries (`container-type: inline-size` on the root), so
 * the page answers to its own width rather than to the device. Breakpoints
 * come from content: the atlas rail unstacks at 1080px — below that a 336px
 * rail beside a map leaves the map too narrow to read — and the card grid
 * drops to one column at 720px.
 *
 * The map component (`op-atlas`) reads the same `--cx-*` tokens from this
 * scope, so it recolours with the page and never carries a palette of its own.
 */

.op-cx2 {
	/* ---- Type ---- */
	--op-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	/* ---- Light (default) — site slate family ---- */
	--cx-bg: var(--op-slate-50, #f8fafc);
	--cx-panel: var(--op-white, #ffffff);
	--cx-pop: #f1f5f9;
	--cx-ink: var(--op-slate-900, #0f172a);
	--cx-t1: var(--op-slate-700, #334155);
	--cx-t2: var(--op-slate-700, #334155);
	--cx-t3: var(--op-slate-600, #475569);
	--cx-t4: var(--op-slate-600, #475569);
	--cx-t5: var(--op-slate-500, #64748b);
	--cx-t6: var(--op-slate-500, #64748b);
	--cx-ac: var(--op-teal-700, #0f766e);
	--cx-ac2: #115e59;
	--cx-onac: #ffffff;
	--cx-acw: rgba(15, 118, 110, 0.07);
	--cx-acb: rgba(15, 118, 110, 0.25);
	--cx-rose: var(--op-rose-600, #e11d48);
	--cx-onrose: #ffffff;
	--cx-rosew: rgba(225, 29, 72, 0.06);
	--cx-roseb: rgba(225, 29, 72, 0.22);
	--cx-amber: var(--op-amber-700, #b45309);
	--cx-amberw: rgba(180, 83, 9, 0.06);
	--cx-amberb: rgba(180, 83, 9, 0.22);
	--cx-ind: var(--op-indigo-700, #4338ca);
	--cx-indw: rgba(67, 56, 202, 0.06);
	--cx-indb: rgba(67, 56, 202, 0.20);
	--cx-wa03: #ffffff;
	--cx-wa05: rgba(15, 23, 42, 0.04);
	--cx-wa06: #eef2f6;
	--cx-wa08: var(--op-slate-200, #e2e8f0);
	--cx-wa10: #d8dfe8;
	--cx-wa14: var(--op-slate-300, #cbd5e1);
	--cx-wa22: #a9b6c6;
	--cx-sh: 0 10px 28px rgba(15, 23, 42, 0.08);
	--cx-shxs: 0 1px 2px rgba(15, 23, 42, 0.05);
	--cx-dot: rgba(15, 23, 42, 0.12);
	--cx-imgline: rgba(0, 0, 0, 0.10);

	/*
	 * Glass chips sitting on card media. They invert in light: a dark scrim
	 * chip over a bright photo is unreadable in a light page, so the light
	 * theme uses a near-white plate with navy text instead.
	 */
	--cx-chip: rgba(255, 255, 255, 0.90);
	--cx-chipbd: rgba(21, 32, 43, 0.14);
	--cx-chiptx: #15202b;

	/* Sticky chrome offsets — track the global header height. */
	--cx-top: var(--opb-header-height, 80px);

	container-type: inline-size;
	background: var(--cx-bg);
	color: var(--cx-t2);
	font-family: var(--op-font-sans);
	-webkit-font-smoothing: antialiased;
}

/* ---- Dim — site navy family ---- */
html[data-op-theme="dim"] .op-cx2 {
	--cx-bg: #020712;
	--cx-panel: #08111f;
	--cx-pop: #0c1626;
	--cx-ink: #f2f7fb;
	--cx-t1: #e0e8f0;
	--cx-t2: #c3d0dd;
	--cx-t3: #9fb2c7;
	--cx-t4: #94a8bd;
	--cx-t5: #7890aa;
	--cx-t6: #7890aa;
	--cx-ac: #2dd4bf;
	--cx-ac2: #5eead4;
	--cx-onac: #06231f;
	--cx-acw: rgba(45, 212, 191, 0.10);
	--cx-acb: rgba(45, 212, 191, 0.26);
	--cx-rose: #fb7185;
	--cx-onrose: #2b0a12;
	--cx-rosew: rgba(251, 113, 133, 0.10);
	--cx-roseb: rgba(251, 113, 133, 0.28);
	--cx-amber: #fbbf24;
	--cx-amberw: rgba(251, 191, 36, 0.10);
	--cx-amberb: rgba(251, 191, 36, 0.26);
	--cx-ind: #a5b4fc;
	--cx-indw: rgba(165, 180, 252, 0.10);
	--cx-indb: rgba(165, 180, 252, 0.26);
	--cx-wa03: rgba(255, 255, 255, 0.03);
	--cx-wa05: rgba(255, 255, 255, 0.05);
	--cx-wa06: rgba(255, 255, 255, 0.06);
	--cx-wa08: rgba(255, 255, 255, 0.08);
	--cx-wa10: rgba(255, 255, 255, 0.10);
	--cx-wa14: rgba(255, 255, 255, 0.14);
	--cx-wa22: rgba(255, 255, 255, 0.22);
	--cx-sh: 0 10px 30px rgba(0, 0, 0, 0.42);
	--cx-shxs: 0 1px 2px rgba(0, 0, 0, 0.30);
	--cx-dot: rgba(148, 163, 184, 0.16);
	--cx-imgline: rgba(255, 255, 255, 0.10);
	--cx-chip: rgba(8, 14, 24, 0.58);
	--cx-chipbd: rgba(255, 255, 255, 0.18);
	--cx-chiptx: #ffffff;
}

/* ---- Dark Contrast — site black/charcoal family ---- */
html[data-op-theme="dark-contrast"] .op-cx2 {
	--cx-bg: #000000;
	--cx-panel: #16161a;
	--cx-pop: #1d1d20;
	--cx-ink: #f9fafb;
	--cx-t1: #e5e7eb;
	--cx-t2: #d1d5db;
	--cx-t3: #c3c8cf;
	--cx-t4: #b6bcc4;
	--cx-t5: #9ca3af;
	--cx-t6: #9ca3af;
	--cx-ac: #2dd4bf;
	--cx-ac2: #5eead4;
	--cx-onac: #061412;
	--cx-acw: rgba(45, 212, 191, 0.10);
	--cx-acb: rgba(45, 212, 191, 0.28);
	--cx-rose: #fda4af;
	--cx-onrose: #1a0509;
	--cx-rosew: rgba(253, 164, 175, 0.10);
	--cx-roseb: rgba(253, 164, 175, 0.30);
	--cx-amber: #fcd34d;
	--cx-amberw: rgba(252, 211, 77, 0.10);
	--cx-amberb: rgba(252, 211, 77, 0.28);
	--cx-ind: #a5b4fc;
	--cx-indw: rgba(165, 180, 252, 0.10);
	--cx-indb: rgba(165, 180, 252, 0.28);
	--cx-wa03: rgba(255, 255, 255, 0.04);
	--cx-wa05: rgba(255, 255, 255, 0.06);
	--cx-wa06: rgba(255, 255, 255, 0.07);
	--cx-wa08: rgba(255, 255, 255, 0.10);
	--cx-wa10: rgba(255, 255, 255, 0.12);
	--cx-wa14: rgba(255, 255, 255, 0.16);
	--cx-wa22: rgba(255, 255, 255, 0.22);
	--cx-sh: 0 10px 30px rgba(0, 0, 0, 0.55);
	--cx-shxs: 0 1px 2px rgba(0, 0, 0, 0.40);
	--cx-dot: rgba(255, 255, 255, 0.10);
	--cx-imgline: rgba(255, 255, 255, 0.10);
	--cx-chip: rgba(10, 10, 12, 0.62);
	--cx-chipbd: rgba(255, 255, 255, 0.20);
	--cx-chiptx: #ffffff;
}

/* The compact header height kicks in with the burger menu. */
@media (max-width: 1180px) {
	.op-cx2 {
		--cx-top: var(--opb-header-height-compact, 68px);
	}
}

/* ============================================================
   Base
   ============================================================ */
.op-cx2 *,
.op-cx2 *::before,
.op-cx2 *::after { box-sizing: border-box; }
.op-cx2 a { text-decoration: none; color: inherit; }
.op-cx2 a:hover { color: var(--cx-ac); }
.op-cx2 p { margin: 0; }
.op-cx2 h1,
.op-cx2 h2,
.op-cx2 h3 { margin: 0; color: var(--cx-ink); }
.op-cx2 button,
.op-cx2 input,
.op-cx2 select { font-family: var(--op-font-sans); }
.op-cx2 input::placeholder { color: var(--cx-t6); }
.op-cx2 img { max-width: 100%; }

/*
 * The page frame is deliberately the SAME box as Browse Opportunities
 * (`.opbv-container`) and the universities index: 1200px content, 28px side
 * padding, 16px below the narrow breakpoint. The three listings sit next to
 * each other in the main navigation, so a different gutter reads as a broken
 * page rather than as a different page. The handoff's own 1240/40/26/16
 * numbers are overridden here for that reason, and only here — every inner
 * measurement still comes from the spec.
 */
.op-cx2 .cx-pad { padding-inline: 28px; }
/*
 * 1144, not 1200. Browse Opportunities is the reference frame and its
 * `.opbv-container` is `max-width:1200` with the 28px gutter INSIDE that box,
 * so its usable content is 1144 wide and starts 148px in on a 1440 screen.
 * These pages carry the gutter on the full-bleed parent instead, so the inner
 * wrap has to be 1200 - 2x28 for the text, the breadcrumb and the headings to
 * land on exactly the same line as Browse at every width.
 */
.op-cx2 .cx-wrap { max-width: 1144px; margin-inline: auto; width: 100%; }
.op-cx2 .cx-hidden { display: none !important; }

/*
 * `hidden` has to win. Every panel this page toggles — the selection card, the
 * active-filter tray, the empty state, the grid itself — carries a `display`
 * of its own from a class, and a bare `[hidden]` is only `display: none` at
 * user-agent specificity, so without this the six hidden selection cards all
 * render at once.
 */
.op-cx2 [hidden] { display: none !important; }

.op-cx2 .cx-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.op-cx2 .cx-h1 {
	font-size: 46px;
	line-height: 1.05;
	letter-spacing: -0.032em;
	font-weight: 700;
	text-wrap: pretty;
}

.op-cx2 .cx-secttl {
	font-size: 27px;
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: pretty;
}

.op-cx2 .cx-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cx-ac);
}

.op-cx2 .cx-lead {
	font-size: 16.5px;
	line-height: 1.68;
	color: var(--cx-t4);
	text-wrap: pretty;
}

.op-cx2 .cx-mono { font-family: var(--op-font-mono); }
.op-cx2 .cx-num { font-variant-numeric: tabular-nums; }

/* Flags: the platform's own image, or the ISO code when there is no file. */
.op-cx2 .cx-flag {
	display: inline-block;
	flex: 0 0 auto;
	width: 16px;
	height: 11px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px var(--cx-imgline);
}

.op-cx2 .cx-flag--iso {
	display: inline-grid;
	place-items: center;
	width: auto;
	min-width: 20px;
	height: 13px;
	padding-inline: 3px;
	font-family: var(--op-font-mono);
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cx-t5);
	background: var(--cx-wa06);
	box-shadow: 0 0 0 1px var(--cx-wa08);
}

.op-cx2 .cx-flag--lg { width: 26px; height: 18px; }
.op-cx2 .cx-flag--lg.cx-flag--iso { min-width: 28px; height: 18px; font-size: 10px; }

/* ============================================================
   Buttons and shared controls
   ============================================================ */
.op-cx2 .cx-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	border-radius: 12px;
	padding: 12px 15px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 170ms ease, border-color 170ms ease, filter 170ms ease, transform 170ms ease;
}

.op-cx2 .cx-cta svg { flex: 0 0 auto; }
.op-cx2 .cx-cta__arw { margin-inline-start: auto; }

.op-cx2 .cx-cta--quiet {
	background: var(--cx-wa08);
	border: 1px solid var(--cx-wa14);
	color: var(--cx-ink);
}

.op-cx2 .cx-cta--quiet:hover {
	background: var(--cx-wa14);
	border-color: var(--cx-wa22);
	color: var(--cx-ink);
}

.op-cx2 .cx-cta--line {
	background: transparent;
	border: 1px solid var(--cx-wa14);
	color: var(--cx-t1);
	font-weight: 600;
}

.op-cx2 .cx-cta--line:hover {
	background: var(--cx-wa05);
	border-color: var(--cx-wa22);
	color: var(--cx-t1);
}

.op-cx2 .cx-cta--rose {
	background: var(--cx-rose);
	border: 1px solid var(--cx-rose);
	color: var(--cx-onrose);
}

.op-cx2 .cx-cta--rose:hover {
	filter: brightness(1.08);
	color: var(--cx-onrose);
}

.op-cx2 .cx-cta:active { transform: scale(0.97); }

.op-cx2 .cx-iconbtn {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	border: 1px solid var(--cx-wa08);
	background: var(--cx-wa05);
	color: var(--cx-t3);
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.op-cx2 .cx-iconbtn:hover {
	border-color: var(--cx-wa22);
	background: var(--cx-wa08);
	color: var(--cx-t1);
}

.op-cx2 .cx-pagebtn {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border-radius: 7px;
	border: 1px solid var(--cx-wa08);
	background: var(--cx-wa05);
	color: var(--cx-t4);
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.op-cx2 .cx-pagebtn:hover {
	border-color: var(--cx-wa22);
	background: var(--cx-wa08);
	color: var(--cx-t2);
}

.op-cx2 .cx-pagebtn[disabled] { opacity: 0.4; cursor: default; }
.op-cx2 .cx-pagebtn[disabled]:hover { border-color: var(--cx-wa08); background: var(--cx-wa05); color: var(--cx-t4); }

/* Focus is never removed, only redrawn — this page is heavily keyboard-driven. */
.op-cx2 :focus-visible {
	outline: 2px solid var(--cx-ac);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ============================================================
   Hero
   ============================================================ */
.op-cx2 .cx-hero {
	background: var(--cx-panel);
	border-bottom: 1px solid var(--cx-wa08);
	background-image: radial-gradient(var(--cx-dot) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -14px -14px;
	padding-block: 26px 32px;
}

.op-cx2 .cx-hero__inner { display: flex; flex-direction: column; gap: 24px; }

.op-cx2 .cx-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	color: var(--cx-t5);
}

.op-cx2 .cx-crumb span:last-child { color: var(--cx-t3); }

.op-cx2 .cx-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 800px;
}

.op-cx2 .cx-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.op-cx2 .cx-stat {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: var(--cx-wa03);
	border: 1px solid var(--cx-wa08);
	border-radius: 14px;
	padding: 14px 16px;
}

.op-cx2 .cx-stat__n {
	font-size: 26px;
	font-weight: 700;
	color: var(--cx-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.op-cx2 .cx-stat__n--ac { color: var(--cx-ac); }

.op-cx2 .cx-stat__k {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--cx-t6);
}

/* ============================================================
   Section shells
   ============================================================ */
.op-cx2 .cx-sect { padding-block: 34px 14px; }
.op-cx2 .cx-sect--spot { padding-block: 34px 16px; }
.op-cx2 .cx-sect--list { padding-block: 34px 48px; }

.op-cx2 .cx-sect--panel {
	background: var(--cx-panel);
	border-top: 1px solid var(--cx-wa08);
	border-bottom: 1px solid var(--cx-wa08);
	padding-block: 44px 46px;
}

.op-cx2 .cx-sect--presets {
	background: var(--cx-panel);
	border-top: 1px solid var(--cx-wa08);
	padding-block: 46px 50px;
}

.op-cx2 .cx-stack { display: flex; flex-direction: column; gap: 18px; }
.op-cx2 .cx-stack--lg { gap: 24px; }
.op-cx2 .cx-stack--md { gap: 20px; }

.op-cx2 .cx-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 720px;
}

.op-cx2 .cx-head--wide { max-width: 680px; gap: 7px; }

.op-cx2 .cx-headrow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.op-cx2 .cx-note {
	font-size: 13.5px;
	line-height: 1.64;
	color: var(--cx-t4);
	text-wrap: pretty;
}

/* ============================================================
   Atlas — map + ranking rail
   ============================================================ */
.op-cx2 .cx-atlas {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 22px;
	align-items: start;
}

.op-cx2 .cx-atlas__main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.op-cx2 .cx-atlas__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.op-cx2 .cx-seg {
	display: flex;
	gap: 3px;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	border-radius: 999px;
	padding: 3px;
	flex: 0 0 auto;
}

.op-cx2 .cx-seg button {
	border: 0;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	background: transparent;
	color: var(--cx-t4);
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}

.op-cx2 .cx-seg button:hover { color: var(--cx-t1); }

.op-cx2 .cx-seg button[aria-pressed="true"] {
	background: var(--cx-ac);
	color: var(--cx-onac);
}

.op-cx2 .cx-mapbox {
	position: relative;
	height: 452px;
	background: var(--cx-panel);
	border: 1px solid var(--cx-wa08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--cx-shxs);
}

.op-cx2 .cx-mapbox op-atlas { display: block; width: 100%; height: 100%; }

.op-cx2 .cx-legend {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--cx-t5);
}

.op-cx2 .cx-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.op-cx2 .cx-legend i {
	width: 22px;
	height: 10px;
	border-radius: 3px;
	flex: 0 0 auto;
}

.op-cx2 .cx-legend .cx-lg--low { background: var(--cx-ac); opacity: 0.42; }
.op-cx2 .cx-legend .cx-lg--high { background: var(--cx-ac); }
.op-cx2 .cx-legend .cx-lg--none { background: var(--cx-wa14); }
.op-cx2 .cx-legend .cx-lg--sel { background: var(--cx-rose); border: 1px solid var(--cx-ink); }

.op-cx2 .cx-rail {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.op-cx2 .cx-selcard {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--cx-panel);
	border: 1.5px solid var(--cx-rose);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 0 0 4px var(--cx-rosew);
}

.op-cx2 .cx-selcard__top { display: flex; align-items: center; gap: 11px; }

.op-cx2 .cx-selcard__id {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.op-cx2 .cx-selcard__name {
	font-size: 17px;
	font-weight: 700;
	color: var(--cx-ink);
	letter-spacing: -0.015em;
}

.op-cx2 .cx-selcard__meta {
	font-family: var(--op-font-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	color: var(--cx-t6);
}

.op-cx2 .cx-selcard__x {
	margin-inline-start: auto;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 9px;
	border: 1px solid var(--cx-wa14);
	background: transparent;
	color: var(--cx-t4);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.op-cx2 .cx-selcard__x:hover {
	background: var(--cx-wa06);
	border-color: var(--cx-wa22);
	color: var(--cx-t1);
}

.op-cx2 .cx-quad {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: var(--cx-wa03);
	border: 1px solid var(--cx-wa08);
	border-radius: 12px;
	overflow: hidden;
}

.op-cx2 .cx-quad > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 13px;
}

.op-cx2 .cx-quad > div:nth-child(2n) { border-inline-start: 1px solid var(--cx-wa08); }
.op-cx2 .cx-quad > div:nth-child(n + 3) { border-top: 1px solid var(--cx-wa08); }

.op-cx2 .cx-quad__n {
	font-size: 18px;
	font-weight: 700;
	color: var(--cx-t1);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.op-cx2 .cx-quad__n--rose { color: var(--cx-rose); }

.op-cx2 .cx-quad__k {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cx-t6);
}

.op-cx2 .cx-rankcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--cx-panel);
	border: 1px solid var(--cx-wa08);
	border-radius: 16px;
	padding: 16px;
	box-shadow: var(--cx-shxs);
}

.op-cx2 .cx-rankcard__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.op-cx2 .cx-rankcard__ttl { font-size: 13px; font-weight: 700; color: var(--cx-ink); }

.op-cx2 .cx-rankcard__when {
	font-family: var(--op-font-mono);
	font-size: 10.5px;
	color: var(--cx-t6);
}

.op-cx2 .cx-rank {
	display: flex;
	flex-direction: column;
	gap: 7px;
	width: 100%;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--cx-wa08);
	padding: 7px 0;
	cursor: pointer;
	text-align: start;
	transition: opacity 150ms ease;
}

.op-cx2 .cx-rank:hover { opacity: 0.82; }
.op-cx2 .cx-rank__row { display: flex; align-items: center; gap: 9px; width: 100%; }

.op-cx2 .cx-rank__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--cx-t2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 150ms ease;
}

.op-cx2 .cx-rank[aria-pressed="true"] .cx-rank__name { color: var(--cx-rose); }

.op-cx2 .cx-rank__n {
	font-family: var(--op-font-mono);
	font-size: 11.5px;
	color: var(--cx-t3);
	font-variant-numeric: tabular-nums;
}

.op-cx2 .cx-rank__track {
	display: block;
	width: 100%;
	height: 4px;
	border-radius: 999px;
	background: var(--cx-wa06);
	overflow: hidden;
}

.op-cx2 .cx-rank__bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--cx-ac);
	transition: background 150ms ease;
}

.op-cx2 .cx-rank[aria-pressed="true"] .cx-rank__bar { background: var(--cx-rose); }

.op-cx2 .cx-rankcard__foot {
	font-size: 11px;
	line-height: 1.6;
	color: var(--cx-t6);
	border-top: 1px solid var(--cx-wa08);
	padding-top: 11px;
}

/* ============================================================
   Spotlight
   ============================================================ */
.op-cx2 .cx-spots {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-behavior: smooth;
}

.op-cx2 .cx-spots::-webkit-scrollbar { display: none; }

.op-cx2 .cx-spots > article {
	flex: 0 0 calc(50% - 9px);
	scroll-snap-align: start;
}

.op-cx2 .cx-spot {
	display: flex;
	flex-direction: column;
	background: var(--cx-panel);
	border: 1px solid var(--cx-wa08);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--cx-shxs);
	transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.op-cx2 .cx-spot:hover {
	transform: translateY(-2px);
	box-shadow: var(--cx-sh);
	border-color: var(--cx-wa14);
}

.op-cx2 .cx-spot__media {
	position: relative;
	height: 214px;
	background: var(--cx-pop);
	background-image: radial-gradient(var(--cx-dot) 1px, transparent 1px);
	background-size: 20px 20px;
	background-position: -6px -6px;
	overflow: hidden;
}

.op-cx2 .cx-spot__img,
.op-cx2 .cx-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.op-cx2 .cx-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 14, 24, 0.14) 0%, rgba(8, 14, 24, 0.30) 58%, rgba(8, 14, 24, 0.66) 100%);
	pointer-events: none;
}

.op-cx2 .cx-scrim--card {
	background: linear-gradient(180deg, rgba(8, 14, 24, 0.30) 0%, rgba(8, 14, 24, 0.06) 45%, rgba(8, 14, 24, 0.34) 100%);
}

.op-cx2 .cx-spot__foot {
	position: absolute;
	inset-inline-start: 16px;
	bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.op-cx2 .cx-spot__name {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-shadow: 0 1px 12px rgba(8, 14, 24, 0.55);
}

/*
 * With no cover image the media panel is the dotted plate, which is a light
 * surface in the light theme — a white country name on it would vanish. The
 * no-image variant therefore uses the page's own ink and drops the shadow.
 */
.op-cx2 .cx-spot__media--plain .cx-spot__name {
	color: var(--cx-ink);
	text-shadow: none;
}

.op-cx2 .cx-sig {
	position: absolute;
	top: 12px;
	inset-inline-start: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--cx-chip);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid var(--cx-chipbd);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--cx-chiptx);
	white-space: nowrap;
}

.op-cx2 .cx-sig--mono {
	font-family: var(--op-font-mono);
	letter-spacing: 0.06em;
}

.op-cx2 .cx-sig--right {
	inset-inline-start: auto;
	inset-inline-end: 13px;
}

/*
 * Signal tones. The glass plate is the default because it sits on a photo;
 * the two loud tones are opaque so they stay legible over any image, and the
 * accent pair is the one the rest of the page already uses.
 */
.op-cx2 .cx-sig--ac {
	background: var(--cx-ac);
	border-color: var(--cx-ac);
	color: var(--cx-onac);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.op-cx2 .cx-sig--ind {
	background: var(--cx-ind);
	border-color: var(--cx-ind);
	color: var(--cx-panel);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html[data-op-theme="dim"] .op-cx2 .cx-sig--ind,
html[data-op-theme="dark-contrast"] .op-cx2 .cx-sig--ind {
	/* The dim/dark indigo is a light periwinkle, so the label on it is dark. */
	color: #131c2e;
}

.op-cx2 .cx-spot__pad {
	display: flex;
	flex-direction: column;
	gap: 13px;
	padding: 18px;
	flex: 1 1 auto;
}

.op-cx2 .cx-spot__desc {
	font-size: 13.5px;
	line-height: 1.66;
	color: var(--cx-t4);
	text-wrap: pretty;
}

.op-cx2 .cx-spot__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--cx-t5);
	margin-top: auto;
}

.op-cx2 .cx-spot__meta b {
	font-family: var(--op-font-mono);
	font-size: 11.5px;
	font-weight: 400;
	color: var(--cx-ac);
}

.op-cx2 .cx-dot {
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background: var(--cx-wa22);
	flex: 0 0 auto;
}

.op-cx2 .cx-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.op-cx2 .cx-dots { display: flex; align-items: center; gap: 6px; padding: 6px 2px; }

.op-cx2 .cx-dots button {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--cx-wa22);
	cursor: pointer;
	transition: width 200ms ease, background 200ms ease;
}

.op-cx2 .cx-dots button[aria-current="true"] {
	width: 20px;
	background: var(--cx-ac);
}

/*
 * The prev/next pair is NOT a dot: it needs its own wrapper, because the dot
 * rule above is a bare descendant selector and a 24px arrow inside `.cx-dots`
 * would be squeezed into a 7px circle.
 */
.op-cx2 .cx-pagenav { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   Toolbar
   ============================================================ */
.op-cx2 .cx-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
}

.op-cx2 .cx-search {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 120px;
	flex: 1 1 260px;
	height: 44px;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	border-radius: 12px;
	padding: 0 14px;
	transition: border-color 160ms ease, background 160ms ease;
}

.op-cx2 .cx-search:focus-within {
	border-color: var(--cx-acb);
	background: var(--cx-panel);
}

.op-cx2 .cx-search svg { flex: 0 0 auto; color: var(--cx-t5); }

.op-cx2 .cx-search input {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	color: var(--cx-t1);
	font-size: 13.5px;
}

.op-cx2 .cx-regionwrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

.op-cx2 .cx-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
	scroll-behavior: smooth;
	flex: 1 1 auto;
	min-width: 0;
}

.op-cx2 .cx-chips::-webkit-scrollbar { display: none; }

/*
 * The right edge always fades. A chip sliced mid-word by an overflow boundary
 * reads as a rendering fault; the same chip under a gradient reads as "there
 * is more, scroll".
 */
.op-cx2 .cx-chips {
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%);
}

.op-cx2 .cx-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	height: 36px;
	padding: 0 13px;
	border-radius: 999px;
	border: 1px solid var(--cx-wa08);
	background: var(--cx-wa05);
	color: var(--cx-t2);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.op-cx2 .cx-chip:hover { border-color: var(--cx-wa22); background: var(--cx-wa08); }

.op-cx2 .cx-chip[aria-pressed="true"] {
	background: var(--cx-ac);
	border-color: var(--cx-ac);
	color: var(--cx-onac);
}

.op-cx2 .cx-chip__n {
	font-family: var(--op-font-mono);
	font-size: 10.5px;
	opacity: 0.7;
}

.op-cx2 .cx-sort { flex: 0 0 auto; }

/*
 * The sort control is the shared op-cselect component, skinned to match the
 * two fields beside it. Only the trigger is restyled: the panel is portalled
 * out of this subtree and already carries the design system's own listbox
 * styling in all three appearances, so re-skinning it here would fork it.
 *
 * A FIXED width, not `auto` — the component sizes its portalled panel to the
 * trigger's measured width, so an auto-width trigger opens a panel narrower
 * than its own longest option.
 */
.op-cx2 .cx-sort .op-cselect {
	flex: 0 0 auto;
	width: 204px;
	min-width: 204px;
}

.op-cx2 .cx-sort .op-cselect__trigger {
	width: 100%;
	height: 44px;
	min-height: 44px;
	gap: 10px;
	padding: 0 12px;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	border-radius: 12px;
	color: var(--cx-t1);
	font-size: 13px;
	font-weight: 600;
	box-shadow: none;
	transition: border-color 170ms ease, background 170ms ease;
}

.op-cx2 .cx-sort .op-cselect__trigger:hover { background: var(--cx-wa06); border-color: var(--cx-wa22); }
.op-cx2 .cx-sort .op-cselect.is-open .op-cselect__trigger { border-color: var(--cx-acb); }
.op-cx2 .cx-sort .op-cselect__value { color: var(--cx-t1); }
.op-cx2 .cx-sort .op-cselect__chevron { color: var(--cx-t5); }

/*
 * Before the enhancer runs — and permanently, if JavaScript never loads — the
 * native select IS the control, so it gets the same field skin.
 */
.op-cx2 .cx-sort__select {
	width: 204px;
	max-width: 100%;
	height: 44px;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	border-radius: 12px;
	padding-inline: 12px;
	color: var(--cx-t1);
	font-size: 13px;
	font-weight: 600;
	outline: none;
	cursor: pointer;
}

.op-cx2 .cx-resulthead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.op-cx2 .cx-resulthead__id { display: flex; flex-direction: column; gap: 5px; }
.op-cx2 .cx-resulthead__note { font-size: 12.5px; color: var(--cx-t5); }

.op-cx2 .cx-active {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.op-cx2 .cx-tag {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--cx-acw);
	border: 1px solid var(--cx-acb);
	border-radius: 999px;
	padding: 6px 10px 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cx-ac);
	cursor: pointer;
	transition: background 160ms ease;
}

.op-cx2 .cx-tag:hover { background: var(--cx-acb); }

.op-cx2 .cx-clearall {
	background: transparent;
	border: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--cx-t5);
	cursor: pointer;
	padding: 6px 4px;
	transition: color 160ms ease;
}

.op-cx2 .cx-clearall:hover { color: var(--cx-t1); }

/* ============================================================
   Country cards
   ============================================================ */
.op-cx2 .cx-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.op-cx2 .cx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--cx-panel);
	border: 1px solid var(--cx-wa08);
	border-radius: 18px;
	box-shadow: var(--cx-shxs);
	transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.op-cx2 .cx-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--cx-sh);
	border-color: var(--cx-wa14);
}

.op-cx2 .cx-card__media {
	position: relative;
	height: 142px;
	border-radius: 17px 17px 0 0;
	overflow: hidden;
	background: var(--cx-pop);
	background-image: radial-gradient(var(--cx-dot) 1px, transparent 1px);
	background-size: 20px 20px;
	background-position: -6px -6px;
}

.op-cx2 .cx-card__iso {
	position: absolute;
	top: 11px;
	inset-inline-start: 13px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--cx-chip);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid var(--cx-chipbd);
	font-family: var(--op-font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cx-chiptx);
}

.op-cx2 .cx-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px 18px;
	flex: 1 1 auto;
}

.op-cx2 .cx-card__id {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.op-cx2 .cx-card__name {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cx-ink);
	line-height: 1.2;
}

.op-cx2 .cx-card__name:hover { color: var(--cx-ac); }

/*
 * The whole card is the link target: the title carries a stretched pseudo
 * element so a click anywhere on the card opens the country, while the title
 * stays the accessible name and the two footer links keep their own hit areas
 * by sitting above it.
 */
.op-cx2 .cx-card__name::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 18px;
}

.op-cx2 .cx-card__region { font-size: 12px; color: var(--cx-t5); }

.op-cx2 .cx-card__desc {
	font-size: 13px;
	line-height: 1.66;
	color: var(--cx-t4);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-wrap: pretty;
}

.op-cx2 .cx-cardstats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: var(--cx-wa03);
	border: 1px solid var(--cx-wa08);
	border-radius: 12px;
	overflow: hidden;
}

.op-cx2 .cx-cardstats > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 12px;
	min-width: 0;
}

.op-cx2 .cx-cardstats > div + div { border-inline-start: 1px solid var(--cx-wa08); }

.op-cx2 .cx-cardstats__n {
	font-size: 18px;
	font-weight: 700;
	color: var(--cx-t1);
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.op-cx2 .cx-cardstats__n--ac { color: var(--cx-ac); }

.op-cx2 .cx-cardstats__n--mono {
	font-family: var(--op-font-mono);
	font-size: 14px;
	letter-spacing: 0.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-cx2 .cx-cardstats__k {
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cx-t6);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-cx2 .cx-tops { display: flex; flex-direction: column; gap: 8px; }

.op-cx2 .cx-tops__k {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--cx-t6);
}

.op-cx2 .cx-tops__list { display: flex; gap: 7px; flex-wrap: wrap; }

.op-cx2 .cx-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	border-radius: 999px;
	padding: 6px 11px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--cx-t2);
}

.op-cx2 .cx-pill b {
	font-family: var(--op-font-mono);
	font-size: 10.5px;
	font-weight: 400;
	color: var(--cx-t6);
}

.op-cx2 .cx-card__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 2px;
	position: relative;
	z-index: 2;
}

.op-cx2 .cx-card__foot .cx-cta { flex: 1 1 auto; }

.op-cx2 .cx-card__alt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cx-t5);
	white-space: nowrap;
}

.op-cx2 .cx-card__alt:hover { color: var(--cx-ac); }

.op-cx2 .cx-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	background: var(--cx-panel);
	border: 1px dashed var(--cx-wa14);
	border-radius: 18px;
	padding: 44px 24px;
}

.op-cx2 .cx-empty__ttl { font-size: 15px; font-weight: 700; color: var(--cx-ink); }

.op-cx2 .cx-empty p {
	font-size: 13px;
	color: var(--cx-t5);
	max-width: 400px;
	line-height: 1.62;
}

/* ============================================================
   Analysis — compare table + discipline matrix
   ============================================================ */
.op-cx2 .cx-two {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}

.op-cx2 .cx-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.op-cx2 .cx-scroll {
	overflow-x: auto;
	border: 1px solid var(--cx-wa08);
	border-radius: 16px;
	background: var(--cx-wa03);
	scrollbar-width: thin;
	scrollbar-color: var(--cx-wa14) transparent;
}

.op-cx2 .cx-scroll::-webkit-scrollbar { height: 6px; }
.op-cx2 .cx-scroll::-webkit-scrollbar-thumb { background: var(--cx-wa14); border-radius: 999px; }
.op-cx2 .cx-scroll--pad { padding: 4px; }

.op-cx2 .cx-table { min-width: 548px; display: flex; flex-direction: column; }

.op-cx2 .cx-table__head,
.op-cx2 .cx-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 62px 48px 72px 78px 84px;
	align-items: center;
}

.op-cx2 .cx-table__head {
	padding: 11px 14px;
	border-bottom: 1px solid var(--cx-wa08);
}

.op-cx2 .cx-table__head span {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cx-t6);
	text-align: end;
}

.op-cx2 .cx-table__head span:first-child { text-align: start; }

.op-cx2 .cx-row {
	padding: 13px 14px;
	border-bottom: 1px solid var(--cx-wa06);
	transition: background 150ms ease;
}

.op-cx2 .cx-row:last-child { border-bottom: 0; }
.op-cx2 .cx-row:hover { background: var(--cx-wa05); }

.op-cx2 .cx-row__name {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--cx-t1);
}

.op-cx2 .cx-row__name span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-cx2 .cx-row__n {
	text-align: end;
	font-family: var(--op-font-mono);
	font-size: 12.5px;
	color: var(--cx-t3);
	font-variant-numeric: tabular-nums;
}

.op-cx2 .cx-row__n--ac { color: var(--cx-ac); }

.op-cx2 .cx-row__lang {
	text-align: end;
	font-family: var(--op-font-mono);
	font-size: 11.5px;
	color: var(--cx-t4);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-cx2 .cx-row__when {
	text-align: end;
	font-size: 12px;
	color: var(--cx-t5);
	white-space: nowrap;
}

.op-cx2 .cx-heat { display: flex; flex-direction: column; }

.op-cx2 .cx-heat__row {
	display: grid;
	align-items: center;
	gap: 4px;
	padding: 3px 6px;
}

.op-cx2 .cx-heat__head { padding-block: 8px 4px; }

.op-cx2 .cx-heat__head span {
	text-align: center;
	font-family: var(--op-font-mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--cx-t5);
}

/*
 * Two lines, not one with an ellipsis. This panel exists to answer "is my
 * field hiring", and "Mathematics, Statistics & Quantitat…" does not answer
 * it. Wrapping costs a row of height; truncating costs the point of the panel.
 */
.op-cx2 .cx-heat__k {
	font-size: 12px;
	line-height: 1.28;
	color: var(--cx-t3);
	padding-inline-end: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/*
 * The cell's intensity is an OVERLAY, not a mixed background colour: the
 * accent is a token that changes per appearance, and `color-mix()` on a
 * per-cell inline percentage is unsupported in enough shipping browsers that
 * a fifth of readers would see a flat grid. An absolutely-positioned wash at
 * `opacity: var(--i)` is exact everywhere and stays theme-driven.
 */
.op-cx2 .cx-cell {
	position: relative;
	display: grid;
	place-items: center;
	height: 34px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--cx-wa05);
	border: 1px solid var(--cx-wa08);
	font-family: var(--op-font-mono);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	color: var(--cx-t3);
}

.op-cx2 .cx-cell i {
	position: absolute;
	inset: 0;
	background: var(--cx-ac);
	opacity: var(--i, 0);
}

.op-cx2 .cx-cell b {
	position: relative;
	font-weight: 400;
}

/* Past the halfway wash the plate is dark enough to need the inverse ink. */
.op-cx2 .cx-cell--on { color: var(--cx-onac); }

.op-cx2 .cx-heat__foot { font-size: 11px; color: var(--cx-t6); padding: 10px; }

/* ============================================================
   Presets + trust
   ============================================================ */
.op-cx2 .cx-presets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.op-cx2 .cx-preset {
	display: flex;
	flex-direction: column;
	gap: 13px;
	background: var(--cx-wa03);
	border: 1px solid var(--cx-wa08);
	border-radius: 16px;
	padding: 16px;
	transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.op-cx2 .cx-preset:hover {
	transform: translateY(-2px);
	border-color: var(--cx-acb);
	box-shadow: var(--cx-sh);
	color: inherit;
}

.op-cx2 .cx-preset__filters {
	display: flex;
	align-items: flex-start;
	align-content: flex-start;
	gap: 7px;
	flex-wrap: wrap;
	/*
	 * Two chip rows' worth, so every card in the grid starts its number at the
	 * same height. One card with a long discipline name otherwise drops its
	 * figure a row below its neighbours and the band reads as misaligned.
	 */
	min-height: 61px;
}

.op-cx2 .cx-preset__f {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cx-wa06);
	border: 1px solid var(--cx-wa08);
	border-radius: 8px;
	padding: 5px 9px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--cx-t2);
	white-space: nowrap;
}

.op-cx2 .cx-preset__f i {
	font-family: var(--op-font-mono);
	font-size: 9.5px;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cx-t6);
}

.op-cx2 .cx-preset__count { display: flex; align-items: baseline; gap: 8px; }

.op-cx2 .cx-preset__n {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cx-ink);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.op-cx2 .cx-preset__k { font-size: 12px; color: var(--cx-t5); }

.op-cx2 .cx-preset__go {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cx-ac);
}

.op-cx2 .cx-trust {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--cx-wa03);
	border: 1px solid var(--cx-acb);
	border-radius: 16px;
	padding: 18px 20px;
}

.op-cx2 .cx-trust__ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--cx-acw);
	border: 1px solid var(--cx-acb);
	color: var(--cx-ac);
}

.op-cx2 .cx-trust__body { display: flex; flex-direction: column; gap: 6px; }
.op-cx2 .cx-trust__ttl { font-size: 14.5px; font-weight: 700; color: var(--cx-ink); }

.op-cx2 .cx-trust p {
	font-size: 12.5px;
	line-height: 1.68;
	color: var(--cx-t4);
	max-width: 820px;
	text-wrap: pretty;
}

/* ============================================================
   Motion
   ============================================================ */
@keyframes cxRise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes cxFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.op-cx2 .cx-anim-rise { animation: cxRise 210ms cubic-bezier(0.2, 0, 0, 1) both; }
.op-cx2 .cx-anim-fade { animation: cxFade 170ms ease both; }

@media (prefers-reduced-motion: reduce) {
	.op-cx2 .cx-anim-rise,
	.op-cx2 .cx-anim-fade { animation: none; }
	.op-cx2 .cx-spots { scroll-behavior: auto; }
	.op-cx2 .cx-chips { scroll-behavior: auto; }
	.op-cx2 .cx-card:hover,
	.op-cx2 .cx-spot:hover,
	.op-cx2 .cx-preset:hover { transform: none; }
}

/* ============================================================
   Container queries — the page answers to its own width
   ============================================================ */
@container (max-width: 1080px) {
	.op-cx2 .cx-h1 { font-size: 37px; }
	.op-cx2 .cx-atlas { grid-template-columns: minmax(0, 1fr); }
	.op-cx2 .cx-mapbox { height: 360px; }
	.op-cx2 .cx-cardstats > div { padding: 10px; }
	.op-cx2 .cx-grid { gap: 14px; }
	.op-cx2 .cx-spots { gap: 14px; }
	.op-cx2 .cx-spots > article { flex: 0 0 calc(50% - 7px); }
	.op-cx2 .cx-spot__media { height: 180px; }
	.op-cx2 .cx-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.op-cx2 .cx-two { grid-template-columns: minmax(0, 1fr); gap: 34px; }

	/*
	 * Once the rail sits under the map it is the full content width, so the
	 * four selection figures read better as one row than as a 2×2 block.
	 */
	.op-cx2 .cx-quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.op-cx2 .cx-quad > div:nth-child(n + 3) { border-top: 0; }
	.op-cx2 .cx-quad > div + div { border-inline-start: 1px solid var(--cx-wa08); }
}

@container (max-width: 720px) {
	.op-cx2 .cx-pad { padding-inline: 16px; }
	.op-cx2 .cx-h1 { font-size: 30px; letter-spacing: -0.025em; }
	.op-cx2 .cx-lead { font-size: 15px; }
	.op-cx2 .cx-secttl { font-size: 23px; }
	.op-cx2 .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.op-cx2 .cx-grid { grid-template-columns: minmax(0, 1fr); }
	.op-cx2 .cx-mapbox { height: 288px; }
	.op-cx2 .cx-presets { grid-template-columns: minmax(0, 1fr); }
	.op-cx2 .cx-preset__filters { min-height: 0; }
	.op-cx2 .cx-legend { gap: 12px; font-size: 11px; }
	.op-cx2 .cx-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.op-cx2 .cx-quad > div:nth-child(n + 3) { border-top: 1px solid var(--cx-wa08); }
	.op-cx2 .cx-quad > div:nth-child(2n + 1) { border-inline-start: 0; }

	.op-cx2 .cx-cardstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.op-cx2 .cx-cardstats > div:nth-child(n + 3) { border-top: 1px solid var(--cx-wa08); }
	.op-cx2 .cx-cardstats > div:nth-child(2n + 1) { border-inline-start: 0; }

	.op-cx2 .cx-spots > article { flex: 0 0 100%; }
	.op-cx2 .cx-spot__pad { padding: 16px; }
	.op-cx2 .cx-spot__media { height: 150px; }
	.op-cx2 .cx-spot__name { font-size: 19px; }

	/* Touch targets reach 44px, and the region rail becomes its own strip. */
	.op-cx2 .cx-toolbar { gap: 8px; flex-wrap: wrap; }

	/*
	 * A basis SMALLER than the field's content width, so the search and the
	 * sort share one row and the search then grows into what is left. With the
	 * default `auto` basis the pair measures ~371px, a phone line is ~358px,
	 * and the sort wraps onto a row of its own with 200px of dead space beside
	 * it.
	 */
	.op-cx2 .cx-search { flex: 1 1 120px; min-width: 0; }
	.op-cx2 .cx-sort .op-cselect,
	.op-cx2 .cx-sort__select { width: 160px; min-width: 160px; }
	.op-cx2 .cx-sort .op-cselect__trigger { padding: 0 10px; font-size: 12px; }
	.op-cx2 .cx-chip { min-height: 40px; }
	.op-cx2 .cx-cta { min-height: 44px; justify-content: center; }
	/*
	 * Stacked, not wrapped. With `flex-wrap` the secondary link sits beside the
	 * button on a card whose label is short and drops below it on a card whose
	 * label is long, so two cards in the same column get two different footers.
	 */
	.op-cx2 .cx-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
	.op-cx2 .cx-card__alt { justify-content: center; }

	.op-cx2 .cx-regionwrap {
		flex: 1 0 100%;
		order: 2;
		gap: 2px;
		background: var(--cx-wa03);
		border: 1px solid var(--cx-wa08);
		border-radius: 999px;
		padding: 4px;
	}

	.op-cx2 .cx-regionwrap .cx-iconbtn {
		width: 34px;
		height: 34px;
		border: 0;
		background: transparent;
		border-radius: 999px;
		color: var(--cx-t4);
	}

	.op-cx2 .cx-regionwrap .cx-iconbtn:hover { background: var(--cx-wa08); }
	.op-cx2 .cx-regionwrap .cx-iconbtn:active { background: var(--cx-wa10); }

	.op-cx2 .cx-chips {
		gap: 4px;
		mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 10px), transparent 100%);
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 10px), transparent 100%);
	}
}

/*
 * Coarse pointers have no hover, so the two scroll arrows beside the region
 * chips are dead weight — the strip is swipeable. They stay in the DOM for
 * pointer users on the same narrow width (a small laptop window).
 */
@media (pointer: coarse) {
	.op-cx2 .cx-regionwrap .cx-iconbtn { display: none; }
}
