:root {
	--awm-primary: #1a73e8;
	--awm-navy: #182b49;
	--awm-accent: #c9a24b;
	--awm-cream: #f4efe2;
}

.awm-root {
	position: relative;
	z-index: 2147483000;
}

/* ---------- Floating button ---------- */
.awm-fab {
	position: fixed;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: none;
	background: var(--awm-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	z-index: 2147483000;
}
.awm-fab:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.awm-fab svg { display: block; }
.awm-fab-emoji { font-size: 26px; line-height: 1; }
.awm-fab-img { width: 28px; height: 28px; object-fit: contain; display: block; }

.awm-fab-bottom-right { right: 24px; bottom: 24px; }
.awm-fab-bottom-left  { left: 24px;  bottom: 24px; }
.awm-fab-top-right    { right: 24px; top: 24px; }
.awm-fab-top-left     { left: 24px;  top: 24px; }
.awm-fab-middle-right { right: 24px; top: 50%; margin-top: -29px; }
.awm-fab-middle-left  { left: 24px;  top: 50%; margin-top: -29px; }

body.admin-bar .awm-fab-top-right,
body.admin-bar .awm-fab-top-left { top: 56px; }

.awm-fab--image { background: #fff; padding: 0; overflow: hidden; }
.awm-fab--image .awm-fab-img { width: 100%; height: 100%; padding: 8px; box-sizing: border-box; }

/* ---------- Fullscreen backdrop + poster panel ---------- */
.awm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 10, 14, 0.92);
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awm-overlay[hidden] { display: none; }

.awm-map-panel {
	position: relative;
	width: calc(var(--awm-size, 75) * 1vw);
	height: calc(var(--awm-size, 75) * 1vh);
	max-width: calc(var(--awm-size, 75) * 1vw);
	max-height: calc(var(--awm-size, 75) * 1vh);
	background: var(--awm-cream);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.55);
	font-family: 'Cormorant Garamond', Georgia, serif;
	color: var(--awm-navy);
}

.awm-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(24, 43, 73, 0.25);
	color: var(--awm-navy);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awm-close:hover { background: #fff; }

/* ---------- Poster overlay text ---------- */
.awm-poster-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 20;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 26px 90px 0 34px;
	pointer-events: none;
}
.awm-poster-title-block { max-width: 60%; }
.awm-poster-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: clamp(22px, 3vw, 34px);
	margin: 0;
	color: var(--awm-navy);
	letter-spacing: 0.3px;
}
.awm-poster-tagline {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-style: italic;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-size: clamp(10px, 1vw, 13px);
	color: var(--awm-navy);
	opacity: 0.75;
	margin-top: 4px;
}
.awm-poster-rule {
	width: 60px;
	height: 2px;
	background: var(--awm-accent);
	margin-top: 10px;
}

.awm-poster-stats {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: center;
	flex: 0 0 auto;
}
.awm-stat-num {
	display: block;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: clamp(18px, 2.2vw, 26px);
	color: var(--awm-accent);
	line-height: 1;
}
.awm-stat-label {
	display: block;
	font-size: 9px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-top: 3px;
	color: var(--awm-navy);
	opacity: 0.7;
}
.awm-stat-sep {
	width: 1px;
	height: 30px;
	background: rgba(24, 43, 73, 0.25);
}

.awm-poster-corner-note {
	position: absolute;
	top: 30px;
	right: 30px;
	z-index: 15;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-style: italic;
	color: var(--awm-navy);
	opacity: 0.55;
	text-align: right;
	pointer-events: none;
}

.awm-poster-bottom-tagline {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 15;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--awm-navy);
	opacity: 0.55;
	pointer-events: none;
	white-space: nowrap;
}

.awm-poster-quote {
	position: absolute;
	bottom: 46px;
	right: 34px;
	z-index: 15;
	font-family: 'Great Vibes', cursive;
	font-size: clamp(16px, 2vw, 24px);
	color: var(--awm-navy);
	opacity: 0.8;
	text-align: right;
	pointer-events: none;
	max-width: 260px;
	line-height: 1.25;
}

.awm-poster-footer {
	position: absolute;
	bottom: 16px;
	left: 30px;
	z-index: 15;
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}
.awm-poster-crest { width: 34px; height: 34px; object-fit: contain; }
.awm-poster-school-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	color: var(--awm-navy);
}
.awm-poster-school-sub {
	font-size: 9px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--awm-navy);
	opacity: 0.65;
}

/* ---------- Map area ---------- */
.awm-map-wrap {
	position: absolute;
	inset: 0;
}
/* When the poster overlay (title, stats, footer text) is on, the map itself
   is inset away from the panel edges so the drawn landmass never sits
   underneath that text — it only ever overlaps the empty cream margin. */
