/* IPMX Registry Chrome: the AIMS site chrome (solutions.aimsalliance.org) and the
   ipmx.io chrome (registry.ipmx.io) around the registry plugin's own surfaces.
   Light-only by decision (the marketing sites do not support dark mode). */

:root {
	--chrome-teal: #028698;
	--chrome-teal-soft: #7cc2d3;
	--chrome-ink: #4c4c4c;
	--chrome-ink-ipmx: #61636d;
	--chrome-muted: #828282;
	--chrome-line: #eaeaea;
	--chrome-dark: #2c2c2c;
	--chrome-darker: #282828;
	--chrome-font-aims: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--chrome-font-aims-nav: Roboto, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--chrome-font-ipmx: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--chrome-max: 1140px;
}

html { background: #fff; }
body { margin: 0; background: #fff; }
body.ipmx-chrome--aims { font-family: var(--chrome-font-aims); color: var(--chrome-ink); }
body.ipmx-chrome--ipmx { font-family: var(--chrome-font-ipmx); color: var(--chrome-ink-ipmx); }

.chrome-container {
	box-sizing: border-box;
	max-width: var(--chrome-max);
	margin: 0 auto;
	padding: 0 15px;
}

.chrome-skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: #fff;
	color: var(--chrome-teal);
	padding: 8px 12px;
	z-index: 1000;
}
.chrome-skip:focus { left: 8px; top: 8px; }

/* ---------- Top bar (AIMS) ---------- */
.chrome-topbar {
	height: 43px;
	border-bottom: 1px solid #f2f2f2;
	font-size: 13px;
	color: var(--chrome-muted);
}
.chrome-topbar__inner {
	height: 43px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.chrome-topbar__contact a { color: var(--chrome-muted); text-decoration: none; }
.chrome-topbar__contact a:hover { color: var(--chrome-teal); }
.chrome-topbar__sep { margin: 0 8px; color: #c4c4c4; }
.chrome-social { display: inline-flex; gap: 14px; align-items: center; }
.chrome-social a { color: var(--chrome-muted); display: inline-flex; }
.chrome-social a:hover { color: var(--chrome-teal); }
.chrome-icon { width: 16px; height: 16px; display: block; }

/* ---------- Header band ---------- */
.chrome-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: relative;
}
.chrome-logo { display: inline-flex; align-items: center; line-height: 0; }
.chrome-logo img { display: block; height: auto; }

.chrome-header--aims { background: var(--chrome-teal); }
.chrome-header--aims .chrome-header__inner { min-height: 144px; }
.chrome-header--aims .chrome-logo img { width: 272px; max-width: 60vw; }

.chrome-header--ipmx { background: #fff; border-bottom: 1px solid var(--chrome-line); }
.chrome-header--ipmx .chrome-header__inner { min-height: 96px; }
.chrome-header--ipmx .chrome-logo img { width: 232px; max-width: 58vw; }

/* ---------- Navigation ---------- */
.chrome-nav__toggle { position: absolute; opacity: 0; pointer-events: none; }
.chrome-nav__burger { display: none; }
.chrome-nav__list, .chrome-nav__sub { list-style: none; margin: 0; padding: 0; }
.chrome-nav__list { display: flex; align-items: center; }
.chrome-nav__item { position: relative; }
.chrome-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	padding: 10px 0;
	white-space: nowrap;
}
.chrome-nav__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.85;
}
.chrome-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--chrome-line);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
	z-index: 50;
}
.chrome-nav__item:hover > .chrome-nav__sub,
.chrome-nav__item:focus-within > .chrome-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.chrome-nav__sub a {
	display: block;
	padding: 8px 18px;
	font-size: 14px;
	color: var(--chrome-ink);
	text-decoration: none;
	text-transform: none;
}
.chrome-nav__sub a:hover { color: var(--chrome-teal); background: #f6f9fa; }

/* AIMS: white uppercase Roboto, pipe separators, soft-teal current item */
.chrome-header--aims .chrome-nav__link {
	font-family: var(--chrome-font-aims-nav);
	font-size: 15px;
	text-transform: uppercase;
	color: #fff;
}
.chrome-header--aims .chrome-nav__item + .chrome-nav__item::before {
	content: "|";
	color: var(--chrome-teal-soft);
	margin: 0 12px;
}
.chrome-header--aims .chrome-nav__item.is-current > .chrome-nav__link,
.chrome-header--aims .chrome-nav__link:hover { color: var(--chrome-teal-soft); }

/* IPMX: teal Lato, thin light separators */
.chrome-header--ipmx .chrome-nav__link {
	font-family: var(--chrome-font-ipmx);
	font-size: 15px;
	color: var(--chrome-teal);
}
.chrome-header--ipmx .chrome-nav__item + .chrome-nav__item::before {
	content: "|";
	color: #d9d9d9;
	margin: 0 11px;
	font-size: 12px;
}
.chrome-header--ipmx .chrome-nav__item.is-current > .chrome-nav__link,
.chrome-header--ipmx .chrome-nav__link:hover { color: #016b7a; }

/* ---------- Main ---------- */
.chrome-main { min-height: 50vh; }
.chrome-content { padding: 32px 15px 48px; }
.chrome-article__title { font-size: 2rem; margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.chrome-footer a { text-decoration: none; }
.chrome-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding: 44px 15px 40px;
}
.chrome-footer__heading {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}
.chrome-footer p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.chrome-footer__sep { margin: 0 6px; opacity: 0.6; }

.chrome-footer--aims { background: var(--chrome-dark); color: #c9c9c9; font-family: var(--chrome-font-aims); }
.chrome-footer--aims a { color: #fff; }
.chrome-footer--aims a:hover { color: var(--chrome-teal-soft); }
.chrome-footer__cta {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--chrome-teal-soft);
	border-radius: 3px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.chrome-footer--aims .chrome-footer__bar { background: var(--chrome-darker); }
.chrome-footer__bar-inner {
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13px;
}
.chrome-footer__left { display: inline-flex; align-items: center; gap: 18px; }
.chrome-social--footer a { color: #fff; }
.chrome-footer__copyright { color: rgba(255, 255, 255, 0.7); }
.chrome-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.chrome-footer__links li + li::before { content: "|"; margin: 0 10px; color: rgba(255, 255, 255, 0.35); }
.chrome-footer__links a { color: #fff; }

.chrome-footer--ipmx { background: var(--chrome-teal); color: #fff; font-family: var(--chrome-font-ipmx); }
.chrome-footer--ipmx a { color: #fff; font-weight: 700; }
.chrome-footer--ipmx a:hover { text-decoration: underline; }
.chrome-footer--ipmx .chrome-footer__columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; }
.chrome-footer__list { list-style: none; margin: 0; padding: 0; }
.chrome-footer__list li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	padding: 12px 0 12px 16px;
	position: relative;
	font-size: 14px;
}
.chrome-footer__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	width: 6px;
	height: 6px;
	border-right: 2px solid #fff;
	border-top: 2px solid #fff;
	transform: rotate(45deg);
}
.chrome-footer__list a { font-weight: 400; }
.chrome-footer__col--about { font-size: 14px; }
.chrome-footer__registry { opacity: 0.9; }
.chrome-footer--ipmx .chrome-footer__bar { background: #016b7a; }
.chrome-footer--ipmx .chrome-footer__bar-inner { min-height: 48px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	.chrome-topbar { display: none; }
	.chrome-header--aims .chrome-header__inner,
	.chrome-header--ipmx .chrome-header__inner { min-height: 72px; flex-wrap: wrap; }
	.chrome-header--aims .chrome-logo img { width: 170px; }
	.chrome-header--ipmx .chrome-logo img { width: 170px; }

	.chrome-nav__burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		cursor: pointer;
		padding: 8px;
		box-sizing: border-box;
	}
	.chrome-nav__burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
	.chrome-header--aims .chrome-nav__burger { color: #fff; }
	.chrome-header--ipmx .chrome-nav__burger { color: var(--chrome-teal); }

	.chrome-nav { display: none; flex-basis: 100%; padding-bottom: 12px; }
	.chrome-nav__toggle:checked ~ .chrome-nav { display: block; }
	.chrome-nav__list { flex-direction: column; align-items: stretch; }
	.chrome-nav__item + .chrome-nav__item::before { display: none; }
	.chrome-nav__link { padding: 10px 4px; }
	.chrome-nav__sub {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0 0 6px 16px;
	}
	.chrome-header--aims .chrome-nav__sub a { color: #e6f4f7; }
	.chrome-header--aims .chrome-nav__sub a:hover { background: transparent; color: #fff; }
	.chrome-header--ipmx .chrome-nav__sub a { color: var(--chrome-ink-ipmx); }
	.chrome-nav__caret { display: none; }

	.chrome-footer__columns,
	.chrome-footer--ipmx .chrome-footer__columns { grid-template-columns: 1fr; gap: 28px; padding: 32px 15px; }
	.chrome-footer__bar-inner { justify-content: center; text-align: center; }
}
