/* ==========================================================================
   NSRF Strategy Blocks  -  v4

   v4: restores the per-area and per-topic colour assignment blocks, which were
       dropped by accident in v3 (every band was falling back to navy).
   v3: list-marker reset on the LI (Divi sets list-style on the LI, so
       resetting the UL alone does nothing); 3-up strategy cards; timeline
       rebuilt with a year column.

   TOKENS: declares NO :root block. All tokens are owned by nsrf-frontend.css.

   Colour policy: pink is RESERVED for interaction states - :hover and
   :focus-visible only. Never a surface.

   Contrast (WCAG 2.1 AA), band vs the text on it:
     navy  #1B2D5B + white  13.4:1  pass
     green #7AB648 + navy    5.4:1  pass
     amber #F6AD55 + navy    7.0:1  pass
     lilac #8B7CC3 + white   3.6:1  LARGE TEXT ONLY
     teal  #2A8F7E + white   3.9:1  LARGE TEXT ONLY
   Body copy never sits on a coloured surface.
   ========================================================================== */

.nsrf-vmv,
.nsrf-areas,
.nsrf-topics,
.nsrf-timeline,
.nsrf-stats,
.nsrf-signpost {
	--nsrf-gap: 1.5rem;
	--nsrf-green-text: #4c7a24; /* green darkened for AA as text on white */

	font-family: var(--nsrf-font-body);
	color: var(--nsrf-ink);
	margin-block: clamp(2rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   COLOUR ASSIGNMENT
   Priority areas: band background + the text colour that sits on it.
   -------------------------------------------------------------------------- */

.nsrf-area--research-excellence {
	--area-bg: var(--nsrf-lilac);
	--area-fg: #ffffff;
}
.nsrf-area--surveillance {
	--area-bg: var(--nsrf-green);
	--area-fg: var(--nsrf-navy);
}
.nsrf-area--impact {
	--area-bg: var(--nsrf-amber);
	--area-fg: var(--nsrf-navy);
}
.nsrf-area--communication {
	--area-bg: var(--nsrf-navy);
	--area-fg: #ffffff;
}
.nsrf-area--organisational-strength {
	--area-bg: var(--nsrf-teal);
	--area-fg: #ffffff;
}

/* Research-topic cards: left border keyed to the research_cluster. */
.nsrf-topic--surveillance { --topic-accent: var(--nsrf-green); }
.nsrf-topic--social-determinants { --topic-accent: var(--nsrf-lilac); }
.nsrf-topic--intervention-prevention { --topic-accent: var(--nsrf-navy); }
.nsrf-topic--awareness-training-education { --topic-accent: var(--nsrf-amber); }
.nsrf-topic--policy-practice-qi { --topic-accent: var(--nsrf-teal); }

/* --------------------------------------------------------------------------
   LIST RESET
   Divi applies list-style to the LI, so resetting only the UL/OL does nothing.
   Reset on the LI itself and neutralise ::marker. The ONE list that keeps its
   bullets is .nsrf-objective__actions, restored below.
   -------------------------------------------------------------------------- */

.nsrf-values__grid,
.nsrf-values__grid > li,
.nsrf-areas__list,
.nsrf-areas__list > li,
.nsrf-area__objectives,
.nsrf-area__objectives > li,
.nsrf-topics__grid,
.nsrf-topics__grid > li,
.nsrf-timeline__list,
.nsrf-timeline__list > li,
.nsrf-stats__list,
.nsrf-stats__list > li,
.nsrf-signpost__list,
.nsrf-signpost__list > li {
	list-style: none !important;
	list-style-type: none !important;
}

.nsrf-values__grid > li::marker,
.nsrf-areas__list > li::marker,
.nsrf-area__objectives > li::marker,
.nsrf-topics__grid > li::marker,
.nsrf-timeline__list > li::marker,
.nsrf-stats__list > li::marker,
.nsrf-signpost__list > li::marker {
	content: "" !important;
}

.nsrf-values__grid > li::before,
.nsrf-areas__list > li::before,
.nsrf-topics__grid > li::before,
.nsrf-stats__list > li::before,
.nsrf-signpost__list > li::before {
	content: none !important;
}

/* The action bullets are deliberate - restore them. */
.nsrf-objective__actions,
.nsrf-objective__actions > li {
	list-style: disc outside !important;
	list-style-type: disc !important;
}

.nsrf-objective__actions > li::marker {
	content: initial !important;
	color: var(--area-bg, var(--nsrf-navy));
}

/* Shared ----------------------------------------------------------------- */

.nsrf-areas :is(h2, h3, h4),
.nsrf-topics :is(h2, h3),
.nsrf-timeline h2,
.nsrf-vmv :is(h2, h3, h4),
.nsrf-signpost h2 {
	font-family: var(--nsrf-font-display);
	line-height: 1.2;
	margin: 0;
}

.nsrf-areas a:focus-visible,
.nsrf-topics a:focus-visible,
.nsrf-signpost a:focus-visible,
.nsrf-area__summary-toggle:focus-visible {
	outline: 3px solid var(--nsrf-pink);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Vision / Mission / Values ---------------------------------------------- */

.nsrf-vmv__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--nsrf-gap);
}

.nsrf-vmv__card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--nsrf-radius);
	border: 1px solid var(--nsrf-line);
	background: var(--nsrf-card);
	border-top: 6px solid var(--nsrf-navy);
	box-shadow: var(--nsrf-shadow);
}

