/**
 * NewEra base styles: typography + layout primitives on top of tokens.css.
 * Component classes live in components.css; per-template CSS in its own file.
 */

html { overflow-x: clip; }

body {
	max-width: 100%;
	/* clip (not hidden): hidden makes body a scroll container, which
	   silently disables every position:sticky descendant (quick links). */
	overflow-x: clip;
	font-family: var(--ne-font);
	font-size: var(--ne-b1-size);
	line-height: var(--ne-b1-line);
	color: var(--ne-neutral-1000);
	background: var(--ne-neutral-100);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ne-font);
	color: var(--ne-primary-500);
	font-weight: 700;
}

h1 { font-size: var(--ne-h1-size); line-height: var(--ne-h1-line); }
h2 { font-size: var(--ne-h2-size); line-height: var(--ne-h2-line); }
h3 { font-size: var(--ne-h4-size); line-height: var(--ne-h4-line); }
h4 { font-size: var(--ne-h6-size); line-height: var(--ne-h6-line); }

*, *::before, *::after { box-sizing: border-box; }

a { color: var(--ne-primary-400); }

img { max-width: 100%; height: auto; }

.ne-container {
	max-width: var(--ne-container);
	margin-inline: auto;
	padding-inline: var(--ne-space-xl);
}

/* Vertical rhythm for stacked page sections */
.ne-section { padding-block: var(--ne-space-6xl); }
.ne-section--tight { padding-block: var(--ne-space-4xl); }
.ne-section--tint { background: var(--ne-tertiary-100); }
.ne-section--muted { background: var(--ne-primary-a10); }
.ne-section--gray { background: #f5f7fb; }

/* Utility */
.ne-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- *
 *  GeneratePress layout neutralisation — the NewEra design is
 *  full-width with its own .ne-container gutters, so strip GP's
 *  site max-width, padding and separators.
 * ---------------------------------------------------------------- */
.site-content .content-area,
.site-main,
.inside-article,
.entry-content { max-width: none; }
#page.site,
.site-content,
#content.site-content { max-width: none; padding: 0; margin: 0; }
.separate-containers .inside-article,
.separate-containers .site-main { margin: 0; }
.generate-columns-container { margin: 0; }
body .site-content { display: block; }

/* ---------------------------------------------------------------- *
 *  Responsive heading scale-down
 * ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	h1 { font-size: 44px; line-height: 1.15; }
	h2 { font-size: 36px; line-height: 1.2; }
	h3 { font-size: 28px; line-height: 1.25; }
	.ne-sechead__title { font-size: 28px; line-height: 1.25; }
	.ne-container { padding-inline: var(--ne-space-l); }
}

@media (max-width: 640px) {
	h1 { font-size: 34px; line-height: 1.15; }
	h2 { font-size: 28px; line-height: 1.2; }
	h3 { font-size: 24px; line-height: 1.25; }
	.ne-sechead__title { font-size: 24px; line-height: 1.3; }
	.ne-cta-banner__title { font-size: 26px; line-height: 1.25; }
	.ne-section { padding-block: var(--ne-space-4xl); }
	.ne-container { padding-inline: var(--ne-space-m); }
}

/* Add to your theme stylesheet (e.g. the file that styles .ne-map) */
.ne-map-label {
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	white-space: nowrap;
}
.ne-map-label::before { display: none; } /* hide the tooltip arrow */

/*International home page css journey*/
.ne-journey {
	--jr-accent: #2fb5b0;   /* title + link colour */
	--jr-text:   #1a1a1a;   /* description colour */
	--jr-line:   #0f4c81;   /* dashed connector + arrow */
	--jr-gap-x:  90px;      /* space between the two columns */
	--jr-gap-y:  70px;      /* space between rows */
	--jr-arrow:  10px;      /* arrowhead length */
}

.ne-journey__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--jr-gap-x);
	row-gap: var(--jr-gap-y);
	margin-top: 40px;
}

