/* Scoped directory styles. No shared header, footer, service or article selectors. */
.tjc-region-directory {
	--tjc-region-navy: #001d67;
	--tjc-region-accent: #ff5e14;
	--tjc-region-muted: #53627a;
	--tjc-region-line: #dfe6ee;
	background: #f4f7fb;
	color: var(--tjc-region-navy);
	font-size: 16px;
	line-height: 1.55;
	letter-spacing: 0;
}

.tjc-region-directory *,
.tjc-region-directory *::before,
.tjc-region-directory *::after {
	box-sizing: border-box;
}

.tjc-region-directory [hidden] {
	display: none !important;
}

/* A compact solid backdrop for the existing transparent menu, not a photographic Hero. */
.tjc-region-header-space {
	height: 178px;
	background: #081d46;
}

.tjc-region-wrap {
	width: min(100%, 1380px);
	margin: 0 auto;
	padding: 0 32px 72px;
}

.tjc-region-intro {
	padding: 30px 0 25px;
}

.tjc-region-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--tjc-region-muted);
	font-size: 13px;
}

.tjc-region-directory .tjc-region-breadcrumb a {
	color: var(--tjc-region-muted);
	text-decoration: none;
}

.tjc-region-directory .tjc-region-breadcrumb a:hover {
	color: var(--tjc-region-navy);
	text-decoration: underline;
}

.tjc-region-directory .tjc-region-intro h1 {
	margin: 0 0 12px;
	color: var(--tjc-region-navy);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.tjc-region-directory .tjc-region-intro p {
	margin: 0;
	color: var(--tjc-region-muted);
	font-size: 16px;
	line-height: 1.6;
}

.tjc-region-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--tjc-region-line);
}

.tjc-region-directory .tjc-region-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid var(--tjc-region-line);
	border-radius: 6px;
	background: #fff;
	color: var(--tjc-region-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}

.tjc-region-directory .tjc-region-switcher a:hover {
	border-color: var(--tjc-region-navy);
	background: #eaf0fa;
}

.tjc-region-directory .tjc-region-switcher a[aria-current="page"] {
	border-color: var(--tjc-region-navy);
	background: var(--tjc-region-navy);
	color: #fff;
}

.tjc-region-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 0 20px;
}

.tjc-region-section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-left: 13px;
	border-left: 4px solid var(--tjc-region-accent);
}

.tjc-region-directory .tjc-region-section-heading h2 {
	margin: 0;
	color: var(--tjc-region-navy);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.02em;
	text-align: left;
	text-shadow: none;
}

.tjc-region-count {
	color: var(--tjc-region-muted);
	font-size: 13px;
	white-space: nowrap;
}

.tjc-region-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 300px;
	max-width: 100%;
	margin: 0;
}

.tjc-region-search-icon {
	position: absolute;
	left: 13px;
	color: var(--tjc-region-muted);
	pointer-events: none;
}

.tjc-region-directory .tjc-region-search input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 10px 42px 10px 40px;
	border: 1px solid #c9d4e1;
	border-radius: 7px;
	background: #fff;
	color: var(--tjc-region-navy);
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
	box-shadow: none;
}

.tjc-region-search input::placeholder {
	color: var(--tjc-region-muted);
}

.tjc-region-search input::-webkit-search-cancel-button {
	display: none;
}

.tjc-region-directory .tjc-region-search button {
	position: absolute;
	right: 1px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--tjc-region-navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tjc-region-directory .tjc-region-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 22px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tjc-region-grid-item {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tjc-region-directory .tjc-region-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #e3e9f0;
	border-radius: 10px;
	background: #fff;
	color: var(--tjc-region-navy);
	text-decoration: none;
	box-shadow: 0 3px 9px rgba(5, 28, 65, .07);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tjc-region-card:hover {
	transform: translateY(-4px);
	border-color: #becbdd;
	box-shadow: 0 12px 23px rgba(5, 28, 65, .13);
}

.tjc-region-flag {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	border-bottom: 1px solid #e8edf3;
	background: #fff;
}

.tjc-region-directory .tjc-region-flag img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: contain;
	box-shadow: none;
}

.tjc-region-flag-placeholder {
	color: var(--tjc-region-muted);
	font-size: 30px;
	font-weight: 600;
}

.tjc-region-card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 16px 10px 17px;
	text-align: center;
}