.nsrf-vmv__card--vision { border-top-color: var(--nsrf-lilac); }
.nsrf-vmv__card--mission { border-top-color: var(--nsrf-navy); }

.nsrf-vmv__eyebrow {
	font-family: var(--nsrf-font-display);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nsrf-grey);
	margin: 0 0 0.75rem;
}

.nsrf-vmv__statement {
	font-family: var(--nsrf-font-display);
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	font-weight: 600;
	line-height: 1.35;
	color: var(--nsrf-navy);
	margin: 0;
	text-wrap: balance;
}

.nsrf-values { margin-top: clamp(2rem, 5vw, 3rem); }

.nsrf-values__heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--nsrf-navy);
}

.nsrf-values__intro {
	color: var(--nsrf-grey);
	margin: 0.5rem 0 1.5rem;
	max-width: 60ch;
}

.nsrf-values__grid {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--nsrf-gap);
}

.nsrf-value {
	padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	background: var(--nsrf-bg);
	border-radius: var(--nsrf-radius);
	border-left: 4px solid var(--nsrf-navy);
	margin: 0;
}

.nsrf-value--compassion { border-left-color: var(--nsrf-lilac); }
.nsrf-value--integrity { border-left-color: var(--nsrf-navy); }
.nsrf-value--collaboration { border-left-color: var(--nsrf-green); }
.nsrf-value--excellence { border-left-color: var(--nsrf-teal); }
.nsrf-value--inclusivity { border-left-color: var(--nsrf-amber); }
.nsrf-value--resilience { border-left-color: var(--nsrf-navy); }

.nsrf-value__title {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
	color: var(--nsrf-navy);
}

.nsrf-value__body { margin: 0; font-size: 0.9375rem; line-height: 1.6; }

/* Strategic Priority Areas ------------------------------------------------
   3-up on desktop, 2-up on tablet, stacked on mobile - in BOTH summary and
   full mode. align-items:start so open disclosures don't stretch siblings.
   -------------------------------------------------------------------------- */

.nsrf-areas__heading {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	color: var(--nsrf-navy);
	margin-bottom: 1.5rem;
}

.nsrf-areas__list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--nsrf-gap);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 640px) {
	.nsrf-areas__list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.nsrf-areas__list { grid-template-columns: repeat(3, 1fr); }
}