.awm-map-panel.awm-has-header .awm-map-wrap {
	top: 130px;
	right: 24px;
	bottom: 96px;
	left: 24px;
}
.awm-map {
	position: absolute;
	inset: 0;
}
.awm-map svg { display: block; width: 100%; height: 100%; }

.awm-country {
	fill: var(--awm-navy);
	stroke: var(--awm-accent);
	stroke-width: 0.6;
	opacity: 0.92;
}

.awm-status {
	position: absolute;
	bottom: 50%;
	left: 50%;
	transform: translate(-50%, 50%);
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-family: system-ui, sans-serif;
	z-index: 25;
	pointer-events: none;
}
.awm-status:empty { display: none; }

/* ---------- Pins ---------- */
.awm-pin {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--awm-navy);
	border: 2px solid var(--awm-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	z-index: 10;
	transition: transform 0.15s ease;
}
.awm-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.awm-pin.is-active {
	background: var(--awm-accent);
	color: var(--awm-navy);
	box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.28), 0 2px 10px rgba(0, 0, 0, 0.5);
	z-index: 12;
}

/* ---------- Alumni card ---------- */
.awm-card {
	position: absolute;
	z-index: 40;
	width: 300px;
	max-width: calc(100% - 32px);
	background: #fffdf8;
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
	padding: 16px 18px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	color: var(--awm-navy);
}
.awm-card[hidden] { display: none; }

.awm-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.awm-card-country {
	font-size: 10px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--awm-accent);
	font-weight: 600;
}
.awm-card-flag { font-size: 20px; line-height: 1; }

.awm-card-body {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.awm-card-photo {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	border: 2px solid var(--awm-accent);
	background: var(--awm-navy);
}
.awm-card-avatar-fallback {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	flex: 0 0 auto;
	border: 2px solid var(--awm-accent);
	background: var(--awm-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 20px;
}
.awm-card-text { min-width: 0; flex: 1 1 auto; }
.awm-card-name {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	margin: 0 0 3px;
}
.awm-card-meta {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--awm-navy);
	opacity: 0.9;
}
.awm-card-org {
	font-style: italic;
	font-size: 13px;
	opacity: 0.75;
	margin-top: 2px;
}
.awm-card-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-family: system-ui, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #0a66c2;
	text-decoration: none;
}
.awm-card-linkedin:hover { text-decoration: underline; }

.awm-card-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(24, 43, 73, 0.15);
}
.awm-card-nav-btn {
	background: none;
	border: 1px solid rgba(24, 43, 73, 0.3);
	color: var(--awm-navy);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	font-family: system-ui, sans-serif;
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.awm-card-nav-btn:hover { background: rgba(24, 43, 73, 0.08); }
.awm-card-nav-btn:disabled { opacity: 0.3; cursor: default; }
.awm-card-nav-count {
	font-family: system-ui, sans-serif;
	font-size: 11.5px;
	letter-spacing: 0.5px;
	opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.awm-poster-header { padding: 18px 54px 0 18px; flex-direction: column; gap: 10px; }
	.awm-poster-title-block { max-width: 100%; }
	.awm-poster-corner-note,
	.awm-poster-quote { display: none; }
	.awm-poster-bottom-tagline { font-size: 9px; letter-spacing: 2px; }
	.awm-poster-footer { bottom: 10px; left: 14px; }

	/* Header stacks to two rows here (title block, then stats), and is
	   taller relative to the shorter panel height, so the map needs a
	   bigger top margin; corner-note/quote are hidden, so the bottom
	   margin can shrink back down. */
	.awm-map-panel.awm-has-header .awm-map-wrap {
		top: 190px;
		right: 14px;
		bottom: 60px;
		left: 14px;
	}
	.awm-poster-school-name { font-size: 11px; }
	.awm-card {
		left: 16px !important;
		right: 16px !important;
		bottom: 16px !important;
		top: auto !important;
		width: auto;
		max-width: none;
	}
}

@media (max-width: 600px) {
	.awm-fab { width: 52px; height: 52px; }
	.awm-fab-bottom-right, .awm-fab-bottom-left { bottom: 16px; }
	.awm-fab-top-right, .awm-fab-top-left { top: 16px; }
	.awm-fab-bottom-right, .awm-fab-top-right { right: 16px; }
	.awm-fab-bottom-left, .awm-fab-top-left { left: 16px; }
	.awm-fab-middle-right { right: 16px; margin-top: -26px; }
	.awm-fab-middle-left { left: 16px; margin-top: -26px; }

	/* 75% of a small phone screen leaves very little room, so widen the
	   panel on narrow viewports for usability. */
	.awm-map-panel {
		width: 94vw;
		height: 88vh;
		max-width: 94vw;
		max-height: 88vh;
		border-radius: 8px;
	}
}