.tjc-region-directory .tjc-region-card h3 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.7em;
	margin: 0 0 12px;
	color: var(--tjc-region-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.tjc-region-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #ad390b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.tjc-region-card:hover .tjc-region-card-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tjc-region-directory a:focus-visible,
.tjc-region-directory input:focus-visible,
.tjc-region-directory button:focus-visible {
	outline: 3px solid var(--tjc-region-accent);
	outline-offset: 3px;
}

.tjc-region-directory .tjc-region-empty {
	margin: 0;
	padding: 36px 20px;
	border: 1px dashed #c9d4e1;
	border-radius: 10px;
	background: #fff;
	color: var(--tjc-region-muted);
	font-size: 16px;
	text-align: center;
}

.tjc-region-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Parent hub: the same country cards, divided into clearly spaced regional groups. */
.tjc-region-directory--hub .tjc-region-hub-toolbar {
	padding-top: 4px;
}

.tjc-region-hub-jumps {
	margin-bottom: 30px;
}

.tjc-region-hub-group {
	scroll-margin-top: 140px;
}

.tjc-region-hub-group + .tjc-region-hub-group {
	margin-top: 42px;
	padding-top: 32px;
	border-top: 1px solid var(--tjc-region-line);
}

.tjc-region-directory--hub .tjc-region-hub-groups .tjc-region-hub-group--first-visible {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.tjc-region-hub-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.tjc-region-directory .tjc-region-hub-region-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0 8px 10px;
	color: var(--tjc-region-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
}

.tjc-region-directory .tjc-region-hub-region-link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 1199px) {
	.tjc-region-directory .tjc-region-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 18px 16px;
	}
}

@media (max-width: 991px) {
	.tjc-region-header-space {
		height: 150px;
	}
	.tjc-region-directory .tjc-region-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.tjc-region-wrap {
		padding-right: 24px;
		padding-left: 24px;
	}
}

@media (max-width: 767px) {
	.tjc-region-header-space {
		height: 120px;
	}
	.tjc-region-wrap {
		padding: 0 20px 48px;
	}
	.tjc-region-intro {
		padding: 25px 0 21px;
	}
	.tjc-region-directory .tjc-region-intro h1 {
		font-size: 29px;
	}
	.tjc-region-switcher {
		gap: 7px;
		padding-bottom: 21px;
	}
	.tjc-region-directory .tjc-region-switcher a {
		min-height: 42px;
		padding: 8px 12px;
		font-size: 13px;
	}
	.tjc-region-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		padding-top: 24px;
	}
	.tjc-region-search {
		width: 100%;
	}
	.tjc-region-directory .tjc-region-search input {
		font-size: 16px;
	}
	.tjc-region-directory .tjc-region-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px 12px;
	}
	.tjc-region-hub-group + .tjc-region-hub-group {
		margin-top: 32px;
		padding-top: 26px;
	}
	.tjc-region-hub-group-header {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 18px;
	}
	.tjc-region-directory .tjc-region-hub-region-link {
		padding-left: 0;
		font-size: 13px;
	}
}

@media (max-width: 575px) {
	.tjc-region-wrap {
		padding-right: 16px;
		padding-left: 16px;
	}
	.tjc-region-directory .tjc-region-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tjc-region-card-copy {
		padding: 14px 10px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tjc-region-directory .tjc-region-card,
	.tjc-region-directory .tjc-region-switcher a {
		transition: none;
	}
	.tjc-region-card:hover {
		transform: none;
	}
}