.nsrf-area {
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-radius: var(--nsrf-radius);
	box-shadow: var(--nsrf-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	margin: 0;
	height: 100%;
}

.nsrf-area__band {
	background: var(--area-bg, var(--nsrf-navy));
	color: var(--area-fg, #fff);
	padding: 1.125rem 1.375rem;
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
	min-height: 5.25rem;
}

.nsrf-area__number {
	font-family: var(--nsrf-font-display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
	opacity: 0.7;
	flex: 0 0 auto;
}

.nsrf-area__title {
	/* >=22px at 700 = WCAG "large text" - required for the lilac and teal bands. */
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	font-weight: 700;
	color: inherit;
	text-wrap: balance;
}

.nsrf-area__body {
	padding: 1.375rem;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.nsrf-area__summary {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.nsrf-area__details {
	margin-top: auto;
	padding-top: 1rem;
}

.nsrf-area__summary-toggle {
	cursor: pointer;
	font-family: var(--nsrf-font-display);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--nsrf-navy);
	padding: 0.5rem 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nsrf-area__summary-toggle::-webkit-details-marker { display: none; }

.nsrf-area__summary-toggle::before {
	content: "";
	width: 0;
	height: 0;
	border-left: 7px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	transition: transform 0.15s ease;
	flex: 0 0 auto;
}

.nsrf-area__details[open] .nsrf-area__summary-toggle::before { transform: rotate(90deg); }
.nsrf-area__summary-toggle:hover { color: var(--nsrf-pink); }

.nsrf-area__objectives {
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.125rem;
}

.nsrf-objective { margin: 0; }

.nsrf-objective__title {
	font-size: 0.9375rem;
	font-weight: 700;
	margin-bottom: 0.375rem;
	color: var(--nsrf-navy);
	line-height: 1.4;
}

.nsrf-objective__actions {
	margin: 0;
	padding-left: 1.15rem;
	display: grid;
	gap: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--nsrf-grey);
}

.nsrf-objective__actions > li { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.nsrf-area__summary-toggle::before { transition: none; }
}

/* Priority Research Topics ----------------------------------------------- */

.nsrf-topics__heading {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	color: var(--nsrf-navy);
	margin-bottom: 1.5rem;
}

.nsrf-topics__grid {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
	align-items: start;
}

.nsrf-topic {
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-left: 5px solid var(--topic-accent, var(--nsrf-navy));
	border-radius: var(--nsrf-radius);
	padding: 1.25rem;
	margin: 0;
	height: 100%;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nsrf-topic:hover {
	box-shadow: var(--nsrf-shadow);
	transform: translateY(-2px);
}

.nsrf-topic__title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--nsrf-navy);
	line-height: 1.35;
}

.nsrf-topic__title a { color: var(--nsrf-navy); text-decoration: none; }
.nsrf-topic__title a:hover { color: var(--nsrf-pink); text-decoration: underline; }

.nsrf-topic__body {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--nsrf-grey);
}

.nsrf-topics__figure { margin: 2.5rem 0 0; }
.nsrf-topics__figure img { width: 100%; height: auto; border-radius: var(--nsrf-radius); }

.nsrf-topics__figure figcaption {
	font-size: 0.875rem;
	color: var(--nsrf-grey);
	margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
	.nsrf-topic { transition: none; }
	.nsrf-topic:hover { transform: none; }
}

/* Timeline ----------------------------------------------------------------
   Year sits in its own column against the rail, label to the right.
   No numbering, tighter rhythm.
   -------------------------------------------------------------------------- */

.nsrf-timeline__heading {
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	color: var(--nsrf-navy);
	margin-bottom: 1.5rem;
	max-width: 34ch;
}

.nsrf-timeline__list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.nsrf-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	align-items: baseline;
	gap: 0 1.5rem;
	padding: 0.875rem 0 0.875rem 1.5rem;
	margin: 0;
	border-left: 2px solid var(--nsrf-line);
}

.nsrf-timeline__item:first-child { padding-top: 0.25rem; }
.nsrf-timeline__item:last-child { padding-bottom: 0.25rem; }

.nsrf-timeline__item::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 1.15rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--nsrf-card);
	border: 3px solid var(--nsrf-navy);
}

.nsrf-timeline__item:first-child::before { top: 0.5rem; }

/* NSRF milestones carry the green marker; national policy stays navy. */
.nsrf-timeline__item--nsrf::before { border-color: var(--nsrf-green); }

.nsrf-timeline__year {
	font-family: var(--nsrf-font-display);
	font-weight: 800;
	font-size: 1.125rem;
	color: var(--nsrf-navy);
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.nsrf-timeline__item--nsrf .nsrf-timeline__year { color: var(--nsrf-green-text); }

.nsrf-timeline__label {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--nsrf-ink);
	max-width: 52ch;
}

@media (max-width: 480px) {
	.nsrf-timeline__item {
		grid-template-columns: 1fr;
		gap: 0.125rem;
	}
}

/* Stats strip ------------------------------------------------------------ */

.nsrf-stats {
	background: var(--nsrf-navy);
	border-radius: var(--nsrf-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.nsrf-stats__list {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--nsrf-gap);
}

.nsrf-stat {
	color: #fff;
	padding-left: 1rem;
	border-left: 3px solid var(--nsrf-green);
	margin: 0;
}

.nsrf-stat__figure {
	display: block;
	font-family: var(--nsrf-font-display);
	font-weight: 800;
	font-size: clamp(1.875rem, 3.4vw, 2.5rem);
	line-height: 1;
}

.nsrf-stat__label {
	display: block;
	margin-top: 0.625rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #dfe4f0;
}

/* Support signposting ---------------------------------------------------- */

.nsrf-signpost {
	background: var(--nsrf-bg);
	border: 1px solid var(--nsrf-line);
	border-left: 5px solid var(--nsrf-lilac);
	border-radius: var(--nsrf-radius);
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.nsrf-signpost__heading { font-size: 1.25rem; color: var(--nsrf-navy); }
.nsrf-signpost__intro { margin: 0.5rem 0 1rem; max-width: 65ch; line-height: 1.6; }

.nsrf-signpost__list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
}

.nsrf-signpost__item { display: flex; flex-direction: column; margin: 0; }
.nsrf-signpost__name { font-weight: 700; color: var(--nsrf-navy); text-decoration: none; }
.nsrf-signpost__name:hover { color: var(--nsrf-pink); text-decoration: underline; }
.nsrf-signpost__contact { font-size: 0.9375rem; color: var(--nsrf-grey); }

/* Print ------------------------------------------------------------------ */

@media print {
	.nsrf-areas__list { grid-template-columns: 1fr; }
	.nsrf-area__details { display: block; }
	.nsrf-area__details > *:not(summary) { display: block !important; }
	.nsrf-topic:hover { box-shadow: none; }
}