/* ---- Card: image 40% left, text right ---- */
.ne-journey__card {
	position: relative;
	grid-column: var(--jr-col);
	grid-row: var(--jr-row);
	display: grid;
	grid-template-columns: 40% minmax(0, 1fr);
	align-items: center;
	min-height: 220px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.ne-journey__media {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	padding: 24px;
}
.ne-journey__iconimg {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 160px;
	object-fit: contain;   /* use "cover" if you upload photos instead of icons */
}
.ne-journey__media svg {
	width: 72px;
	height: 72px;
	color: var(--jr-line);
}

.ne-journey__body { padding: 24px 28px 24px 0; }
.ne-journey__title {
	margin: 0 0 8px;
	color: #20136e;
	font-size: clamp(20px, 1.7vw, 28px);
	line-height: 1.2;
}
.ne-journey__text {
	margin: 0;
	color: var(--jr-text);
	line-height: 1.5;
}
.ne-journey__link {
	display: inline-block;
	margin-top: 12px;
	color: #20136e;
	font-weight: 600;
	text-decoration: none;
}

/* ---- Dashed arrow connectors ---- */
.ne-journey__conn { position: absolute; pointer-events: none; }
.ne-journey__conn::before { content: ""; position: absolute; }   /* dashed line */
.ne-journey__conn::after  { content: ""; position: absolute; width: 0; height: 0; } /* arrowhead */

/* across, pointing right */
.ne-journey__conn--right { top: 50%; left: 100%; width: var(--jr-gap-x); height: 0; }
.ne-journey__conn--right::before { top: -1px; left: 0; right: var(--jr-arrow); border-top: 2px dashed var(--jr-line); }
.ne-journey__conn--right::after  { top: -6px; right: 0; border-left: var(--jr-arrow) solid var(--jr-line); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* across, pointing left */
.ne-journey__conn--left { top: 50%; right: 100%; width: var(--jr-gap-x); height: 0; }
.ne-journey__conn--left::before { top: -1px; left: var(--jr-arrow); right: 0; border-top: 2px dashed var(--jr-line); }
.ne-journey__conn--left::after  { top: -6px; left: 0; border-right: var(--jr-arrow) solid var(--jr-line); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* down, to the next row */
.ne-journey__conn--down { top: 100%; left: 50%; width: 0; height: var(--jr-gap-y); }
.ne-journey__conn--down::before { left: -1px; top: 0; bottom: var(--jr-arrow); border-left: 2px dashed var(--jr-line); }
.ne-journey__conn--down::after  { left: -6px; bottom: 0; border-top: var(--jr-arrow) solid var(--jr-line); border-left: 6px solid transparent; border-right: 6px solid transparent; }

/* desktop: the first card of a pair connects sideways, not down */
.ne-journey__card--first .ne-journey__conn--down { display: none; }


/* Mobile Centres of Excellence accordion */
.ne-mobile-coe { border-bottom: 1px solid rgba(0,0,0,.08); }

.ne-mobile-coe__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;          /* hides default marker */
}
.ne-mobile-coe__toggle::-webkit-details-marker { display: none; }

.ne-mobile-coe__chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-right: 4px;
}
.ne-mobile-coe[open] .ne-mobile-coe__chevron { transform: rotate(-135deg); }

.ne-mobile-coe__list {
	list-style: none;
	margin: 0;
	padding: 0 0 10px 14px;
	max-height: 55vh;          /* long list scrolls inside the panel */
	overflow-y: auto;
}
.ne-mobile-coe__list a {
	display: block;
	padding: 9px 0;
	font-size: .95em;
	text-decoration: none;
}
.ne-mobile-coe__all a { font-weight: 600; }

/* ---- Mobile: single column, arrows point down ---- */
@media (max-width: 768px) {
	.ne-journey { --jr-gap-y: 50px; }
	.ne-journey__list { grid-template-columns: 1fr; }
	.ne-journey__card { grid-column: auto; grid-row: auto; grid-template-columns: 34% minmax(0, 1fr); }
	.ne-journey__conn--left,
	.ne-journey__conn--right { display: none; }
	.ne-journey__card--first .ne-journey__conn--down { display: block; }
}
@media (max-width: 480px) {
	.ne-journey__card { grid-template-columns: 1fr; }
	.ne-journey__body { padding: 0 24px 24px; }
}
