/* HARP theme, 2026 redesign ("Slate and teal, renewed").
   Loaded LAST on every page, after Bootstrap 2/4, Materialize and MDB.
   Page markup still carries many legacy inline styles, so some rules below
   use !important or attribute selectors to override them. */

:root {
	--ink: #18242F;
	--ink-2: #22394A;
	--teal: #2B746E;
	--teal-d: #225E59;
	--mint: #9BD8CE;
	--mint-t: #E8F2F0;
	--canvas: #F3F6F8;
	--line: #E1E7EC;
	--text: #1B2731;
	--muted: #56636E;
	--high: #B42335;
	--mod: #9A5B0B;
	--low: #1D6F45;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .07);
	--shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 22px 48px rgba(16, 24, 40, .12);
	--font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1200px;
}

/* ---------- Page canvas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--font) !important;
	font-size: 16px !important;
	line-height: 1.65 !important;
	color: var(--text) !important;
	background-color: var(--canvas) !important;
	background-image:
		radial-gradient(1100px 460px at 8% -4%, rgba(43, 116, 110, .06), transparent 62%),
		radial-gradient(900px 520px at 94% 2%, rgba(155, 216, 206, .10), transparent 58%),
		radial-gradient(1200px 700px at 50% 110%, rgba(24, 36, 47, .06), transparent 60%),
		linear-gradient(180deg, #F8FBFB 0%, #F3F6F8 45%, #EEF3F5 100%) !important;
	background-repeat: no-repeat !important;
	overflow-x: hidden;
}
body p, body li, body td, body th, body label, body input, body select, body textarea, body button, body a, body div, body span {
	font-family: inherit;
}
body p, body li { font-size: inherit; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head) !important;
	font-weight: 600 !important;
	color: var(--ink);
	line-height: 1.2 !important;
	letter-spacing: normal !important;
}
a { color: var(--teal); }
a:hover, a:focus { color: var(--teal-d); }
i, em { font-style: italic; }
b, strong { font-weight: 600; }
img { max-width: 100%; }
::selection { background: rgba(94, 214, 198, .35); }
:focus-visible { outline: 3px solid rgba(19, 138, 126, .45); outline-offset: 2px; }

/* Legacy containers fixed at 80% width become a centred, capped column */
.container-fluid[style*="width: 80%"], .container-fluid[style*="width:80%"],
.container[style*="width: 80%"], div[style*="width: 80%"][class*="container"] {
	width: auto !important;
	max-width: var(--wrap) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}
.hx-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Legacy hairlines */
hr[style*="#D5D8DC"], hr[style*="#d5d8dc"] {
	background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent) !important;
	height: 1px !important;
	border: 0 !important;
	width: auto !important;
	max-width: var(--wrap);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Legacy colours remapped to the palette */
[style*="color: #212F3D"], [style*="color:#212F3D"], [style*="color: #212f3d"],
[style*="color: #2c3e50"], [style*="color:#2c3e50"], [style*="color: #2b3e50"],
[style*="color: #154360"], [style*="color:#154360"], [style*="color: #1B4F72"], [style*="color:#1B4F72"] {
	color: var(--ink) !important;
}
[style*="color: #26a69a"], [style*="color:#26a69a"], [style*="color: #18bc9c"], [style*="color:#18bc9c"] {
	color: var(--teal) !important;
}

/* ---------- Navigation (HANSEN style) ---------- */
.hx-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: linear-gradient(90deg, rgba(23, 34, 44, .98) 0%, rgba(27, 44, 55, .97) 60%, rgba(33, 58, 66, .96) 100%);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(10, 20, 28, .18);
	font-family: var(--font);
}
.hx-nav__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
	min-height: 66px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.hx-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none !important; margin-right: auto; min-width: 0; }
.hx-brand__mark { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; }
.hx-brand__sub { font-size: 13px; color: rgba(222, 236, 240, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-menu { display: flex; align-items: center; gap: 4px; }
.hx-menu > a, .hx-dd__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	color: rgba(255, 255, 255, .9) !important;
	font-size: 15.5px;
	font-weight: 500;
	text-decoration: none !important;
	background: transparent;
	border: 0;
	cursor: pointer;
	line-height: 1.3;
	text-transform: none;
	transition: background-color .15s ease, color .15s ease;
}
.hx-menu > a:hover, .hx-dd__btn:hover, .hx-dd.is-open .hx-dd__btn { background: rgba(255, 255, 255, .12); color: #fff !important; }
.hx-menu > a.is-active, .hx-dd__btn.is-active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--mint); border-radius: 8px 8px 2px 2px; }
.hx-menu > a.hx-cta {
	margin-left: 10px;
	border: 1px solid rgba(255, 255, 255, .55);
	padding: 8px 16px;
	box-shadow: none;
}
.hx-menu > a.hx-cta:hover, .hx-menu > a.hx-cta.is-active { background: #fff; color: var(--ink) !important; border-color: #fff; box-shadow: none; }
.hx-dd { position: relative; }
.hx-dd__btn svg { transition: transform .2s ease; }
.hx-dd.is-open .hx-dd__btn svg { transform: rotate(180deg); }
.hx-dd__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 270px;
	background: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(24, 36, 47, .08);
	padding: 6px;
	display: none;
}
.hx-dd.is-open .hx-dd__menu { display: block; }
.hx-dd__menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none !important; color: var(--ink) !important; }
.hx-dd__menu a b { display: block; font-weight: 600; font-size: 15.5px; }
.hx-dd__menu a small { display: block; color: var(--muted); font-size: 13px; }
.hx-dd__menu a:hover { background: var(--mint-t); }
.hx-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: transparent;
	padding: 0;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.hx-nav__toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hx-nav.is-open .hx-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hx-nav.is-open .hx-nav__toggle span:nth-child(2) { opacity: 0; }
.hx-nav.is-open .hx-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) { .hx-brand__sub { display: none; } }
@media (max-width: 960px) {
	.hx-nav__inner { flex-wrap: wrap; gap: 0; min-height: 60px; padding: 0 16px; }
	.hx-brand { min-height: 60px; align-items: center; }
	.hx-brand__sub { display: inline; max-width: 52vw; font-size: 12px; }
	.hx-nav__toggle { display: inline-flex; }
	.hx-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 14px; }
	.hx-nav.is-open .hx-menu { display: flex; }
	.hx-menu > a, .hx-dd__btn { width: 100%; justify-content: space-between; padding: 12px 12px; font-size: 16.5px; }
	.hx-menu > a.is-active, .hx-dd__btn.is-active { box-shadow: inset 3px 0 0 var(--mint); border-radius: 2px 8px 8px 2px; }
	.hx-menu > a.hx-cta { margin: 8px 0 0; justify-content: center; }
	.hx-dd__menu { position: static; box-shadow: none; border: 0; background: rgba(255, 255, 255, .07); margin: 2px 0 6px; }
	.hx-dd__menu a { color: #fff !important; }
	.hx-dd__menu a small { color: rgba(222, 236, 240, .75); }
	.hx-dd__menu a:hover { background: rgba(255, 255, 255, .1); }
}
@media (max-width: 420px) { .hx-brand__sub { display: none; } }

/* Hide the legacy navigation if a page still carries it */
header > #top2, #top2 .navbar { display: none !important; }

/* ---------- Page header band (legacy #inner-headline) ---------- */
#inner-headline {
	position: relative;
	overflow: hidden;
	background-color: var(--ink) !important;
	background-image:
		radial-gradient(700px 260px at 88% 10%, rgba(155, 216, 206, .12), transparent 62%),
		radial-gradient(600px 300px at 0% 100%, rgba(43, 116, 110, .16), transparent 60%),
		linear-gradient(135deg, #17222C 0%, #1C2D39 55%, #243F47 100%) !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}
#inner-headline::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
	pointer-events: none;
}
#inner-headline > .container-fluid, #inner-headline > .container { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 24px !important; width: auto !important; }
#inner-headline h2 {
	background: transparent !important;
	color: #fff !important;
	font-family: var(--font-head) !important;
	font-weight: 600 !important;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	line-height: 1.15 !important;
	text-align: left !important;
	padding: clamp(32px, 5vw, 56px) 0 clamp(30px, 4.5vw, 52px) !important;
	margin: 0 !important;
	text-transform: none;
}
#inner-headline h2 span {
	display: block;
	margin-top: 10px;
	font-family: var(--font) !important;
	font-weight: 400 !important;
	font-size: clamp(16px, 1.6vw, 20px) !important;
	line-height: 1.5 !important;
	color: rgba(226, 240, 243, .88) !important;
	max-width: 760px;
}
#inner-headline h2 span i { color: inherit; }

