/**
 * Sales Team — region map and contact cards.
 *
 * Palette follows the theme brand: navy #002a5a, blue #005e95, green #95c11f.
 */

.awms-st {
	--awms-st-navy: #002a5a;
	--awms-st-blue: #005e95;
	--awms-st-green: #95c11f;
	--awms-st-ink: #1a1a1a;
	--awms-st-muted: #706f6f;
	--awms-st-line: #e0e5ea;
	--awms-st-surface: #f1f3f6;

	color: var(--awms-st-ink);
	font-family: inherit;
}

/* Elements toggled by JS must stay hidden even though they are flex/grid. */
.awms-st [hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */

.awms-st__layout {
	align-items: start;
	display: grid;
	gap: 48px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
}

/* The map markup comes first (so it leads on mobile) but sits on the right. */
.awms-st__panel {
	grid-column: 1;
	grid-row: 1;
}

.awms-st__map {
	grid-column: 2;
	grid-row: 1;
}

@media (max-width: 900px) {

	.awms-st__layout {
		gap: 28px;
		grid-template-columns: 1fr;
	}

	.awms-st__panel,
	.awms-st__map {
		grid-column: 1;
		grid-row: auto;
	}
}

/* -------------------------------------------------------------------------
 * Map
 * ---------------------------------------------------------------------- */

.awms-st__map {
	background: var(--awms-st-surface);
	border-radius: 4px;
	padding: 16px;
	position: sticky;
	top: 24px;
}

@media (max-width: 900px) {

	.awms-st__map {
		position: static;
	}
}

.awms-st__map-canvas {
	/* Portrait, because the UK and Ireland are taller than they are wide. */
	aspect-ratio: 3 / 4;
	background: #dfe6ec;
	border-radius: 4px;
	min-height: 560px;
	width: 100%;
}

@media (max-width: 900px) {

	.awms-st__map-canvas {
		aspect-ratio: 1 / 1;
		min-height: 420px;
	}
}

.awms-st__map-fallback {
	background: #ffffff;
	border: 1px solid var(--awms-st-line);
	border-radius: 4px;
	color: var(--awms-st-muted);
	margin: 0;
	padding: 20px;
}

.awms-st__map-credit {
	color: var(--awms-st-muted);
	font-size: 0.6875rem;
	margin: 8px 0 0;
}

/* Region name shown on hover — a single advanced marker, reused. */
.awms-st-map-label {
	background: #002a5a;
	border-radius: 3px;
	color: #ffffff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 9px;
	pointer-events: none;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Prompt shown until a region is chosen
 * ---------------------------------------------------------------------- */

.awms-st__prompt {
	color: var(--awms-st-ink);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	max-width: 20ch;
	text-transform: uppercase;
}

@media (max-width: 600px) {

	.awms-st__prompt {
		font-size: 1.375rem;
		max-width: none;
	}
}

/* -------------------------------------------------------------------------
 * Selected region card
 * ---------------------------------------------------------------------- */

.awms-st__region-field {
	background: #ffffff;
	border: 1px solid var(--awms-st-line);
	border-radius: 6px;
	margin-bottom: 40px;
	padding: 28px 32px;
}

.awms-st__region-field-name {
	color: var(--awms-st-ink);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
}

.awms-st__region-field-code {
	color: var(--awms-st-muted);
	font-size: 1.25rem;
	line-height: 1.2;
	margin: 4px 0 0;
}

@media (max-width: 600px) {

	.awms-st__region-field {
		padding: 20px 22px;
	}

	.awms-st__region-field-name {
		font-size: 1.375rem;
	}

	.awms-st__region-field-code {
		font-size: 1.0625rem;
	}
}

/* -------------------------------------------------------------------------
 * Results
 * ---------------------------------------------------------------------- */

.awms-st__group + .awms-st__group {
	margin-top: 36px;
}

.awms-st__group-title {
	border-bottom: 2px solid var(--awms-st-green);
	color: var(--awms-st-navy);
	font-size: 1.125rem;
	letter-spacing: 0.04em;
	margin: 0 0 20px;
	padding-bottom: 8px;
	text-transform: uppercase;
}

.awms-st__group-intro {
	color: var(--awms-st-muted);
	margin: 0 0 24px;
	max-width: 60ch;
}

.awms-st__group-intro p {
	margin: 0 0 12px;
}

.awms-st__group-intro p:last-child {
	margin-bottom: 0;
}

.awms-st__list {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.awms-st__group-empty,
.awms-st__empty-all {
	color: var(--awms-st-muted);
	margin: 0;
}

.awms-st__empty-all {
	background: var(--awms-st-surface);
	border-radius: 4px;
	padding: 20px;
}

/* -------------------------------------------------------------------------
 * Contact card
 * ---------------------------------------------------------------------- */

.awms-st__card {
	background: #ffffff;
	border: 1px solid var(--awms-st-line);
	border-radius: 4px;
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 16px;
}

.awms-st-card__media {
	flex: 0 0 auto;
}

.awms-st-card__image,
.awms-st-card__initials {
	border-radius: 50%;
	display: block;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.awms-st-card__initials {
	align-items: center;
	background: var(--awms-st-surface);
	color: var(--awms-st-navy);
	display: flex;
	font-size: 1.25rem;
	font-weight: 700;
	justify-content: center;
}

.awms-st-card__body {
	min-width: 0;
}

.awms-st-card__name {
	color: var(--awms-st-navy);
	font-size: 1.0625rem;
	margin: 0 0 2px;
}

.awms-st-card__role {
	color: var(--awms-st-muted);
	font-size: 0.875rem;
	margin: 0 0 10px;
}

.awms-st-card__link {
	color: var(--awms-st-blue);
	display: block;
	font-size: 0.875rem;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.awms-st-card__link:hover,
.awms-st-card__link:focus {
	text-decoration: underline;
}

.awms-st-card__link + .awms-st-card__link {
	margin-top: 2px;
}

/* -------------------------------------------------------------------------
 * Accessibility helper (defined defensively — the parent theme may not ship it)
 * ---------------------------------------------------------------------- */

.awms-st .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}
