/* =====================================================================
   Pathways to Education — Annual Report 2026
   Brand tokens + type. Enqueued after the LaunchPad parent bundle, so
   these rules layer on top (see functions.php). Colours are lifted from
   the Figma design system; also mirror these into Mission Control →
   Style Settings → Palette so built-in components pick them up by name.
   ===================================================================== */

:root {
	/* --- Brand palette (Figma "PTE - Annual Report 2026") --- */
	--pte-blue-dark:   #005474; /* PTE Blue 1 — primary, headers, dark bg */
	--pte-blue:        #006db9; /* Color   — links, accents */
	--pte-blue-light:  #6ed5de; /* Color 7 — light-blue fills, highlights */
	--pte-green:       #00a576; /* Color 2 — primary green */
	--pte-green-bright:#00bc7c; /* Color 3 — bright green, CTAs */
	--pte-lime:        #c3df6c; /* Color 8 — lime accent */
	--pte-ink:         #251e20; /* Color 4 — body text / near-black */
	--pte-white:       #ffffff;

	/* --- Type --- */
	--pte-font: "altivo", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Figma type scale (desktop). H2 = Altivo Bold 42/52. */
	--pte-h1-size: 3.25rem;   /* ~52px */
	--pte-h2-size: 2.625rem;  /* 42px  */
	--pte-h2-lh:   3.25rem;   /* 52px  */
	--pte-h3-size: 1.75rem;   /* ~28px */
	--pte-body-size: 1.125rem;/* ~18px */
}

/* --- Take over LaunchPad's font variables with Altivo ---
   The parent applies headings via `font-family: var(--h1-font, var(--c7lp-heading-font)) !important`
   and body via `var(--c7lp-body-font)`. Overriding the variables (rather than the
   selectors) makes the parent's own rules resolve to Altivo — no specificity fight.
   `html:root` (0,1,1) outranks the parent's `:root` (0,1,0) regardless of load order. */
html:root {
	--c7lp-heading-font: "altivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--c7lp-body-font:    "altivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- Apply Altivo across the report --- */
body,
.site-content,
button,
input,
select,
textarea {
	font-family: var(--pte-font);
	color: var(--pte-ink);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pte-font);
	color: var(--pte-blue-dark);
}

h2 {
	font-size: var(--pte-h2-size);
	line-height: var(--pte-h2-lh);
	font-weight: 700; /* Altivo Bold */
	letter-spacing: 0;
}

h1 { font-size: var(--pte-h1-size); font-weight: 700; }
h3 { font-size: var(--pte-h3-size); font-weight: 700; }

a { color: var(--pte-blue); }
a:hover,
a:focus { color: var(--pte-blue-dark); }

/* Responsive: scale the big display type down on mobile. */
@media (max-width: 768px) {
	:root {
		--pte-h1-size: 2.25rem;
		--pte-h2-size: 1.875rem;
		--pte-h2-lh:   2.375rem;
	}
}

/* --- Boxed canvas -----------------------------------------------------
   The annual report is a fixed 1440px Figma design, not a fluid full-bleed
   layout. Cap the whole site at the design width and centre it; on wider
   screens the page background shows in the gutters. --- */
html { background: #dfe4de; }
#page.site {
	max-width: 1440px;
	margin-inline: auto;
	background: #f2f4ee;
	box-shadow: 0 0 80px rgba(0, 40, 60, .10);
}

/* --- Shared pill buttons (used across report components) --- */
.pte-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: 16px 32px;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.pte-btn:hover,
.pte-btn:focus-visible { transform: translateY(-1px); }
.pte-btn:focus-visible { outline: 3px solid var(--pte-blue, #006db9); outline-offset: 2px; }

.pte-btn--blue  { background: var(--pte-blue-dark, #005474); color: #fff !important; }
.pte-btn--blue:hover,
.pte-btn--blue:focus-visible { background: var(--pte-green, #00a576); }

.pte-btn--green { background: var(--pte-green, #00a576); color: #fff !important; }
.pte-btn--green:hover,
.pte-btn--green:focus-visible { background: var(--pte-blue-dark, #005474); }

.pte-btn--outline { background: transparent; color: var(--pte-blue-dark, #005474) !important; border-color: currentColor; }
.pte-btn--outline:hover,
.pte-btn--outline:focus-visible { background: var(--pte-blue-dark, #005474); color: #fff !important; }

/* --- Logo wall (supporters/government funders) --- */
.pte-logo-wall {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 56px);
	margin: 2rem auto 0;
	max-width: 900px;
}
.pte-logo-wall img { max-height: 64px; width: auto; max-width: 180px; object-fit: contain; }

/* --- Donor recognition list (tiered) --- */
.pte-donor-list { margin: 2rem 0 0; text-align: left; }
.pte-donor-tier { margin-bottom: 2.5rem; }
.pte-donor-tier h3 {
	color: var(--pte-green, #00a576);
	font-size: 1.4rem;
	border-bottom: 2px solid rgba(0, 84, 116, .12);
	padding-bottom: .5rem;
	margin: 0 0 1rem;
}
.pte-donor-tier ul {
	list-style: none; margin: 0; padding: 0;
	columns: 3; column-gap: 40px;
}
.pte-donor-tier li {
	break-inside: avoid;
	padding: 4px 0;
	font-size: .95rem;
	line-height: 1.45;
	color: var(--pte-ink, #251e20);
}
.pte-donor-note { margin-top: 2rem; font-size: .9rem; color: var(--pte-ink, #251e20); opacity: .85; }
@media (max-width: 800px) { .pte-donor-tier ul { columns: 2; } }
@media (max-width: 480px) { .pte-donor-tier ul { columns: 1; } }

/* --- Financials revenue/expenses grid --- */
.pte-financials-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 5vw, 64px);
	text-align: left;
	max-width: 760px;
	margin: 0 auto;
}
.pte-financials-grid h3 { color: var(--pte-green, #00a576); margin: 0 0 .75rem; }
.pte-financials-grid ul { list-style: none; margin: 0; padding: 0; }
.pte-financials-grid li { padding: 6px 0; border-bottom: 1px solid rgba(0,84,116,.1); }
@media (max-width: 640px) { .pte-financials-grid { grid-template-columns: 1fr; } }

/* --- Accessibility: honour reduced-motion for the report's animations
   (carousel autoplay, flip cards, timeline scroll). Individual components
   also guard this, but set a global baseline here. --- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