/* ---------- Cards, panels and wells ---------- */
.card, .card-panel, .well, .panel, .thumbnail {
	border-radius: var(--radius) !important;
	border: 1px solid rgba(24, 36, 47, .08) !important;
	box-shadow: var(--shadow) !important;
	background-color: rgba(255, 255, 255, .92);
}
.hx-card {
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(24, 36, 47, .08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

/* ---------- Buttons ---------- */
.btn, a.btn, button.btn, input[type="submit"], .waves-effect.btn {
	font-family: var(--font) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:hover, .waves-effect.btn:hover { box-shadow: 0 4px 12px rgba(23, 34, 44, .14) !important; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-primary1, .btn.blue, .btn.teal, .waves-effect.waves-light.btn:not(.grey) {
	background-color: var(--teal) !important;
	border-color: var(--teal) !important;
	color: #fff !important;
}
.btn-primary:hover, .btn-primary1:hover, .btn.teal:hover, .waves-effect.waves-light.btn:not(.grey):hover { background-color: var(--teal-d) !important; }
.btn.grey, .btn-light, .btn-default, .btn-secondary {
	background-color: #fff !important;
	color: var(--ink) !important;
	border: 1px solid #CBD5DC !important;
}

/* ---------- Forms ---------- */
input[type="text"], input[type="number"], input[type="email"], input[type="search"], input[type="password"], textarea, select.form-control, .form-control {
	font-family: var(--font) !important;
	font-size: 16px !important;
	color: var(--text) !important;
}
select.browser-default, select.form-control, .custom-select { border-radius: 10px !important; border: 1px solid #CBD5DC !important; background-color: #fff !important; min-height: 42px; }

/* ---------- Tables ---------- */
table.table, table.dataTable, .table {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	font-size: 15px;
}
.table thead th, table.dataTable thead th {
	background: var(--ink) !important;
	color: #fff !important;
	font-family: var(--font) !important;
	font-weight: 600 !important;
	border-color: var(--ink) !important;
}
.table td, .table th { border-color: var(--line) !important; vertical-align: middle !important; }
.table-striped tbody tr:nth-of-type(odd) { background-color: #F6FAFA; }
.hx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Tabs (legacy nav-tabs with inline colours) ---------- */
.nav-tabs { border-bottom: 1px solid var(--line) !important; gap: 6px; flex-wrap: wrap; }
.nav-tabs .nav-link {
	background-color: transparent !important;
	color: var(--muted) !important;
	border: 1px solid transparent !important;
	border-radius: 10px 10px 0 0 !important;
	font-family: var(--font) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	padding: 10px 16px !important;
	margin: 0 !important;
	width: auto !important;
}
.nav-tabs .nav-link:hover { color: var(--ink) !important; background-color: rgba(221, 242, 238, .6) !important; }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
	color: var(--ink) !important;
	background-color: #fff !important;
	border-color: var(--line) var(--line) #fff !important;
	box-shadow: inset 0 3px 0 var(--teal);
}

/* ---------- Footer (HANSEN style) ---------- */
.hx-footer {
	margin-top: 64px;
	padding: 40px 0 24px;
	background: #F4F6F7;
	border-top: 1px solid rgba(24, 36, 47, .08);
	font-size: 14.5px;
	color: var(--muted);
}
.hx-footer__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: center; }
.hx-footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1; }
.hx-footer__tag { margin: 6px 0 12px; color: var(--ink); font-weight: 500; }
.hx-footer__disc { margin: 0; max-width: 60ch; }
.hx-footer__logos { display: flex; align-items: center; justify-content: flex-end; gap: 44px; flex-wrap: wrap; }
.hx-footer__logos a { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; box-shadow: none; transition: opacity .2s ease; }
.hx-footer__logos a:hover { opacity: .8; }
.hx-logo { display: block; height: auto; }
.hx-logo--cam { width: 220px; }
.hx-logo--hope { width: 170px; mix-blend-mode: multiply; }
.hx-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.hx-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.hx-footer__links a { color: var(--teal-d); text-decoration: none; }
.hx-footer__links a:hover { text-decoration: underline; }
.hx-footer__ok { display: flex; justify-content: flex-end; margin-top: 10px; }
.hx-footer__ok a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.hx-footer__ok img { width: 80px; height: auto; }
@media (max-width: 860px) {
	.hx-footer__main { grid-template-columns: 1fr; gap: 24px; }
	.hx-footer__logos { justify-content: flex-start; gap: 14px; }
	.hx-logo--cam { width: 190px; }
	.hx-logo--hope { width: 150px; }
	.hx-footer__ok { justify-content: flex-start; }
}

/* ---------- Mobile clean-up of legacy layout ---------- */
@media (max-width: 767px) {
	.container-fluid[style*="width: 80%"], .container-fluid[style*="width:80%"] { padding-left: 16px !important; padding-right: 16px !important; }
	.hx-wrap { padding: 0 16px; }
	#inner-headline > .container-fluid, #inner-headline > .container { padding: 0 16px !important; }
	[style*="text-align: justify"], [style*="text-align:justify"], p[align="justify"] { text-align: left !important; }
	.row-fluid [class*="span"] { float: none !important; display: block !important; width: 100% !important; margin-left: 0 !important; }
	.row-fluid [class*="span"] + [class*="span"] { margin-top: 16px !important; }
	img { height: auto; }
	table { max-width: 100%; }
}

/* ---------- Shared building blocks ---------- */
.hx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border-radius: 12px;
	font-family: var(--font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: background-color .15s ease, color .15s ease, box-shadow .2s ease, transform .1s ease;
}
.hx-btn:active { transform: translateY(1px); }
.hx-btn--primary { background: var(--teal); color: #fff !important; }
.hx-btn--primary:hover { background: var(--teal-d); box-shadow: 0 6px 16px rgba(23, 34, 44, .16); }
.hx-btn--light { background: #fff; color: var(--ink) !important; }
.hx-btn--light:hover { background: #EEF4F3; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hx-btn--ghost { background: rgba(255, 255, 255, .06); color: #fff !important; border-color: rgba(255, 255, 255, .38); }
.hx-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.hx-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 500;
	color: #0B524B;
	background: var(--mint-t);
	border-radius: 999px;
	padding: 3px 11px;
}
.hx-mono { font-family: var(--font-mono); font-size: .95em; }
.hx-section { padding: 56px 0 0; }
.hx-section__head { max-width: 780px; margin-bottom: 24px; }
.hx-section__head h2 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 6px; color: var(--ink); }
.hx-section__head p { margin: 0; color: var(--muted); font-size: 17px; }
.hx-card--flush { padding: 0; overflow: hidden; }
.hx-card h3 { font-size: 22px; margin: 0 0 14px; }

/* ---------- Home: hero ---------- */
.hx-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: var(--ink);
	background-image:
		radial-gradient(760px 420px at 92% 8%, rgba(155, 216, 206, .13), transparent 62%),
		radial-gradient(680px 420px at -6% 110%, rgba(43, 116, 110, .20), transparent 60%),
		linear-gradient(135deg, #17222C 0%, #1C2D39 52%, #253F46 100%);
}
.hx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(110deg, transparent 20%, #000 85%);
	mask-image: linear-gradient(110deg, transparent 20%, #000 85%);
	pointer-events: none;
}
.hx-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
	gap: 48px;
	align-items: center;
	padding-top: 48px;
	padding-bottom: 56px;
}
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hx-chip { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; color: #E6F6F3; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); }
.hx-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--mint); }
.hx-hero__title { margin: 0 0 16px; color: #fff !important; font-family: var(--font) !important; font-weight: 600 !important; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25 !important; max-width: 30em; }
.hx-hero__title span { color: var(--mint); }
.hx-hero__lede { margin: 0; max-width: 66ch; font-size: 17px; line-height: 1.7; color: rgba(229, 241, 244, .86); }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hx-hero__media {
	margin: 0;
	background: #fff;
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(5, 15, 22, .30);
	border: 0;
}
.hx-slides { position: relative; aspect-ratio: 1800 / 939; overflow: hidden; background: #fff; }
.hx-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s ease; }
.hx-slides img.is-active { opacity: 1; }
.hx-hero__media figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-top: 1px solid #EEF2F4; color: var(--muted); font-size: 14px; }
.hx-dots { display: flex; gap: 4px; flex-shrink: 0; }
.hx-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hx-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #C6D2D8; transition: background-color .2s ease, transform .2s ease; }
.hx-dots button.is-active::after { background: var(--teal); transform: scale(1.25); }

/* ---------- Home: stats ---------- */
.hx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hx-stat {
	background: linear-gradient(160deg, #fff 0%, #F2FAF8 100%);
	border: 1px solid rgba(24, 36, 47, .08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px 18px 16px;
}
.hx-stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; color: var(--ink); }
.hx-stat b small { font-size: .62em; font-weight: 600; color: var(--muted); }
.hx-stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.hx-stat:nth-child(2) b { color: var(--teal); }

/* ---------- Home: drug cards ---------- */
.hx-drugs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hx-drug {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(24, 36, 47, .08);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.hx-drug:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hx-drug__img { position: relative; display: block; background: #fff; }
.hx-drug__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 16px 20px 6px; }
.hx-drug__pubchem { position: absolute; right: 12px; top: 12px; font-size: 12px; font-weight: 600; color: var(--teal-d); background: var(--mint-t); padding: 3px 10px; border-radius: 999px; }
.hx-drug__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; background: linear-gradient(180deg, #fff 0%, #F6FBFA 100%); }
.hx-drug__body h3 { margin: 6px 0 0; font-size: 26px; }
.hx-drug__body p { margin: 0; color: var(--muted); }
.hx-drug__count { padding-top: 6px; }
.hx-drug__count b { color: var(--ink); font-weight: 600; }
.hx-drug__body .hx-btn { margin-top: auto; align-self: flex-start; }
.hx-drug__body p + .hx-btn, .hx-drug__count + .hx-btn { margin-top: 14px; }

/* ---------- Home: mutation table and feature summary ---------- */
.hx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.hx-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.hx-table th, .hx-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.hx-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; vertical-align: bottom; }
.hx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-table__drug { background: #F7FBFA; border-right: 1px solid var(--line); min-width: 170px; }
.hx-table__drug a { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.hx-table__drug a:hover { color: var(--teal); }
.hx-table__drug span { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.hx-table__sub td { background: var(--mint-t); font-weight: 600; color: #0B524B; }
.hx-table tfoot td { background: var(--ink); color: #fff; font-weight: 600; border-bottom: 0; }
.hx-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-groups li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.hx-groups li span { color: var(--text); }
.hx-groups li b { font-family: var(--font-head); font-size: 20px; color: var(--ink); line-height: 1.2; }
.hx-groups li i { position: absolute; left: 0; bottom: 0; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.hx-groups li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 3px; background: var(--mint-t); z-index: -1; }
.hx-impact { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--line); }
.hx-impact span { display: block; height: 100%; }
.hx-impact--high { background: #B42335; }
.hx-impact--moderate { background: #D08A2E; }
.hx-impact--low { background: #2E8B57; }
.hx-impact__legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 15px; }
.hx-impact__legend li { display: flex; align-items: center; gap: 8px; }
.hx-impact__legend i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.hx-impact__legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.hx-impact__legend span { color: var(--muted); min-width: 64px; text-align: right; }

/* ---------- Home: citation ---------- */
.hx-cite { background: linear-gradient(135deg, #fff 0%, #F1FAF8 100%); }
.hx-cite__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hx-cite__head h2 { margin: 0; font-size: 26px; }
.hx-cite__title { margin: 0 0 6px; font-weight: 600; font-size: 18px; color: var(--ink); }
.hx-cite__authors { margin: 0 0 4px; color: var(--text); }
.hx-cite__ref { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
	.hx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hx-hero__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 44px; }
	.hx-hero__media { max-width: 560px; }
	.hx-drugs { grid-template-columns: 1fr; }
	.hx-drug { flex-direction: row; }
	.hx-drug__img { flex: 0 0 38%; border-bottom: 0; border-right: 1px solid var(--line); }
	.hx-drug__img img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 640px) {
	.hx-section { padding-top: 40px; }
	.hx-hero__lede { font-size: 16.5px; }
	.hx-hero__actions .hx-btn { flex: 1 1 auto; }
	.hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hx-side { grid-template-columns: 1fr; }
	.hx-drug { flex-direction: column; }
	.hx-drug__img { border-right: 0; border-bottom: 1px solid var(--line); }
	.hx-drug__img img { aspect-ratio: 16 / 9; }
	.hx-table { font-size: 14px; }
	.hx-table th, .hx-table td { padding: 9px 10px; }
	.hx-table__drug { min-width: 128px; }
	.hx-table__drug a { font-size: 18px; }
	.hx-card { padding: 20px; }
}

/* ---------- Legacy page bodies ---------- */
.hx-page { min-height: 100vh; }
.hx-page a:not([href]) { color: inherit; text-decoration: none; }
.hx-page #content, .hx-page .content-section { margin-top: 0; }
#inner-headline + * { margin-top: 28px !important; }

/* grey wrappers around groups of cards become open space */
.hx-page [style*="background-color: #D7DBDD"], .hx-page [style*="background-color: #d7dbdd"],
.hx-page [style*="background-color: #CFD8DC"], .hx-page [style*="background-color: #cfd8dc"],
.hx-page [style*="background-color: #E5E7E9"], .hx-page [style*="background-color: #e5e7e9"],
.hx-page [style*="background-color: #F2F3F4"], .hx-page [style*="background-color: #f2f3f4"],
.hx-page [style*="background-color: #EFEFEF"], .hx-page [style*="background-color: #efefef"],
.hx-page [style*="background-color: #E2E2E0"], .hx-page [style*="background-color: #e2e2e0"],
.hx-page [style*="background-color: #F4F6F7"], .hx-page [style*="background-color: #F4F6F6"],
.hx-page [style*="background-color: #f8f9fa"], .hx-page [style*="background-color: #FAFAFA"], .hx-page [style*="background-color: #fafafa"],
.hx-page [style*="background-color: #FADBD8"], .hx-page [style*="background-color: #fadbd8"], .hx-page [style*="background-color: #D6EAF8"], .hx-page [style*="background-color: #d6eaf8"] {
	background-color: transparent !important;
}
.hx-page .container-fluid[style*="#D7DBDD"], .hx-page .container-fluid[style*="#d7dbdd"], .hx-page .container-fluid[style*="#CFD8DC"] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 8px !important;
	margin-bottom: 8px !important;
}

/* white cards */
.hx-page .card {
	background-color: rgba(255, 255, 255, .96) !important;
	margin: 0 0 22px !important;
	overflow: visible;
}
.hx-page .card-content { padding: 22px 24px !important; }

/* cream section-title bars become tinted headers */
.hx-page .card[style*="#FCF0CF"], .hx-page .card[style*="#fcf0cf"],
.hx-page [style*="background-color: #FEF9E7"], .hx-page [style*="background-color: #fef9e7"],
.hx-page [style*="background-color: #FDEBD0"], .hx-page [style*="background-color: #fdebd0"] {
	background: linear-gradient(90deg, #EEF4F3 0%, #F7FAFA 55%, #FFFFFF 100%) !important;
	border: 1px solid rgba(24, 36, 47, .08) !important;
	box-shadow: inset 3px 0 0 var(--teal) !important;
	border-radius: 12px !important;
}

/* bordered query boxes inside cards (search pages) */
.hx-page .card .row-fluid > [class*="span"][style*="border-radius"] {
	background: #fff;
	border: 1px solid var(--line) !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	padding: 22px 24px !important;
}
.hx-page .harp-amr-card { border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important; }

/* legacy headings set as large paragraphs */
.hx-page p[style*="font-size: 200%"], .hx-page p[style*="font-size:200%"] {
	font-family: var(--font-head) !important;
	font-weight: 600;
	font-size: clamp(26px, 2.6vw, 32px) !important;
	line-height: 1.2;
	color: var(--ink) !important;
	margin: 28px 0 10px !important;
}
.hx-page p[style*="font-size: 180%"], .hx-page p[style*="font-size:180%"],
.hx-page h3[style*="font-size: 180%"], .hx-page h4[style*="font-size: 180%"] {
	font-family: var(--font-head) !important;
	font-weight: 600;
	font-size: clamp(22px, 2vw, 26px) !important;
	line-height: 1.25;
	margin: 0 0 8px !important;
}
.hx-page .card h3, .hx-page .card h4, .hx-page .card h5 { color: var(--ink); }

/* body copy in the old dark blues */
.hx-page p[style*="color: #1B4F72"], .hx-page p[style*="color: #154360"], .hx-page p[style*="color: #2c3e50"] {
	color: var(--text) !important;
}
.hx-page p[style*="font-size: 120%"] { font-size: 17px !important; line-height: 1.7; }
.hx-page p[style*="font-size: 110%"] { font-size: 16px !important; }

/* anchor tabs (result pages) and nav tabs become pills */
.hx-page .nav { gap: 8px; flex-wrap: wrap; border: 0 !important; }
.hx-page .nav .nav-item { margin: 0 !important; }
.hx-page .nav .nav-link, .hx-page .nav-tabs .nav-link {
	display: inline-flex !important;
	align-items: center;
	background: #fff !important;
	color: var(--ink) !important;
	border: 1px solid var(--line) !important;
	border-radius: 999px !important;
	padding: 8px 18px !important;
	font-size: 15.5px !important;
	font-weight: 600 !important;
	margin: 0 !important;
	width: auto !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	text-decoration: none !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hx-page .nav .nav-link:hover, .hx-page .nav .nav-link.active {
	background: var(--mint-t) !important;
	border-color: rgba(19, 138, 126, .35) !important;
	color: #0B524B !important;
	box-shadow: none;
}
.hx-page ul.nav, .hx-page .nav-tabs { padding: 0 !important; margin: 0 0 18px !important; list-style: none; }

/* inputs (Materialize) become boxed fields */
.hx-page input[type="text"]:not(.browser-default):not(.msp-plugin *), .hx-page input[type="number"]:not(.browser-default):not(.msp-plugin *),
.hx-page input[type="email"]:not(.browser-default):not(.msp-plugin *), .hx-page input[type="password"]:not(.browser-default):not(.msp-plugin *),
.hx-page input[type="search"]:not(.browser-default):not(.msp-plugin *), .hx-page .form-control:not(.msp-plugin *) {
	height: 46px !important;
	border: 1px solid #C9D3DA !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: 0 14px !important;
	margin: 6px 0 10px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hx-page textarea:not(.msp-plugin *), .hx-page textarea.form-control:not(.msp-plugin *), .hx-page textarea.materialize-textarea:not(.msp-plugin *) {
	min-height: 110px;
	height: auto !important;
	border: 1px solid #C9D3DA !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: 10px 14px !important;
	box-sizing: border-box !important;
}
.hx-page input:not(.msp-plugin *):focus, .hx-page textarea:not(.msp-plugin *):focus, .hx-page select:not(.msp-plugin *):focus, .hx-page .form-control:not(.msp-plugin *):focus {
	border-color: var(--teal) !important;
	box-shadow: 0 0 0 3px rgba(19, 138, 126, .18) !important;
	outline: none;
}
.hx-page input:not(.msp-plugin *)::placeholder, .hx-page textarea:not(.msp-plugin *)::placeholder { color: #8C99A3 !important; }
.hx-page select:not(.msp-plugin *) { height: 46px; border-radius: 10px !important; border: 1px solid #C9D3DA !important; background-color: #fff; padding: 0 12px; }
.hx-page label:not(.msp-plugin *), .hx-page .form-control-label:not(.msp-plugin *) { font-weight: 600; color: var(--ink); }

/* secondary and disabled-looking buttons */
.hx-page .btn[style*="#e0e3e5"], .hx-page .btn[style*="#E0E3E5"], .hx-page .btn[style*="#ABB2B9"], .hx-page .btn[style*="#abb2b9"] {
	background-color: #fff !important;
	color: var(--ink) !important;
	border: 1px solid #C9D3DA !important;
}
.hx-page .btn { min-height: 42px; height: auto !important; line-height: 1.3 !important; padding: 10px 18px !important; display: inline-flex; align-items: center; gap: 6px; }
.hx-page .btn .material-icons { margin: 0 !important; font-size: 20px; line-height: 1; }

/* tables */
.hx-page table:not(.msp-plugin *) { border-collapse: collapse; }
.hx-page .table:not(.msp-plugin *), .hx-page table.striped:not(.msp-plugin *), .hx-page table.table-bordered:not(.msp-plugin *) {
	background: #fff;
	border: 1px solid var(--line) !important;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 0;
}
.hx-page .thead-dark th:not(.msp-plugin *), .hx-page thead th:not(.msp-plugin *) {
	background-color: var(--ink) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, .08) !important;
	font-weight: 600 !important;
	font-size: 14.5px;
}
.hx-page td:not(.msp-plugin *), .hx-page th:not(.msp-plugin *) { padding: 10px 14px !important; }
.hx-page tbody tr:not(.msp-plugin *):nth-child(even) { background-color: #F7FAFA; }
.hx-page tbody tr:not(.msp-plugin *):hover { background-color: #EAF6F3 !important; }

/* modals */
.modal-content { border-radius: 16px !important; border: 0 !important; box-shadow: var(--shadow-lg) !important; overflow: hidden; }
.modal-header { background: linear-gradient(90deg, #17222C, #1E3340); color: #fff; border: 0 !important; }
.modal-header .modal-title, .modal-header h5 { color: #fff !important; font-family: var(--font-head) !important; font-size: 22px; }
.modal-header .close { color: #fff; opacity: .85; text-shadow: none; }
.modal-footer { border-top: 1px solid var(--line) !important; }
.modal-body { font-size: 16px; line-height: 1.7; }

@media (max-width: 767px) {
	.hx-page .table:not(.msp-plugin *), .hx-page table.striped:not(.msp-plugin *), .hx-page table.table-bordered:not(.msp-plugin *), .hx-page table.table-responsive:not(.msp-plugin *) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
	}
	.hx-page td:not(.msp-plugin *), .hx-page th:not(.msp-plugin *) { padding: 8px 10px !important; font-size: 14px; }
	.hx-page .card-content { padding: 16px !important; }
	.hx-page .card .row-fluid > [class*="span"][style*="border-radius"] { padding: 18px !important; }
	.hx-page .nav .nav-link { font-size: 14.5px !important; padding: 7px 14px !important; }
	.hx-page iframe, .hx-page canvas, .hx-page [id*="viewport"], .hx-page [id*="viewer"] { max-width: 100% !important; }
	.hx-page [style*="width: 80%"]:not(.container-fluid), .hx-page [style*="width:80%"]:not(.container-fluid),
	.hx-page [style*="width: 90%"], .hx-page [style*="width: 70%"], .hx-page [style*="width: 60%"] { width: 100% !important; }
}

/* search forms: label above a full-width field */
.hx-page form .row-fluid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 16px; }
.hx-page form .row-fluid::before, .hx-page form .row-fluid::after { display: none !important; }
.hx-page form .row-fluid > [class*="span"] { width: auto !important; margin-left: 0 !important; float: none !important; min-width: 0; }
.hx-page form .row-fluid > [class*="span"] > a:not([href]) { display: block; font-weight: 600; color: var(--ink); font-size: 15px !important; margin-top: 4px !important; }
.hx-page form .row-fluid input { width: 100% !important; }
.hx-page form .row-fluid p { font-size: 14px !important; color: var(--muted); text-align: left !important; margin: 0; }

/* overall impact on mutation result pages */
.hx-impact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.hx-impact-head__label { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); line-height: 1.2; }
.hx-impact-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.hx-impact-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.hx-impact-badge--high { background: #FBE7EA; color: #9E1C2E; }
.hx-impact-badge--moderate { background: #FCEFD9; color: #8A4B06; }
.hx-impact-badge--low { background: #E3F4EA; color: #1D6F45; }
.hx-page .white-text { color: inherit !important; }

/* protein feature viewer is a fixed-width widget: let it scroll sideways */
.hx-page #protview {
	background: #fff !important;
	box-shadow: var(--shadow) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.hx-page #featureviewer h5 { font-family: var(--font-head) !important; font-weight: 600; font-size: clamp(26px, 2.6vw, 32px) !important; color: var(--ink) !important; }

@media (max-width: 600px) {
	.hx-page form .row-fluid { grid-template-columns: minmax(0, 1fr); }
	.hx-page ul.nav { justify-content: flex-start; }
	.hx-impact-badge { font-size: 16px; }
}

/* ---------- Prose pages (about, acknowledgements) ---------- */
.hx-prose { padding-top: 32px; }
.hx-prose .hx-card { padding: 28px 30px; }
.hx-prose .hx-card h4 { font-size: 24px; margin: 0 0 10px; color: var(--ink); }
.hx-prose .hx-card p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.75; }
.hx-prose .hx-card p:last-child { margin-bottom: 0; }
.hx-kicker { margin: 0 0 6px !important; font-size: 14px !important; font-weight: 600; color: var(--teal) !important; }
.hx-lead-title { font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.25 !important; margin: 0 0 12px !important; color: var(--ink); max-width: 30em; }
.hx-intro { background: linear-gradient(135deg, #fff 0%, #F0F9F7 100%) !important; }
.hx-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }

/* acknowledgements */
.hx-ack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hx-ack__card h3 { font-size: 26px !important; margin: 14px 0 10px !important; }
.hx-ack__logo { display: inline-flex; align-items: center; height: 54px; padding: 0; background: none; border: 0; }
.hx-ack__logo img { height: 100%; width: auto; max-width: 220px; object-fit: contain; }

@media (max-width: 1100px) {
	.hx-about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.hx-ack { grid-template-columns: 1fr; }
	.hx-prose .hx-card { padding: 22px 20px; }
	.hx-ack__logo { height: 56px; }
}

/* ---------- About: overview flowchart (Lead-Dx figure style) ---------- */
.hx-fc {
	--c-ink: #18242F; --c-teal: #2B746E; --c-blue: #2F5B80; --c-slate: #4C5E6C; --c-amber: #A8752F; --c-gate: #2A4F55;
	margin-top: 28px;
	padding: 26px 28px 28px;
	background: #fff;
	border: 1px solid rgba(24, 36, 47, .08);
	border-radius: 20px;
	box-shadow: var(--shadow);
}
.hx-fc__title { font-size: clamp(24px, 2.4vw, 30px) !important; margin: 0 0 16px !important; }
.hx-fc__sec { margin: 22px 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #5E6B75; }
.hx-fc__sec:first-of-type { margin-top: 0; }
.hx-fc__top { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.35fr) 40px minmax(0, 1fr); align-items: stretch; }
.hx-fc__col { display: flex; flex-direction: column; gap: 14px; }
.hx-fc__col .hx-box { flex: 1 0 auto; }
.hx-fc__gut { display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
.hx-box { display: flex; flex-direction: column; border: 2px solid var(--bc); border-radius: 8px; background: #fff; overflow: hidden; --bc: var(--c-ink); }
.hx-box header { background: var(--bc); color: #fff; padding: 10px 14px 9px; }
.hx-box header h4 { margin: 0 !important; font-family: var(--font) !important; font-weight: 600 !important; font-size: 18.5px !important; color: #fff !important; line-height: 1.25 !important; }
.hx-box header p { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.35 !important; color: rgba(255, 255, 255, .86); }
.hx-box__body { display: flex; flex-direction: column; padding: 10px 14px 14px; font-size: 15px; line-height: 1.45; color: var(--text); }
.hx-box__body b { margin: 8px 0 1px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bc); }
.hx-box__body b:first-child { margin-top: 0; }
.hx-box--ink { --bc: var(--c-ink); }
.hx-box--teal { --bc: var(--c-teal); }
.hx-box--blue { --bc: var(--c-blue); }
.hx-box--slate { --bc: var(--c-slate); }
.hx-box--amber { --bc: var(--c-amber); }
.hx-box--main .hx-box__body { font-size: 15.5px; }
.hx-ar { position: relative; display: block; width: 28px; height: 2px; background: var(--ac); --ac: var(--c-ink); }
.hx-ar::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateY(-50%); }
.hx-ar--r::after { right: -2px; border-left: 9px solid var(--ac); }
.hx-ar--l::after { left: -2px; border-right: 9px solid var(--ac); }
.hx-ar--d { width: 2px; height: 28px; }
.hx-ar--d::after { top: auto; bottom: -2px; left: 50%; transform: translateX(-50%); border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--ac); }
.hx-ar--ink { --ac: var(--c-ink); }
.hx-ar--teal { --ac: var(--c-teal); }
.hx-ar--blue { --ac: var(--c-blue); }
.hx-ar--slate { --ac: var(--c-slate); }
.hx-ar--amber { --ac: var(--c-amber); }
.hx-fc__down { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.35fr) 40px minmax(0, 1fr); padding: 8px 0 0; }
.hx-fc__down .hx-ar { grid-column: 3; justify-self: center; }

.hx-gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hx-gates li { position: relative; display: flex; align-items: stretch; border: 2px solid var(--c-gate); border-radius: 8px; background: #fff; overflow: visible; }
.hx-gates li + li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 12px; height: 2px; background: var(--c-gate); }
.hx-gates li + li::after { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--c-gate); }
.hx-gate__id { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--c-gate); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1; border-radius: 5px 0 0 5px; padding: 8px 0; }
.hx-gate__id small { font-family: var(--font); font-weight: 500; font-size: 12.5px; margin-top: 5px; color: rgba(255, 255, 255, .85); }
.hx-gates p { margin: 0; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; align-self: center; }

.hx-grid { display: grid; gap: 10px; }
.hx-grid__head, .hx-grid__row { display: grid; grid-template-columns: 170px repeat(4, minmax(0, 1fr)); gap: 0 26px; align-items: stretch; }
.hx-grid__head span { font-size: 12.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #5E6B75; text-align: center; padding-bottom: 2px; }
.hx-grid__lab { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px 10px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 17px; line-height: 1.2; background: var(--lc); --lc: var(--c-ink); }
.hx-grid__lab small { margin-top: 3px; font-weight: 400; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.hx-grid__lab--teal { --lc: var(--c-teal); }
.hx-grid__lab--blue { --lc: var(--c-blue); }
.hx-grid__lab--slate { --lc: var(--c-slate); }
.hx-grid__lab--ink { --lc: var(--c-ink); }
.hx-grid__cell { position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 10px 12px; background: #F2F6F8; border: 1.5px solid #9FB0BC; border-radius: 6px; font-size: 14.5px; line-height: 1.4; }
.hx-grid__cell--end { background: #fff; border-color: var(--c-teal); }
.hx-grid__cell .hx-mono { font-size: 13.5px; color: #0B524B; }
.hx-grid__row > :not(:first-child)::before { content: ""; position: absolute; left: -22px; top: 50%; width: 14px; height: 2px; background: #6E8796; }
.hx-grid__row > :not(:first-child)::after { content: ""; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #6E8796; }
.hx-grid__row > .hx-grid__lab + .hx-grid__cell::before, .hx-grid__row > .hx-grid__lab + .hx-grid__cell::after { background: var(--c-teal); border-left-color: var(--c-teal); }
.hx-grid__row > .hx-grid__lab + .hx-grid__cell::after { background: transparent; }
.hx-fc__all { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 10px 12px; background: #F4F7F8; border: 1px solid var(--line); border-radius: 8px; }
.hx-fc__all span { padding: 6px 16px; border: 1.5px solid var(--c-ink); border-radius: 6px; background: #fff; font-size: 14.5px; }
.hx-fc__all .hx-fc__all-lab { border: 0; background: transparent; padding: 0 6px 0 2px; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: #5E6B75; }

@media (max-width: 1100px) {
	.hx-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-gates li:nth-child(3)::before, .hx-gates li:nth-child(3)::after { display: none; }
	.hx-grid__head, .hx-grid__row { grid-template-columns: 140px repeat(4, minmax(0, 1fr)); gap: 0 22px; }
}
@media (max-width: 860px) {
	.hx-fc { padding: 20px 16px 22px; }
	.hx-fc__top { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hx-fc__gut { flex-direction: row; justify-content: center; padding: 8px 0; }
	.hx-fc__gut .hx-ar { width: 2px; height: 24px; }
	.hx-fc__gut .hx-ar::after { top: auto; bottom: -2px; left: 50%; right: auto; transform: translateX(-50%); border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--ac); }
	.hx-fc__gut .hx-ar + .hx-ar { display: none; }
	.hx-fc__top > .hx-fc__gut:nth-child(4) .hx-ar::after { top: -2px; bottom: auto; border-top: 0; border-bottom: 9px solid var(--ac); }
	.hx-fc__down { display: flex; justify-content: center; }
	.hx-gates { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.hx-gates li + li::before { left: 50%; top: -17px; width: 2px; height: 10px; }
	.hx-gates li + li::after { left: 50%; top: -8px; transform: translateX(-50%); border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--c-gate); }
	.hx-gates li:nth-child(3)::before, .hx-gates li:nth-child(3)::after { display: block; }
	.hx-grid__head { display: none; }
	.hx-grid { gap: 18px; }
	.hx-grid__row { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
	.hx-grid__lab { border-radius: 0; align-items: flex-start; text-align: left; padding: 12px 14px; }
	.hx-grid__cell { text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 14px 12px; background: #fff; }
	.hx-grid__cell::before, .hx-grid__cell::after { display: none !important; }
	.hx-grid__cell[data-label]::before { display: block !important; content: attr(data-label); position: static; width: auto; height: auto; background: none; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5E6B75; }
	.hx-grid__cell--end { background: var(--mint-t); }
	.hx-grid__row > .hx-grid__lab + .hx-grid__cell[data-label]::before { background: none; width: auto; height: auto; }
}

/* ---------- Home: mutations-by-target table ---------- */
.hx-mtable { background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hx-mt { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.hx-mt thead th {
	position: sticky; top: 0;
	padding: 14px 16px; text-align: left; vertical-align: bottom;
	background: #1B2D39;
	color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .02em; line-height: 1.25;
	border: 0;
}
.hx-mt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hx-mt__group { --dc: #2B746E; --dt: #EAF3F1; }
.hx-mt__head th { padding: 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hx-mt__group:first-of-type .hx-mt__head th { border-top: 0; }
.hx-mt__headin {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 16px;
	background: linear-gradient(90deg, var(--dt) 0%, #fff 75%);
	box-shadow: inset 4px 0 0 var(--dc);
}
.hx-mt__mark { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--dc); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.hx-mt__title { display: flex; flex-direction: column; align-items: flex-start; min-width: 180px; text-align: left; }
.hx-mt__title a { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--ink); text-decoration: none; }
.hx-mt__title a:hover { color: var(--dc); }
.hx-mt__title > span { font-size: 14px; font-weight: 400; color: var(--muted); }
.hx-mt__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.hx-mt__meta > span { padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid rgba(24, 36, 47, .1); font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.hx-mt__meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-mt__go { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; background: var(--dc); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: filter .15s ease, transform .15s ease; }
.hx-mt__go:hover { filter: brightness(1.1); transform: translateX(2px); }
.hx-mt__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-mt tbody td { padding: 11px 16px; border-top: 1px solid #EDF1F3; vertical-align: middle; background: #fff; transition: background-color .15s ease; }
.hx-mt tbody tr:not(.hx-mt__head):hover td { background: #F5FAF9; }
.hx-mt__chain { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dt); color: var(--dc); border: 1.5px solid var(--dc); font-family: var(--font-mono); font-weight: 500; font-size: 14px; }
.hx-mt td i { font-style: italic; color: var(--ink); }
.hx-mt__locus { margin-left: 6px; font-family: var(--font-mono); font-size: 12.5px; color: #6B7882; }
.hx-mt__range { font-family: var(--font-mono); font-size: 14px; color: var(--text); white-space: nowrap; }
.hx-mt__bar { min-width: 230px; }
.hx-mt tbody .hx-mt__bar { display: flex; align-items: center; gap: 12px; }
.hx-mt__track { flex: 1; height: 8px; border-radius: 999px; background: #EDF2F4; overflow: hidden; }
.hx-mt__track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 55%, #fff)); }
.hx-mt__bar b { min-width: 58px; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-mt__pill { display: inline-block; min-width: 38px; padding: 2px 10px; border-radius: 999px; background: var(--mint-t); color: #0B524B; font-weight: 600; font-size: 13.5px; text-align: center; }
.hx-mt__pill--light { background: rgba(255, 255, 255, .16); color: #fff; }
.hx-mt__ann { color: var(--muted); }
.hx-mt tfoot td { padding: 14px 16px; background: #1B2D39; color: #fff; border: 0; font-variant-numeric: tabular-nums; }
.hx-mt tfoot td b { font-weight: 600; font-size: 16px; }
.hx-mt tfoot td span { margin-left: 8px; color: rgba(226, 240, 243, .78); font-size: 13.5px; }
.hx-mt tfoot .hx-mt__bar { text-align: right; }
.hx-mt__hint { display: none; margin: 0; padding: 8px 16px 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 960px) { .hx-mt__hint { display: block; } }
@media (max-width: 640px) {
	.hx-mtable { border-radius: 14px; }
	.hx-mt { font-size: 14px; }
	.hx-mt__headin { padding: 12px; }
	.hx-mt__meta { margin-left: 0; }
}

/* drug cards: tag keeps its natural width; crop the grey frame baked into the structure images */
.hx-drug__body .hx-tag { align-self: flex-start; }
.hx-drug__img { overflow: hidden; }


/* mutations table: stacked cards on phones */
@media (max-width: 640px) {
	.hx-mt__hint { display: none; }
	.hx-mt { min-width: 0; }
	.hx-mt thead { display: none; }
	.hx-mt, .hx-mt tbody, .hx-mt tfoot, .hx-mt tr, .hx-mt th, .hx-mt td { display: block; width: 100%; }
	.hx-mt tbody tr:not(.hx-mt__head) {
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px 12px;
		padding: 14px 14px 14px 12px;
		border-top: 1px solid #EDF1F3;
	}
	.hx-mt tbody tr:not(.hx-mt__head):hover td { background: transparent; }
	.hx-mt tbody td { padding: 0 !important; border: 0 !important; text-align: left !important; background: transparent; }
	.hx-mt td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #6B7882; }
	.hx-mt__c-chain { grid-column: 1; grid-row: 1 / span 4; }
	.hx-mt__c-gene { grid-column: 2 / span 2; }
	.hx-mt__range { grid-column: 2; }
	.hx-mt__c-pos { grid-column: 3; }
	.hx-mt tbody .hx-mt__bar { grid-column: 2 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-width: 0; }
	.hx-mt tbody .hx-mt__bar::before { grid-column: 1 / -1; }
	.hx-mt__c-feat { grid-column: 2; }
	.hx-mt__ann { grid-column: 3; }
	.hx-mt__locus { margin-left: 4px; }
	.hx-mt__headin { gap: 10px; }
	.hx-mt__title { min-width: 0; flex: 1; }
	.hx-mt__meta { order: 3; width: 100%; }
	.hx-mt__go { margin-left: auto; }
	.hx-mt tfoot tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; background: #1B2D39; }
	.hx-mt tfoot td { padding: 0 !important; background: transparent !important; text-align: left !important; }
	.hx-mt tfoot td:first-child { grid-column: 1 / -1; }
	.hx-mt tfoot td[data-label]::before { color: rgba(226, 240, 243, .7); }
	.hx-mt tfoot td span { display: block; margin: 2px 0 0; }
}


/* ---------- Buttons: one clean system for every page ---------- */
.hx-page .btn, .hx-page a.btn, .hx-page button.btn, .hx-page .waves-effect.btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	height: auto !important;
	padding: 9px 18px !important;
	margin: 6px 10px 6px 0 !important;
	vertical-align: middle;
	font-size: 15px !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	border-radius: 10px !important;
	float: none;
	position: relative;
}
.hx-page .btn .material-icons, .hx-page .btn > i { float: none !important; margin: 0 !important; font-size: 18px !important; line-height: 1 !important; height: auto !important; width: auto !important; }
.hx-page .btn.right { float: right; min-height: 36px; width: 38px; padding: 0 !important; margin: -4px 0 0 12px !important; background: #fff !important; color: var(--ink) !important; border: 1px solid #D5DDE2 !important; }
.hx-page .btn:disabled, .hx-page .btn.disabled, .hx-page .btn[disabled] {
	background: #EEF2F4 !important;
	color: #7D8A93 !important;
	border: 1px solid #D9E0E4 !important;
	box-shadow: none !important;
	cursor: not-allowed;
}
.hx-page .file-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.hx-page .file-field .btn { margin: 0 !important; float: none !important; overflow: hidden; }
.hx-page .file-field .btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.hx-page .file-field .file-path-wrapper { flex: 1 1 200px; width: auto !important; padding: 0 !important; margin: 0 !important; overflow: visible; }
.hx-page .file-field .file-path-wrapper [class*="span"] { width: 100% !important; margin: 0 !important; float: none !important; }
.hx-page .file-field .file-path-wrapper input { margin: 0 !important; width: 100% !important; }
.hx-page .dt-buttons { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.hx-page .dt-buttons .dt-button, .hx-page .dt-buttons .btn { margin: 0 !important; min-height: 36px; padding: 6px 14px !important; font-size: 14px !important; border-radius: 8px !important; background: #fff !important; color: var(--ink) !important; border: 1px solid #D5DDE2 !important; }
.modal-footer .btn { margin: 0 0 0 8px !important; }

/* ---------- Images: no frames anywhere ---------- */
.hx-page img, .hx-home img { border: 0 !important; }
.hx-page .img-polaroid, .hx-page .thumbnail img, .hx-page .card-image img { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }

@media (max-width: 640px) {
	.hx-page .btn, .hx-page a.btn, .hx-page button.btn { padding: 9px 14px !important; font-size: 14.5px !important; }
}
/* secondary buttons (Help, modal triggers) and disabled buttons beat the Materialize teal rule */
.hx-page .waves-effect.waves-light.btn[data-toggle="modal"]:not(.grey), .hx-page .btn[data-toggle="modal"],
.hx-page .waves-effect.waves-light.btn[style*="#e0e3e5"]:not(.grey) {
	background-color: #fff !important;
	color: var(--ink) !important;
	border: 1px solid #C9D3DA !important;
}
.hx-page .waves-effect.waves-light.btn[data-toggle="modal"]:not(.grey):hover, .hx-page .btn[data-toggle="modal"]:hover { background-color: #F1F5F6 !important; }
.hx-page .waves-effect.waves-light.btn:not(.grey):disabled, .hx-page .waves-effect.waves-light.btn:not(.grey).disabled,
.hx-page .btn:disabled, .hx-page .btn.disabled {
	background-color: #EEF2F4 !important;
	color: #7D8A93 !important;
	border: 1px solid #D9E0E4 !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

/* footer link row: no rule above it */
.hx-footer__bottom { border-top: 0 !important; padding-top: 0 !important; margin-top: 30px !important; }

/* ---------- Drug colours, from the original HARP home page buttons ----------
   --drug: the original colour (accents, bars, dots); --drug-d: deeper shade for buttons and text
   (white text stays readable); --drug-dd: hover; --drug-t: light tint. */
.hx-drug--rifampicin, .hx-mt--rifampicin, .hx-target--rifampicin, .hx-dd--rifampicin { --drug: #18BC9C; --drug-d: #0F8A72; --drug-dd: #0B6E5B; --drug-t: #E3F6F1; --dc: #0F8A72; --dt: #E3F6F1; }
.hx-drug--dapsone, .hx-mt--dapsone, .hx-target--dapsone, .hx-dd--dapsone { --drug: #61A1F4; --drug-d: #2F74C9; --drug-dd: #245DA3; --drug-t: #EAF2FD; --dc: #2F74C9; --dt: #EAF2FD; }
.hx-drug--ofloxacin, .hx-mt--ofloxacin, .hx-target--ofloxacin, .hx-dd--ofloxacin { --drug: #F5B041; --drug-d: #A86A12; --drug-dd: #87540C; --drug-t: #FEF5E4; --dc: #A86A12; --dt: #FEF5E4; }

/* drug page header band: slate with a glow in the drug colour and an accent rule */
body[class*="hx-drug--"] #inner-headline {
	background-image:
		radial-gradient(720px 280px at 90% 0%, color-mix(in srgb, var(--drug) 34%, transparent), transparent 64%),
		radial-gradient(560px 280px at 0% 100%, color-mix(in srgb, var(--drug) 18%, transparent), transparent 60%),
		linear-gradient(135deg, #17222C 0%, #1C2D39 55%, color-mix(in srgb, var(--drug) 30%, #1C2D39) 100%) !important;
}
body[class*="hx-drug--"] #inner-headline h2::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	border-radius: 2px;
	margin-bottom: 14px;
	background: color-mix(in srgb, var(--drug) 70%, #fff);
}
/* drug page controls */
body[class*="hx-drug--"] .waves-effect.waves-light.btn:not(.grey), body[class*="hx-drug--"] .btn-primary, body[class*="hx-drug--"] .hx-btn--primary { background-color: var(--drug-d) !important; border-color: var(--drug-d) !important; }
body[class*="hx-drug--"] .waves-effect.waves-light.btn:not(.grey):hover, body[class*="hx-drug--"] .hx-btn--primary:hover { background-color: var(--drug-dd) !important; }
body[class*="hx-drug--"] .nav .nav-link:hover, body[class*="hx-drug--"] .nav .nav-link.active { background: var(--drug-t) !important; border-color: color-mix(in srgb, var(--drug) 45%, #fff) !important; color: var(--drug-d) !important; }
body[class*="hx-drug--"] .card[style*="#FCF0CF"], body[class*="hx-drug--"] .card[style*="#fcf0cf"] {
	background: linear-gradient(90deg, var(--drug-t) 0%, #FAFBFB 60%, #FFFFFF 100%) !important;
	box-shadow: inset 3px 0 0 var(--drug) !important;
}
body[class*="hx-drug--"] input:not(.msp-plugin *):focus, body[class*="hx-drug--"] textarea:not(.msp-plugin *):focus { border-color: var(--drug) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--drug) 20%, transparent) !important; }
body[class*="hx-drug--"] .hx-impact-head__label { color: var(--ink); }
body[class*="hx-drug--"] .card .row-fluid > [class*="span"][style*="border-radius"] { border-top: 3px solid var(--drug) !important; }
/* home drug cards */
.hx-drug.hx-drug--rifampicin, .hx-drug.hx-drug--dapsone, .hx-drug.hx-drug--ofloxacin { border-top: 4px solid var(--drug); }
.hx-drug[class*="hx-drug--"] .hx-tag { background: var(--drug-t); color: var(--drug-d); }
.hx-drug[class*="hx-drug--"] .hx-btn--primary { background: var(--drug-d); }
.hx-drug[class*="hx-drug--"] .hx-btn--primary:hover { background: var(--drug-dd); }
.hx-drug[class*="hx-drug--"] .hx-drug__pubchem { background: var(--drug-t); color: var(--drug-d); }
.hx-drug[class*="hx-drug--"] .hx-drug__body { background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--drug-t) 55%, #fff) 100%); }
/* navigation dropdown dots */
.hx-dd__menu a[class*="hx-dd--"] b { display: flex; align-items: center; gap: 8px; }
.hx-dd__menu a[class*="hx-dd--"] b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--drug); flex-shrink: 0; }
.hx-dd__menu a[class*="hx-dd--"] small { padding-left: 18px; }

/* ---------- Browse: faceted filters ---------- */
.hx-browse { padding-top: 28px; }
.hx-bgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.hx-bcard { background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 16px; box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }
.hx-bstep { display: flex; align-items: center; gap: 10px; font-size: 22px !important; margin: 0 0 14px !important; }
.hx-bstep span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-family: var(--font); }
.hx-bnote { margin: -4px 0 8px; color: var(--muted); font-size: 15px; }
.hx-targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-target { position: relative; display: flex; flex-direction: column; margin: 0 !important; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.hx-target:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.hx-target input { position: absolute; opacity: 0; pointer-events: none; }
.hx-target__img { display: block; background: #fff; }
.hx-target__img img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; padding: 10px 14px 2px; }
.hx-target__txt { display: flex; flex-direction: column; padding: 10px 14px 14px; border-top: 3px solid transparent; }
.hx-target__txt b { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--ink); line-height: 1.15; }
.hx-target__txt small { color: var(--muted); font-size: 13.5px; }
.hx-target__txt em { margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--drug-d); }
.hx-target.is-checked, .hx-target:has(input:checked) { border-color: var(--drug); box-shadow: 0 0 0 3px color-mix(in srgb, var(--drug) 24%, transparent); }
.hx-target.is-checked .hx-target__txt, .hx-target:has(input:checked) .hx-target__txt { border-top-color: var(--drug); background: var(--drug-t); }
.hx-target input:focus-visible ~ .hx-target__txt { outline: 3px solid color-mix(in srgb, var(--drug) 40%, transparent); outline-offset: -3px; }
.hx-facet { border: 0; margin: 0; padding: 16px 0 14px; border-top: 1px solid #EEF2F4; min-width: 0; }
.hx-facet:first-of-type { border-top: 0; padding-top: 6px; }
.hx-facet legend { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; width: auto; margin: 0; padding: 0; font-size: 16px; border: 0; }
.hx-facet legend b { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); }
.hx-facet legend small { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.hx-facet__bar { display: flex; height: 8px; margin: 10px 0 12px; border-radius: 999px; overflow: hidden; background: #EEF2F4; }
.hx-facet__bar span { display: block; height: 100%; transition: width .25s ease, opacity .2s ease; }
.hx-facet__bar span.is-dim { opacity: .22; }
.hx-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-opt { position: relative; margin: 0 !important; cursor: pointer; --oc: #A9B3BA; }
.hx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hx-opt i { display: none; }
.hx-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border: 1px solid #D5DDE2; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.hx-opt span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--oc); flex-shrink: 0; }
.hx-opt--any span::before { display: none; }
.hx-opt em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #F1F4F6; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.hx-opt:hover span { border-color: #AEBBC4; }
.hx-opt input:checked ~ span { background: var(--ink); border-color: var(--ink); color: #fff; }
.hx-opt input:checked ~ span em { background: rgba(255, 255, 255, .16); color: #fff; }
.hx-opt input:focus-visible ~ span { outline: 3px solid rgba(43, 116, 110, .4); outline-offset: 2px; }
.hx-opt.is-empty span { opacity: .42; }
.hx-opt--highly-destabilizing { --oc: #A8323E; }
.hx-opt--destabilizing { --oc: #D9776F; }
.hx-opt--neutral { --oc: #A9B3BA; }
.hx-opt--stabilizing { --oc: #6FA3C7; }
.hx-opt--highly-stabilizing { --oc: #2F5B80; }
.hx-opt--no-info, .hx-opt--not-applicable { --oc: #CBD3D8; }
.hx-bside { position: sticky; top: 86px; }
.hx-bsum {
	color: #fff;
	border-radius: 18px;
	padding: 22px;
	box-shadow: var(--shadow-lg);
	background:
		radial-gradient(320px 160px at 100% 0%, rgba(155, 216, 206, .14), transparent 65%),
		linear-gradient(160deg, #17222C 0%, #1D3040 65%, #24434A 100%);
}
.hx-bsum__k { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(226, 240, 243, .7); }
.hx-bsum__n { margin: 6px 0 2px; font-family: var(--font-head); font-weight: 700; font-size: 54px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hx-bsum__of { margin: 0 0 18px; font-size: 14.5px; color: rgba(226, 240, 243, .82); }
.hx-impact--dark { background: rgba(255, 255, 255, .12); height: 12px; }
.hx-impact__legend--dark { margin-top: 12px; font-size: 14px; color: #E7EFF1; }
.hx-impact__legend--dark b { color: #fff; }
.hx-impact__legend--dark span { color: rgba(226, 240, 243, .7); }
.hx-bsum__go { width: 100%; margin-top: 20px; background: #fff; color: var(--ink) !important; }
.hx-bsum__go:hover { background: #EEF4F3; }
.hx-bsum__go.is-disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .6) !important; cursor: not-allowed; }
.hx-js .hx-nojs { display: none; }
.hx-bsum__reset { display: block; width: 100%; margin-top: 10px; padding: 6px; border: 0; background: none; color: rgba(226, 240, 243, .8); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hx-bsum__reset:hover { color: #fff; }

/* ---------- Browse results ---------- */
.hx-bres { padding-top: 28px; }
.hx-bres__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hx-bres__count { display: flex; align-items: center; gap: 14px; }
.hx-bres__mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--drug-d); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.hx-bres__n { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); }
.hx-bres__n small { font-size: 20px; font-weight: 600; color: var(--muted); }
.hx-bres__sub { margin: 4px 0 0; color: var(--muted); }
.hx-bres__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hx-btn--outline { background: #fff; color: var(--ink) !important; border-color: #C9D3DA; }
.hx-btn--outline:hover { background: #F1F5F6; }
.hx-fchips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.hx-fchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid #DDE4E8; border-radius: 999px; background: #F8FAFB; font-size: 14px; }
.hx-fchip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--oc, #A9B3BA); }
.hx-fchip.hx-opt--any::before { background: #fff; border: 1.5px dashed #A9B3BA; }
.hx-fchip span { color: var(--muted); }
.hx-fchip b { font-weight: 600; color: var(--ink); }
.hx-bres__viz { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #EEF2F4; }
.hx-bres__k { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #6B7882; }
.hx-impact__legend--row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hx-impact__legend--row li b { margin-left: 4px; }
.hx-chainbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hx-chainbars li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px; align-items: center; gap: 10px; }
.hx-chainbars__track { height: 8px; border-radius: 999px; background: #EEF2F4; overflow: hidden; }
.hx-chainbars__track span { display: block; height: 100%; border-radius: 999px; background: var(--dc); }
.hx-chainbars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-bres__note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #FFF8EC; border: 1px solid #F1DFBF; color: #6B4E1E; font-size: 15px; }
.hx-bres__empty h3 { margin: 0 0 6px !important; }
.hx-bres__table { padding: 18px 20px; overflow-x: auto; }
.hx-bres__table table.dataTable { border-collapse: separate !important; border-spacing: 0; border: 0 !important; font-size: 15px; }
.hx-bres__table table.dataTable thead th { background: #1B2D39 !important; color: #fff !important; border: 0 !important; padding: 12px 14px !important; font-size: 13.5px; }
.hx-bres__table table.dataTable thead th:first-child { border-radius: 10px 0 0 0; }
.hx-bres__table table.dataTable thead th:last-child { border-radius: 0 10px 0 0; }
.hx-bres__table table.dataTable tbody td { padding: 10px 14px !important; border-top: 1px solid #EDF1F3 !important; }
.hx-bres__table .dataTables_filter input { height: 40px !important; margin: 0 0 10px 8px !important; }
.hx-bres__table .dataTables_info { color: var(--muted); font-size: 14px; padding-top: 14px !important; }
.hx-bres__table .dataTables_paginate { padding-top: 10px !important; }
.hx-bres__table .dataTables_paginate .paginate_button { border-radius: 8px !important; border: 1px solid transparent !important; padding: 5px 11px !important; }
.hx-bres__table .dataTables_paginate .paginate_button.current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.hx-bres__table .dt-buttons .dt-button { border-radius: 8px !important; background: #fff !important; border: 1px solid #D5DDE2 !important; padding: 6px 14px !important; font-size: 14px; margin: 0 6px 10px 0 !important; }
.hx-cell { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.hx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oc, #A9B3BA); flex-shrink: 0; }
.hx-mutlink { font-family: var(--font-mono); font-weight: 500; color: var(--drug-d, var(--teal-d)) !important; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--drug, #2B746E) 35%, transparent); }
.hx-mutlink:hover { border-bottom-color: currentColor; }
.hx-bres__table .hx-impact-badge { font-size: 13.5px; padding: 3px 11px; }

@media (max-width: 1080px) { .hx-bgrid { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 900px) {
	.hx-bgrid { grid-template-columns: minmax(0, 1fr); }
	.hx-bside { position: sticky; top: auto; bottom: 10px; z-index: 20; }
	.hx-bsum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 16px; }
	.hx-bsum__k, .hx-bsum__viz, .hx-bsum__reset { display: none; }
	.hx-bsum__n { grid-column: 1; margin: 0; font-size: 30px; }
	.hx-bsum__of { grid-column: 1; margin: 0; font-size: 13px; }
	.hx-bsum__go { grid-column: 2; grid-row: 1 / span 2; width: auto; margin: 0; padding: 10px 16px; font-size: 15px; }
	.hx-bres__viz { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
	.hx-bcard { padding: 18px 16px; }
	.hx-targets { grid-template-columns: 1fr; gap: 10px; }
	.hx-target { flex-direction: row; align-items: stretch; }
	.hx-target__img { flex: 0 0 38%; }
	.hx-target__img img { height: 100%; aspect-ratio: auto; padding: 8px; }
	.hx-target__txt { border-top: 0; border-left: 3px solid transparent; justify-content: center; }
	.hx-target.is-checked .hx-target__txt { border-left-color: var(--drug); }
	.hx-opt span { font-size: 14px; padding: 6px 9px 6px 10px; }
	.hx-bres__n { font-size: 32px; }
}
.hx-target__check { position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C9D3DA; background: #fff; }
.hx-target.is-checked .hx-target__check, .hx-target:has(input:checked) .hx-target__check { border-color: var(--drug-d); background: var(--drug-d); }
.hx-target.is-checked .hx-target__check::after, .hx-target:has(input:checked) .hx-target__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hx-bres__table table.dataTable td, .hx-bres__table table.dataTable th { border-left: 0 !important; border-right: 0 !important; }
.hx-bres__table table.dataTable tbody tr:hover td { background: color-mix(in srgb, var(--drug-t, #EAF3F1) 70%, #fff) !important; }

/* ---------- Single-mutation results dashboard ---------- */
.hx-mres { padding-top: 28px; --neg: #B23A48; --neg-t: #FBE9EB; --pos: #2F6E9E; --pos-t: #E7F0F8; --neu: #6B7882; --neu-t: #F0F3F5; }
.hx-mhero {
	display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0;
	background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.hx-mhero__main { padding: 26px 28px; border-top: 4px solid var(--drug, var(--teal)); }
.hx-mhero__side { padding: 26px 26px; background: linear-gradient(160deg, #F7FAFB 0%, color-mix(in srgb, var(--drug-t, #EAF3F1) 60%, #fff) 100%); border-left: 1px solid #EDF1F3; border-top: 4px solid var(--drug, var(--teal)); }
.hx-mhero__k { margin: 0 0 6px !important; font-size: 12.5px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B7882 !important; }
.hx-mhero__code { display: flex; align-items: baseline; gap: 2px; margin: 0 0 18px !important; font-family: var(--font-mono) !important; font-weight: 500 !important; font-size: clamp(40px, 5vw, 60px) !important; line-height: 1 !important; color: var(--ink); }
.hx-aa { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15em; padding: 0 .08em; border-radius: 12px; }
.hx-aa--wild { background: #EEF2F4; color: var(--ink); }
.hx-aa--mut { background: var(--drug-d, var(--teal)); color: #fff; }
.hx-mhero__pos { padding: 0 .12em; color: #6B7882; }
.hx-swap { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.hx-swap__arrow { width: 40px; flex-shrink: 0; align-self: center; fill: none; stroke: #9AA7B1; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-res { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rc-b, #DDE4E8); background: var(--rc-t, #F7F9FA); }
.hx-res__k { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #6B7882; }
.hx-res b { font-size: 17px; font-weight: 600; color: var(--ink); }
.hx-res__t { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--rc, #56636E); font-weight: 600; }
.hx-res__t::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rc, #9AA7B1); }
.hx-res--neg { --rc: #B23A48; --rc-t: #FCF0F1; --rc-b: #F2CDD2; }
.hx-res--pos { --rc: #2F6E9E; --rc-t: #EEF4FA; --rc-b: #C9DCEC; }
.hx-res--aro { --rc: #7A4FA0; --rc-t: #F5F0FA; --rc-b: #DDCFEA; }
.hx-res--pol { --rc: #1F7F74; --rc-t: #EDF7F5; --rc-b: #C7E5DF; }
.hx-res--ali { --rc: #8A6D2F; --rc-t: #FAF6EC; --rc-b: #E8DCBE; }
.hx-mhero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hx-mhero__actions .hx-btn { min-height: 42px; font-size: 15px; }
.hx-mhero__impact { display: inline-flex !important; font-size: 20px !important; padding: 7px 18px !important; margin: 2px 0 14px !important; }
.hx-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hx-meter__seg { height: 12px; border-radius: 4px; background: #E3E8EB; }
.hx-meter__seg--low.is-on { background: #2E8B57; }
.hx-meter__seg--moderate.is-on { background: #D08A2E; }
.hx-meter__seg--high.is-on { background: #B42335; }
.hx-meter__labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; font-size: 12.5px; color: #6B7882; text-align: center; }
.hx-evidence { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #E3E8EB; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.hx-evidence b { font-weight: 600; color: var(--muted); }
.hx-evidence.is-yes { border-color: color-mix(in srgb, var(--drug, #2B746E) 40%, #fff); background: color-mix(in srgb, var(--drug-t, #EAF3F1) 70%, #fff); }
.hx-evidence.is-yes b { color: var(--drug-dd, var(--ink)); }
.hx-mhero__help { margin: 14px 0 0 !important; font-size: 13.5px !important; color: var(--muted) !important; }
.hx-jump { position: sticky; top: 74px; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; padding: 8px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(24, 36, 47, .08); border-radius: 14px; box-shadow: 0 4px 14px rgba(16, 24, 40, .06); }
.hx-jump a { padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink) !important; text-decoration: none !important; }
.hx-jump a:hover { background: var(--drug-t, var(--mint-t)); color: var(--drug-dd, var(--ink)) !important; }
.hx-msec { padding-top: 26px; scroll-margin-top: 140px; }
.hx-msec__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hx-msec__head h3 { margin: 0 !important; font-size: clamp(24px, 2.4vw, 30px) !important; }
.hx-msec__head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.hx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-pc {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px;
	background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 22px rgba(16, 24, 40, .05);
	--tc: var(--neu); --tt: var(--neu-t);
}
.hx-pc--neg { --tc: var(--neg); --tt: var(--neg-t); }
.hx-pc--pos { --tc: var(--pos); --tt: var(--pos-t); }
.hx-pc::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--tc); opacity: .85; }
.hx-pc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hx-pc__head h4 { margin: 0 !important; font-size: 18px !important; color: var(--ink); }
.hx-pc__tool { font-family: var(--font-mono); font-size: 12.5px; color: #5E6B75 !important; text-decoration: none !important; white-space: nowrap; }
a.hx-pc__tool:hover { color: var(--drug-dd, var(--teal-d)) !important; text-decoration: underline !important; }
.hx-pc__val { margin: 4px 0 2px !important; display: flex; align-items: baseline; gap: 6px; }
.hx-pc__val b { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-pc__val small { font-size: 13.5px; color: var(--muted); }
.hx-pc__big { margin: 6px 0 4px !important; font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--tc); }
.hx-pc__out { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: 4px 0 0 !important; padding: 3px 11px; border-radius: 999px; background: var(--tt); color: var(--tc); font-size: 13.5px !important; font-weight: 600; }
.hx-pc__out i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hx-pc__note { margin: 4px 0 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; color: var(--muted) !important; }
.hx-pc__extra { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed #E3E8EB; }
.hx-pc__extra div { display: flex; flex-direction: column; }
.hx-pc__extra dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7C8A94; }
.hx-pc__extra dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-gauge { position: relative; height: 10px; margin: 10px 2px 2px; border-radius: 999px; background: linear-gradient(90deg, #F2C9CE 0%, #F7E6E8 30%, #EEF1F3 50%, #E1EBF4 70%, #C9DCEC 100%); }
.hx-gauge__zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #9AA7B1; border-radius: 1px; }
.hx-gauge__mark { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed #B23A48; }
.hx-gauge__dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--tc); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--tc), 0 2px 6px rgba(16, 24, 40, .25); }
.hx-gauge__ends { display: flex; justify-content: space-between; font-size: 12px; color: #7C8A94; }
.hx-ss { display: flex; align-items: center; gap: 14px; margin: 6px 0 0 !important; }
.hx-ss span { display: flex; flex-direction: column; align-items: center; }
.hx-ss small { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7C8A94; }
.hx-ss b { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.hx-ss svg { width: 40px; fill: none; stroke: #9AA7B1; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-ri { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.hx-ri__track { height: 8px; border-radius: 999px; background: #EEF2F4; overflow: hidden; }
.hx-ri__track span { display: block; height: 100%; background: var(--tc); border-radius: 999px; }
.hx-ri b { color: var(--ink); font-weight: 600; }
.hx-dist { margin-top: 16px; padding: 16px 18px; background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 22px rgba(16, 24, 40, .05); }
.hx-dist ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.hx-dist li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 110px; align-items: center; gap: 14px; font-size: 15px; }
.hx-dist li b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-dist__track { position: relative; height: 12px; border-radius: 999px; background: #EEF2F4; overflow: hidden; }
.hx-dist__track::after { content: ""; position: absolute; left: 12.5%; top: 0; bottom: 0; border-left: 2px dashed #B23A48; opacity: .7; }
.hx-dist__track span { display: block; height: 100%; border-radius: 999px; background: #A9B6BF; }
.hx-dist li.is-near .hx-dist__track span { background: var(--drug-d, var(--teal)); }
.hx-dist li.is-near b { color: var(--drug-dd, var(--teal-d)); }
.hx-dist li.is-na b { color: var(--muted); font-weight: 500; }
.hx-dist__axis { position: relative; margin: 8px 110px 0 184px; height: 16px; font-size: 12px; color: #7C8A94; }
.hx-dist__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.hx-dist__axis span:nth-child(1) { left: 0; transform: none; }
.hx-dist__axis span:nth-child(2) { left: 12.5%; color: #B23A48; font-weight: 600; }
.hx-dist__axis span:nth-child(3) { left: 50%; }
.hx-dist__axis span:nth-child(4) { left: auto; right: 0; transform: none; }
.hx-fx { margin-top: 16px; padding: 16px 18px; background: #fff; border: 1px solid rgba(24, 36, 47, .08); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 22px rgba(16, 24, 40, .05); }
.hx-fx ul { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.hx-fx li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 64px; align-items: center; gap: 10px; font-size: 14.5px; cursor: help; }
.hx-fx li b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-fx__track { position: relative; height: 12px; border-radius: 4px; background: #F1F4F6; }
.hx-fx__zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #9AA7B1; }
.hx-fx__bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.hx-fx__bar.is-pos { background: #C9737D; }
.hx-fx__bar.is-neg { background: #6F9CC4; }

@media (max-width: 1100px) {
	.hx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-fx ul { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.hx-mhero { grid-template-columns: 1fr; }
	.hx-mhero__side { border-left: 0; border-top: 1px solid #EDF1F3; }
	.hx-jump { top: 64px; overflow-x: auto; flex-wrap: nowrap; }
	.hx-jump a { white-space: nowrap; }
}
@media (max-width: 640px) {
	.hx-mhero__main, .hx-mhero__side { padding: 20px 18px; }
	.hx-tiles, .hx-tiles--3 { grid-template-columns: 1fr; }
	.hx-swap__arrow { transform: rotate(90deg); margin: 0 auto; }
	.hx-res { flex-basis: 100%; }
	.hx-dist li { grid-template-columns: 1fr auto; gap: 6px 10px; }
	.hx-dist li .hx-dist__track { grid-column: 1 / -1; grid-row: 2; }
	.hx-dist__axis { margin: 8px 0 0; }
	.hx-fx li { grid-template-columns: 120px minmax(0, 1fr) 56px; font-size: 13.5px; }
	.hx-mhero__actions .hx-btn { flex: 1 1 100%; }
}
.hx-dist, .hx-fx, .hx-pc, .hx-mhero { float: none !important; width: auto !important; }
.hx-msec, .hx-jump { clear: both; }
.hx-footer__links, .hx-footer nav { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
