/* ============================================================
	Volunteer Centre public site
	Mobile first. Colours and spacing are set once here.
============================================================ */
:root {
	/* The Centre's current colours, taken from the WordPress site */
	--blue: #336699;           /* buttons, links, footer */
	--blue-dark: #22577a;
	--navy: #16354b;           /* headings */
	--green: #009966;          /* the green in the logo: small accents only */
	--yellow: #f2bc0c;         /* highlight on dark backgrounds */
	--wash: #f3f7f8;           /* light blue-grey section background */
	--cream: #f7f5f2;
	--paper: #ffffff;
	--ink: #333333;
	--muted: #666666;
	--line: #dde3e8;
	--white: #ffffff;
	--error: #b3261e;
	--radius: 12px;
	--wrap: 1160px;
	--shadow: 0 1px 2px rgba(22, 53, 75, 0.06), 0 8px 24px rgba(22, 53, 75, 0.08);
	--font-body: 'Open Sans', Arial, sans-serif;
	--font-heading: 'Roboto', Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3 { color: var(--navy); font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 500; }
h3 { font-size: 1.1rem; font-weight: 600; }

.wrap { margin: 0 auto; max-width: var(--wrap); padding: 0 20px; }

.skip-link { background: var(--blue); color: var(--white); left: 12px; padding: 10px 16px; position: absolute; top: -60px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.button {
	align-items: center;
	background: var(--blue);
	border: 2px solid var(--blue);
	border-radius: 999px;
	color: var(--white);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 0.55em; /* between the words and an icon, before or after them */
	justify-content: center;
	padding: 11px 22px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.button-light { background: transparent; color: var(--blue); }
.button-light:hover { background: var(--wash); color: var(--navy); }
.button-small { padding: 7px 16px; }

/* ---------- Header and menu ---------- */
/* The slim bar across the very top: contact details on the left, social media on the right.
   It scrolls away with the page; the header under it stays. */
.top-bar { background: var(--navy); color: rgba(255, 255, 255, 0.86); font-size: 0.82rem; }
.top-bar-inner { align-items: center; display: flex; gap: 12px; justify-content: space-between; min-height: 40px; }
.top-bar-contact { align-items: center; display: flex; gap: 6px 22px; min-width: 0; }
.top-bar-link { align-items: center; color: inherit; display: inline-flex; gap: 7px; min-height: 40px; text-decoration: none; transition: color 0.15s; white-space: nowrap; }
.top-bar-link .fa-solid { color: var(--yellow); flex: none; font-size: 0.85rem; text-align: center; width: 16px; }
.top-bar-link:hover, .top-bar-link:focus-visible { color: var(--white); }
.top-bar-link:hover span, .top-bar-link:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.top-bar-phone span { color: var(--white); font-weight: 700; letter-spacing: 0.01em; }
.top-bar-social { align-items: center; display: flex; flex: none; gap: 6px; }
.top-bar-social a { align-items: center; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: var(--white); display: inline-flex; height: 28px; justify-content: center; transition: background-color 0.15s, color 0.15s, transform 0.15s; width: 28px; }
.top-bar-social a:hover, .top-bar-social a:focus-visible { background: var(--yellow); color: var(--navy); transform: translateY(-1px); }
.top-bar-social .fa-brands { font-size: 0.9rem; }
.top-bar-social a, .top-bar-link, .social-link, .aside-contact a, .footer-staff { text-decoration: none; }
.top-bar-social a.top-bar-language { background: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-weight: 700; height: 26px; margin-right: 8px; padding: 0 12px; text-decoration: none; width: auto; }
.top-bar-social a.top-bar-language:hover, .top-bar-social a.top-bar-language:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy); transform: none; }
@media (max-width: 939.98px) { .top-bar-language { display: none !important; } }
/* Narrower screens: the phone number stays written out, email and contact become round icon buttons */
@media (max-width: 860px) {
	.top-bar-contact { gap: 6px; }
	.top-bar-phone { margin-right: 6px; }
	.top-bar-email span, .top-bar-place span { border: 0; clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
	.top-bar-email, .top-bar-place { background: rgba(255, 255, 255, 0.1); border-radius: 50%; height: 28px; justify-content: center; min-height: 0; width: 28px; }
	.top-bar-email .fa-solid, .top-bar-place .fa-solid { color: var(--white); font-size: 0.85rem; width: auto; }
	.top-bar-email:hover, .top-bar-place:hover { background: var(--yellow); }
	.top-bar-email:hover .fa-solid, .top-bar-place:hover .fa-solid { color: var(--navy); }
}
@media (max-width: 380px) { .top-bar-social a:nth-child(n+3), .top-bar-place { display: none; } }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--admin-bar, 0px); z-index: 50; }
.header-inner { align-items: center; display: flex; gap: 16px; justify-content: space-between; min-height: 68px; }

.brand { align-items: center; color: var(--navy); display: flex; gap: 12px; text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; }
.brand-name { color: var(--navy); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; line-height: 1.25; max-width: 15em; }

/* Menu button on phones and tablets: three bars, no label. They turn into an X while the menu is open. */
.nav-toggle { align-items: center; background: none; border: 0; border-radius: 10px; color: var(--navy); cursor: pointer; display: flex; height: 44px; justify-content: center; padding: 0; width: 44px; }
.nav-toggle:hover { background: var(--wash); }
.nav-toggle .fa-solid { font-size: 1.45rem; }
.nav-toggle .nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-block; }

.site-nav { background: var(--white); bottom: 0; display: none; left: 0; overflow-y: auto; padding: 12px 20px 40px; position: fixed; right: 0; top: 69px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { border-bottom: 1px solid var(--line); }
.site-nav a, .nav-parent { background: none; border: 0; color: var(--ink); cursor: pointer; display: flex; font: inherit; font-weight: 700; justify-content: space-between; padding: 14px 4px; text-align: left; text-decoration: none; width: 100%; }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav li ul { display: none; padding: 0 0 10px 14px; }
.site-nav li ul a { font-weight: 600; padding: 9px 4px; }
.nav-parent[aria-expanded="true"] + ul { display: block; }
.caret { align-self: center; font-size: 0.7rem; margin: 0 4px 0 10px; transition: transform 0.15s ease; }
.nav-parent[aria-expanded="true"] .caret { transform: rotate(180deg); }
.site-nav .nav-extra { border: 0; padding-top: 14px; }
.site-nav .nav-extra .button { color: var(--white); display: inline-block; width: auto; }

@media (min-width: 940px) and (hover: hover) {
	.site-nav li.has-children:hover > ul { display: block; }
	.site-nav li.has-children:hover > .nav-parent { background: var(--wash); }
	.site-nav li.has-children:hover > .nav-parent .caret { transform: rotate(180deg); }
}
@media (min-width: 940px) {
	.nav-toggle { display: none; }
	.site-nav .nav-language { display: none; } /* the language switch is in the top bar at this width */
	.site-nav { background: none; display: block; overflow: visible; padding: 0; position: static; }
	.site-nav > ul { align-items: center; display: flex; gap: 2px; }
	.site-nav > ul > li { border: 0; position: relative; }
	.site-nav a, .nav-parent { border-radius: 8px; font-size: 0.93rem; padding: 8px 10px; white-space: nowrap; width: auto; }
	.site-nav a:hover, .nav-parent:hover { background: var(--wash); }
	.site-nav li ul { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); left: 0; min-width: 260px; padding: 8px; position: absolute; top: calc(100% + 8px); }
	.site-nav li ul a { white-space: normal; width: 100%; }
	/* With a mouse the sub-menus open when pointed at (clicking still works, for touch and keyboard).
	   The strip above each one bridges the small gap under its heading, so it doesn't close on the way down. */
	.site-nav li.has-children > ul::before { content: ''; height: 12px; left: 0; position: absolute; right: 0; top: -12px; }
	.site-nav li.has-children.opens-left > ul { left: auto; right: 0; }
	.site-nav .nav-extra { padding: 0 0 0 6px; }
	.caret { margin-left: 7px; }
}

/* ---------- Hero and page heads ---------- */
/* Home page hero: the photo shown on the right, darkened on the left behind the name and the three buttons */
.hero { background: var(--blue-dark) center / cover no-repeat; color: var(--white); padding: 52px 0 56px; position: relative; }
.hero::before { background: linear-gradient(90deg, rgba(18, 53, 77, 0.92) 0%, rgba(18, 53, 77, 0.8) 42%, rgba(18, 53, 77, 0.3) 100%); content: ''; inset: 0; position: absolute; }
.hero .wrap { position: relative; }
.hero-panel { max-width: 46rem; } /* room for the three buttons, with their icons, on one row */
.hero h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.1; margin: 0; max-width: 40rem; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.hero-kicker { color: var(--yellow); font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.08em; margin: 0 0 12px; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) { .hero { align-items: center; display: flex; min-height: 420px; padding: 64px 0; } .hero .wrap { width: 100%; } }
@media (max-width: 599.98px) { .hero::before { background: rgba(18, 53, 77, 0.82); } .hero-actions .button { flex: 1 1 100%; justify-content: center; text-align: center; } }
.hero .button { background: var(--white); border-color: var(--white); color: var(--navy); }
.hero .button:hover { background: var(--wash); border-color: var(--wash); color: var(--navy); }
.hero .button-light { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.hero .button-light:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* Inner pages open with a photo banner under a navy tint, like the home page */
/* Page banner: the photo shown clearly, the title centred over it, and a slanted white edge along the bottom
   (as on the WordPress site). */
.page-head { align-items: center; background: var(--blue-dark) center / cover no-repeat; color: var(--white); display: flex; min-height: clamp(200px, 27vw, 390px); padding: 36px 0 64px; position: relative; text-align: center; }
.page-head::before { background: radial-gradient(ellipse 75% 85% at 50% 46%, rgba(16, 45, 66, 0.5), rgba(16, 45, 66, 0.12) 78%); content: ''; inset: 0; position: absolute; }
.page-head::after { background: linear-gradient(to bottom right, transparent 0 43%, rgba(255, 255, 255, 0.5) 43.3% 49.7%, var(--white) 50%); bottom: -1px; content: ''; height: clamp(34px, 6.4vw, 96px); left: 0; position: absolute; right: 0; }
.page-head .wrap { position: relative; width: 100%; }
.page-head h1 { color: var(--white); font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); margin: 0 auto; max-width: 20em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4); }
.page-head-subtitle { color: var(--white); font-family: var(--font-heading); font-size: clamp(1rem, 0.8rem + 0.9vw, 1.45rem); font-weight: 500; margin: 6px auto 0; max-width: 34em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4); }
/* A photo with its own words in it: nothing over it, and the whole picture in view */
.page-head-plain::before { content: none; }
.page-head-plain .wrap { border: 0; clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.eyebrow { color: var(--yellow); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; margin: 0 0 8px; text-transform: uppercase; }
.page-head .meta { color: rgba(255, 255, 255, 0.9); margin: 8px 0 0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.lead { color: var(--navy); font-size: 1.15rem; line-height: 1.6; margin: 0; }
.meta { color: var(--muted); }

.page-layout { display: grid; gap: 40px; padding-bottom: 64px; padding-top: 36px; }
.page-body { min-width: 0; }
.wrap.page-body { padding-bottom: 64px; padding-top: 36px; }
@media (min-width: 1000px) { .page-layout { align-items: start; grid-template-columns: minmax(0, 1fr) 300px; } .page-layout-full { grid-template-columns: minmax(0, 1fr); } }

/* "Get involved" panel beside the content */
.page-aside { background: var(--wash); border-radius: var(--radius); display: grid; gap: 12px; padding: 22px; }
.page-aside h2 { font-size: 1.15rem; margin: 0 0 2px; }
.aside-card { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: flex; gap: 14px; padding: 14px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.aside-card:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.aside-card .fa-solid { color: var(--blue); flex: none; font-size: 1.3rem; text-align: center; width: 28px; }
.aside-card strong { color: var(--navy); display: block; font-family: var(--font-heading); font-weight: 600; }
.aside-card span span { color: var(--muted); display: block; font-size: 0.88rem; line-height: 1.4; }
.aside-donate { text-align: center; }
.aside-contact { display: flex; flex-wrap: wrap; gap: 6px; } /* side by side when they fit, one above the other when not */
.aside-contact a { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--navy); display: flex; flex: 1 1 auto; font-size: 0.86rem; font-weight: 700; gap: 6px; justify-content: center; padding: 8px 11px; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; white-space: nowrap; }
.aside-contact a .fa-solid { color: var(--blue); flex: none; font-size: 0.85rem; }
.aside-contact a:hover, .aside-contact a:focus-visible { border-color: var(--blue); color: var(--blue); }
@media (min-width: 1000px) { .page-aside { position: sticky; top: calc(92px + var(--admin-bar, 0px)); } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tint { background: var(--cream); }
.section-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; } }

/* ---------- Written content ---------- */
.prose { max-width: 46em; overflow-wrap: break-word; } /* a long web address written out as text wraps instead of pushing the page sideways */
/* Section headings: bigger and bolder than the text, with a short blue and yellow bar under them */
.prose h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; margin: 1.6em 0 0.85em; padding-bottom: 0.5em; position: relative; }
.prose h2::after { background: linear-gradient(90deg, var(--blue) 0 52px, transparent 52px 58px, var(--yellow) 58px 72px); border-radius: 2px; bottom: 0; content: ''; height: 4px; left: 0; position: absolute; width: 72px; }
/* A heading straight after another reads as the line under it */
.prose h2 + h2 { font-size: 1.2rem; font-weight: 500; margin-top: -0.1em; padding-bottom: 0; }
.prose h2 + h2::after { content: none; }
.prose h2 + h3, .prose h2 + h4, .prose h2 + h5 { margin-top: 0; }
.prose h4 { color: var(--blue); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; margin: 1.8em 0 0.4em; text-transform: uppercase; }
.prose a { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { background: var(--cream); border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4em 0; padding: 14px 18px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 1.4em; position: relative; }
.prose ul li::before { background: var(--green); border-radius: 50%; content: ''; height: 7px; left: 0.2em; position: absolute; top: 0.7em; width: 7px; }
.prose figure img, .block > p > img { box-shadow: var(--shadow); }
.prose p > img:only-child { display: block; }
/* Buttons that follow one another sit side by side */
.prose p:has(> a.button:only-child) { display: inline-block; margin: 0 10px 12px 0; }
.prose p:has(> a.button:only-child) + :not(p:has(> a.button:only-child)) { margin-top: 0.6em; }
/* Pictures that follow one another sit side by side on wider screens */
.prose figure + figure { margin-top: 0; }
@media (min-width: 700px) { .prose figure:has(+ figure), .prose figure + figure { display: inline-block; margin-right: 12px; max-width: calc(50% - 12px); vertical-align: top; } }
.prose figure img { border-radius: var(--radius); display: block; }
/* Groups of links: a titled panel with one tidy row per link, instead of a stack of big buttons */
.link-panels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 1.4em 0; }
.link-panel { background: var(--white); border: 1px solid #dbe5ea; border-top: 4px solid var(--blue); border-radius: 12px; box-shadow: 0 1px 2px rgba(22, 53, 75, 0.06); margin: 1.4em 0; overflow: hidden; }
.link-panels .link-panel { margin: 0; }
.link-panels .link-panel:nth-child(even) { border-top-color: var(--green); }
.prose div.link-panel > h2, .prose div.link-panel > h3, .prose div.link-panel > h4 { border: 0; font-size: 1.15rem; margin: 0; padding: 16px 18px 10px; }
.prose div.link-panel > h2::before, .prose div.link-panel > h3::before, .prose div.link-panel > h4::before, .prose div.link-panel > h2::after { content: none; }
.prose div.link-panel ul { list-style: none; margin: 0; max-width: none; padding: 0; }
.prose div.link-panel li { border-top: 1px solid #e6edf1; margin: 0; padding: 0; }
.prose div.link-panel li::before, .prose div.link-panel li::marker { content: none; }
.prose div.link-panel li a { align-items: center; color: var(--navy); display: flex; font-weight: 600; gap: 12px; line-height: 1.35; min-height: 48px; padding: 11px 18px; text-decoration: none; }
.prose div.link-panel li a::after { color: var(--blue); content: "\f054"; flex: none; font: var(--fa-font-solid); font-size: 0.75rem; margin-left: auto; transition: transform 0.15s; }
/* A link's own icon sits in a round badge on the left, in the colour of its panel's top edge */
.prose div.link-panel li a > i { align-items: center; background: var(--wash); border-radius: 50%; color: var(--blue); display: inline-flex; flex: none; font-size: 0.95rem; height: 36px; justify-content: center; width: 36px; }
.link-panels .link-panel:nth-child(even) li a > i { color: var(--green); }
.prose div.link-panel li a:hover > i, .prose div.link-panel li a:focus-visible > i { background: var(--white); }
.prose div.link-panel li a:hover, .prose div.link-panel li a:focus-visible { background: var(--wash); color: var(--blue-dark); }
.prose div.link-panel li a:hover::after { transform: translateX(3px); }
.prose div.link-panel li a[href$=".pdf" i]::after { content: "\f1c1"; font-size: 1rem; } /* a PDF download shows a PDF icon */
.prose div.link-panel li a[href$=".pdf" i]:hover::after { transform: none; }

/* ---------- Sections of written content (made by layoutBlocks() in render.php) ---------- */
.block > :first-child, .block-text > :first-child, .block-head > :first-child, .block-body > :first-child { margin-top: 0; }
.block-head > :last-child, .block-body > :last-child { margin-bottom: 0; }
/* A section whose heading was split from its content: the same room under the heading as a heading followed by text */
.block-head + .block-body { margin-top: 1.1em; }
.block > :last-child, .block-text > :last-child { margin-bottom: 0; }
/* Each new section starts below a dividing line, with room above and below it */
.block + .block { border-top: 1px solid var(--line); margin-top: 2.8em; padding-top: 2.8em; }
/* A line the old page put at the start or end of a section is not needed next to that divider */
/* A line drawn at the start or end of a section doubles the divider between sections: it isn't shown */
.block > hr:first-child, .block > hr:last-child, .block-text > hr:last-child, .block-body > hr:first-child, .block-body > hr:last-child { display: none; }
.block-media { margin-top: 1.2em; }
.block-media figure { margin: 0; }

/* Pictures and videos never grow past a comfortable size, however wide the screen */
.prose figure img { height: auto; max-height: 360px; max-width: 100%; width: auto; }
.prose iframe, .prose video { max-width: 720px; }
.prose video { aspect-ratio: auto; max-height: 480px; width: auto; }

/* Pictures and videos that follow one another: an even grid */
.media-grid { align-items: start; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 1.4em 0; }
.prose .media-grid > * { display: block; margin: 0; max-width: none; }
.media-grid br { display: none; }
.media-grid a { display: block; }
.prose .media-grid img { background: var(--wash); border-radius: var(--radius); box-shadow: none; display: block; height: 220px; max-height: none; object-fit: cover; width: 100%; }
.prose .media-grid figure img { height: auto; max-height: 340px; object-fit: contain; }
.prose .media-grid video, .prose .media-grid iframe { max-height: 340px; max-width: 100%; }
.prose .media-grid video { background: #000000; width: 100%; }

/* Cards: a picture with a name, link or button under it */
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); margin: 1.4em 0 2.4em; }
.tile { background: var(--white); border: 1px solid #dbe5ea; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(22, 53, 75, 0.06); display: flex; flex-direction: column; overflow: hidden; padding: 0 16px 16px; }
.prose .tile > * { margin: 10px 0 0; max-width: none; }
.prose .tile > figure, .prose .tile > p:has(> img:only-child), .prose .tile > p:has(> a:only-child > img) { background: var(--wash); margin: 0 -16px 4px; padding: 14px; }
/* Every card's picture box is the same height, with the picture (or two logos side by side) centred in it */
.prose .tile > figure { align-items: center; box-sizing: border-box; display: flex; gap: 10px; height: 140px; justify-content: center; }
.prose .tile > figure > a { align-items: center; display: flex; height: 100%; justify-content: center; max-width: 100%; }
.prose .tile img, .prose .tile figure.small-picture img { border-radius: 6px; box-shadow: none; display: block; flex: 1 1 0; height: 100%; margin: 0; max-height: none; max-width: 100%; min-width: 0; object-fit: contain; width: 100%; }
.prose .tile h3, .prose .tile h4, .prose .tile h5 { color: var(--navy); font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0; line-height: 1.3; text-transform: none; }
.prose .tile p { display: block; font-size: 0.95rem; line-height: 1.4; }
.prose .tile p:has(> a.button:only-child) { margin-top: auto; padding-top: 12px; }
.prose .tile a.button { font-size: 0.9rem; padding: 8px 16px; }
/* A card that leads to one place: the whole card is the link, and its name reads as a title */
.tile-link { position: relative; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.tile-link:hover, .tile-link:focus-within { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.prose .tile-link p > a:not(.button) { color: var(--navy); display: block; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.prose .tile-link p > a:not(.button)::before { content: ''; inset: 0; position: absolute; }
.prose .tile-link p > a:not(.button)::after { color: var(--blue); content: "\f061"; display: inline-block; font: var(--fa-font-solid); font-size: 0.8em; margin-left: 0.45em; vertical-align: 0.05em; }
.prose .tile-link:hover p > a:not(.button) { color: var(--blue); }
/* A section that links on the page jump to stops just under the header, not behind it */
.block[id] { scroll-margin-top: calc(96px + var(--admin-bar, 0px)); }

/* People and contacts side by side */
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 1em 0; }
.prose .contact-grid > p, .prose .contact-grid > p:has(> strong:first-child + br) { margin: 0; overflow-wrap: anywhere; } /* the grid's gap does the spacing */
.prose h2.long-heading { font-size: 1.2rem; line-height: 1.4; }
/* The white version of the logo needs a dark background to be seen */
.prose img[src*="logo" i][src*="white" i], .prose img[src*="logo" i][src*="blanc" i] { background-color: var(--navy) !important; border-radius: var(--radius); padding: 12px 16px; }

/* A picture or video with its text beside it */
.media-row { margin: 1.4em 0; }
.media-row-media figure, .media-row-media > p { margin: 0; }
.media-row-text > :first-child { margin-top: 0.6em; }
@media (min-width: 720px) {
	.media-row { align-items: start; column-gap: 28px; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
	.media-row-media img { max-height: 300px; width: 100%; object-fit: contain; }
	.media-row-media video, .media-row-media iframe { max-width: 100%; }
	.media-row-text > :first-child { margin-top: 0; }
	.page-body .block-split { align-items: start; column-gap: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
	.page-body .block-split .block-media { margin-top: 0; }
	.page-body .block-split .block-media img { max-height: 300px; width: 100%; object-fit: contain; }
}

/* Home page: full width, one band per section, text beside its picture on wide screens */
.home-content { padding: 0; }
.home-content .prose { max-width: none; }
.home-content .block { margin: 0; padding: 36px 0; }
.home-content .block + .block { border-top: 0; margin-top: 0; }
.home-content .prose:first-child > .block:first-child { padding-top: 44px; }
.home-content .prose > .block:nth-of-type(even) { background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax); }
.home-content .block > p, .home-content .block > ul, .home-content .block > ol, .home-content .block > h3, .home-content .block > h4, .home-content .block-text > * { max-width: 46em; }
.home-content .block > .link-panel, .home-content .block > .media-grid { max-width: 46em; } /* lined up with the text above */
.home-content .prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.home-content .prose h3 { font-size: 1.2rem; }
.home-content .block > figure img, .home-content .block > p > img:only-child { max-height: 380px; }
.home-content .block > video, .home-content .block > iframe { max-width: 560px; }
.media-grid + .media-grid { margin-top: 16px; }
/* Logos: pictures that were small on the old site (partners, CanadaHelps) keep a logo's size; several in a row sit
   side by side, centred, instead of filling big tiles */
.prose figure.small-picture img { background: none; border-radius: 0; box-shadow: none; height: auto; max-height: 110px; max-width: min(100%, 240px); object-fit: contain; width: auto; }
.prose .media-grid.logo-row { align-items: center; display: flex; flex-wrap: wrap; gap: 24px 28px; justify-content: center; margin: 1.6em 0; }
.prose .media-grid.logo-row > * { flex: 0 1 auto; }
.prose .media-grid.logo-row img { background: none; height: auto; max-height: 84px; max-width: 160px; object-fit: contain; width: auto; }
.page-body .block-split .block-media .small-picture img, .media-row-media .small-picture img { max-height: 150px; max-width: 220px; width: auto; } /* a logo beside its text */
.prose figure.narrow-picture img { max-width: min(100%, 320px); } /* a picture that was small on the old site, not a logo */
.home-content > .wrap > :not(.prose) { margin-bottom: 36px; margin-top: 8px; }
@media (min-width: 960px) {
	.home-content .block { padding: 56px 0; }
	.home-content .block-split { align-items: start; column-gap: 56px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.home-content .block-split:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
	.home-content .block-split:nth-of-type(even) > .block-media { order: -1; }
	.home-content .block-media { margin-top: 6px; position: sticky; top: calc(96px + var(--admin-bar, 0px)); }
	/* Text-only sections: heading on the left, text on the right */
	.home-content .block-columns { align-items: start; column-gap: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
	.home-content .block-head { position: sticky; top: calc(96px + var(--admin-bar, 0px)); }
	.home-content .block-head h2 { margin-bottom: 0.5em; }
	.home-content .block-head h3 { font-size: 1.1rem; margin: 0.6em 0 0.2em; }
	.home-content .block-head h4 { margin: 0.4em 0 0; }
	.home-content .block-head + .block-body { margin-top: 0; padding-top: 0.35em; } /* side by side here */
	.home-content .block-media img { max-height: 420px; }
	.home-content .block-media video, .home-content .block-media iframe { max-width: 100%; }
}

/* A person or contact written as bold name, then lines under it: shown as a small card */
.prose p:has(> strong:first-child + br) { background: var(--wash); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; margin: 12px 0; padding: 12px 16px; }
/* A second group of cards in the same section (on Staff: the service providers, under their own heading) in the logo's green */
.prose .contact-grid ~ .contact-grid > p:has(> strong:first-child + br) { background: #eef7f3; border-left-color: var(--green); }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); }
.prose iframe, .prose video { aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); height: auto; max-width: 100%; width: 100%; }
/* A row of pictures and videos together (home page: the survey poster beside two phone videos): every one the same
   height on a light background, shown whole, so a tall phone video sits in its own shape instead of a wide black box */
.prose .media-grid:has(> video, > iframe) { align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.prose .media-grid:has(> video, > iframe) > figure, .prose .media-grid:has(> video, > iframe) > video { aspect-ratio: auto; background: var(--wash); border-radius: var(--radius); height: 320px; max-height: none; overflow: hidden; width: 100%; }
.prose .media-grid:has(> video, > iframe) > figure { align-items: center; display: flex; justify-content: center; padding: 10px; }
.prose .media-grid:has(> video, > iframe) > figure img { background: none; border-radius: 6px; height: 100%; max-height: none; object-fit: contain; width: 100%; }
.prose .media-grid:has(> video, > iframe) > video { object-fit: contain; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.lead-image { border-radius: var(--radius); display: block; margin-bottom: 24px; max-height: 460px; max-width: 100%; object-fit: contain; width: auto; }
.back-link { margin-top: 36px; }
.lead-image { box-shadow: var(--shadow); }
.back-link a { font-weight: 700; text-decoration: none; }
.back-link a .fa-solid, .card-link .fa-solid { font-size: 0.85em; margin: 0 0.3em; transition: transform 0.15s ease; }
.back-link a:hover .fa-solid { transform: translateX(-3px); }
.card:hover .card-link .fa-solid { transform: translateX(3px); }

.prose figure { margin: 1.4em 0; }
/* Fold-out sections: blue bars, as on the current site */
.prose details { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; overflow: hidden; }
.prose summary { background: var(--blue); color: var(--white); cursor: pointer; font-family: var(--font-heading); font-weight: 600; list-style: none; padding: 14px 44px 14px 16px; position: relative; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "\f078"; font: var(--fa-font-solid); font-size: 0.8rem; position: absolute; right: 18px; top: 50%; margin-top: -0.4rem; transition: transform 0.15s ease; }
.prose details[open] summary::after { transform: rotate(180deg); }
.prose summary:hover { background: var(--blue-dark); }
.prose details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.prose details > :last-child { margin-bottom: 16px; }
.prose details > summary + * { margin-top: 16px; }
.prose .button { color: var(--white); line-height: 1.3; padding-bottom: calc(11px + 0.2em); padding-top: calc(11px + 0.2em); } /* the same height as before on one line, tidier on two */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 1.4em 0; }
.gallery img { aspect-ratio: 1; border-radius: 8px; display: block; object-fit: cover; width: 100%; }
.page-body > * + * { margin-top: 28px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter a { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9rem; font-weight: 600; padding: 6px 14px; text-decoration: none; }
.filter a:hover { background: var(--wash); }
.filter a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
/* Card pictures are often logos or posters, so the whole picture is shown (never cropped) on a light panel */
.card-image { aspect-ratio: 16 / 9; background: var(--wash); border-bottom: 1px solid var(--line); object-fit: contain; padding: 14px; width: 100%; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.card-meta { color: var(--blue) !important; font-size: 0.8rem !important; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-link { color: var(--blue); font-weight: 700; margin-top: auto; }
.empty-note { color: var(--muted); }
.home-more { margin: 18px 0 0; } /* the button under a home page preview list, to the page with all of them */
/* Home page previews: one row of four cards, two rows of two on narrower screens, one per row on phones */
.home-content .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099.98px) { .home-content .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .home-content .card-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 419.98px) { .home-more .button i { display: none; } } /* a long label would leave the arrow alone on a second line */
/* A preview list sits in the band of its heading, with the text that goes with it above the cards */
.home-content .block > .embedded { margin-top: 22px; }
.home-content .block > .embedded .event-list, .home-content .block > .embedded .card-grid { margin: 0; }
/* The lists drawn inside the text keep their own look, not the text's (bullets, heading space, button rows) */
.prose .embedded .card h3 { margin-top: 0; }
.prose .embedded .event-list { padding-left: 0; }
.prose .embedded .event-list li { margin: 0; padding-left: 0; }
.prose .embedded .event-list li::before { content: none; }
.home-content .prose .embedded p.home-more { margin: 22px 0 0; }
.prose .home-more .button-light { color: var(--blue); } /* inside the text now, where buttons are otherwise white on blue */
.prose .home-more .button-light:hover { color: var(--navy); }
/* A phone video (the welcome video beside the links) keeps its own tall shape instead of a wide black box */
.home-content .block-media video { aspect-ratio: auto; background: none; display: block; height: auto; margin: 0 auto; max-height: 460px; max-width: 100%; width: auto; }
/* Beside link lists on wide screens it is exactly as tall as the lists: it takes its height from them instead of
   setting the row's, and is never wider than its column allows (125cqw: the height of a 4:5 phone video that fills
   it). Where the lists sit one under the other (up to 1199px), its column gets half the width so it can match them. */
@media (min-width: 960px) {
	.home-content .block-split:has(> .block-text > .link-panels) { align-items: stretch; }
	.home-content .block-split:has(> .block-text > .link-panels) > .block-media:has(> video:only-child) { container-type: inline-size; margin-top: 0; position: relative; top: auto; }
	.home-content .block-split:has(> .block-text > .link-panels) > .block-media > video:only-child { aspect-ratio: auto 4 / 5; height: min(100%, 125cqw); inset: 0 0 auto; margin: 0 auto; max-height: none; position: absolute; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
	.home-content .block-split:has(> .block-text > .link-panels) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* The posts pinned to the top of the home page: a row of cards (three across for three) right under the banner's boxes */
.home-content .block-featured .card-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
/* They stand out without saying so: a navy band behind them, a coloured top edge on each card (blue, green, yellow, like
   the boxes), and a yellow badge with an exclamation mark (decorative: screen readers skip it) */
.home-content .prose > .block.block-featured { background: var(--navy); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.home-content .block-featured .card { border: 0; border-top: 5px solid var(--blue); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); position: relative; }
.home-content .block-featured .card:nth-child(3n+2) { border-top-color: var(--green); }
.home-content .block-featured .card:nth-child(3n) { border-top-color: var(--yellow); }
.home-content .block-featured .card-image { background: var(--white); }
.home-content .block-featured .card::before { align-items: center; background: var(--yellow); border-radius: 50%; box-shadow: 0 2px 8px rgba(22, 53, 75, 0.3); color: var(--navy); content: "\21"; content: "\21" / ""; display: flex; font: var(--fa-font-solid); font-size: 1rem; height: 38px; justify-content: center; position: absolute; right: 14px; top: 14px; width: 38px; z-index: 1; }
/* The old site's small boxes (About us, Our programs, Community Agencies...): two columns of boxes in one band, each
   box as tall as its own content */
.home-content .boxes { column-gap: 28px; columns: 2; }
.home-content .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--blue); box-shadow: var(--shadow); break-inside: avoid; display: flow-root; margin: 0 0 28px; padding: 22px 26px 24px; }
.home-content .box:nth-child(3n+2) { border-top-color: var(--green); }
.home-content .box:nth-child(3n) { border-top-color: var(--yellow); }
.home-content .box > :first-child { margin-top: 0; }
.home-content .box > :last-child { margin-bottom: 0; }
.home-content .box h2 { font-size: 1.4rem; }
.home-content .box figure, .home-content .box img { max-width: 100%; }
.home-content .box .media-grid:has(> video, > iframe) { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* the posters and videos: three small ones across */
.home-content .box .media-grid:has(> video, > iframe) > figure, .home-content .box .media-grid:has(> video, > iframe) > video { height: 240px; }
@media (max-width: 899.98px) { .home-content .boxes { columns: 1; } }
@media (max-width: 599.98px) { .home-content .box { margin-bottom: 18px; padding: 18px 18px 20px; } }
/* A testimonial (a quote with a photo, in a band of its own): the photo beside the words, as on the old site, then
   the name and the Centre's reply in green */
.home-content .block-testimonial blockquote { align-items: center; column-gap: 48px; display: grid; grid-template-columns: 210px minmax(0, 1fr); margin: 0 auto; max-width: 64em; background: none; border: 0; border-radius: 0; padding: 0; }
.home-content .block-testimonial blockquote::before { color: var(--blue); content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-size: 1.9rem; font-weight: 900; grid-column: 2; line-height: 1; margin-bottom: 14px; }
.home-content .block-testimonial blockquote > img { aspect-ratio: 1; border-radius: 28px; box-shadow: var(--shadow); grid-column: 1; grid-row: 1 / span 5; height: auto; object-fit: cover; width: 100%; }
.home-content .block-testimonial blockquote > p { grid-column: 2; margin: 0 0 10px; }
.home-content .block-testimonial blockquote > p:first-of-type { color: var(--ink); font-size: 1.14rem; line-height: 1.7; }
.home-content .block-testimonial blockquote > p:has(> strong:first-child) { color: var(--muted); }
.home-content .block-testimonial blockquote > p:has(> em:first-child) { color: #00774f; margin: 12px 0 0; } /* the logo green, a little darker to read as text */
@media (max-width: 719.98px) {
	.home-content .block-testimonial blockquote { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.home-content .block-testimonial blockquote > img { grid-column: 1; grid-row: auto; justify-self: center; margin-bottom: 18px; width: 150px; }
	.home-content .block-testimonial blockquote::before { grid-column: 1; grid-row: 2; }
	.home-content .block-testimonial blockquote > p { grid-column: 1; }
}
@media (max-width: 599.98px) {
	.home-content .block { padding: 32px 0; }
	/* Preview cards on phones: a small picture beside the title and two lines, so four fit on a screen or so */
	.home-content .card:has(> .card-image) { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
	.home-content .card:has(> .card-image) .card-image { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); height: 100%; padding: 8px; }
	.home-content .card-body { padding: 12px 14px; }
	.home-content .card-body h3 { font-size: 1rem; margin-bottom: 4px; }
	.home-content .card-body > p:not(.card-meta) { -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box; margin-bottom: 0; overflow: hidden; }
	.home-content .card-body .card-meta { margin-bottom: 4px; }
	.home-content .card-link { display: none; } /* the whole card is the link */
	.home-content .block-featured .card::before { font-size: 0.75rem; height: 26px; left: 8px; right: auto; top: 8px; width: 26px; } /* on the picture's corner, clear of the title */
	/* A row of posters and phone videos: swiped sideways instead of stacked three screens tall */
	.home-content .prose .media-grid:has(> video, > iframe) { display: flex; gap: 12px; margin-left: -20px; margin-right: -20px; overflow-x: auto; padding: 0 20px 8px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; }
	.home-content .prose .media-grid:has(> video, > iframe) > * { flex: 0 0 74%; scroll-snap-align: start; }
}

/* ---------- Events ---------- */
.event-list { display: grid; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.event-list a { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); display: flex; gap: 14px; padding: 12px 14px; text-decoration: none; }
.event-list a:hover { box-shadow: var(--shadow); }
.event-date { background: var(--wash); border-radius: 10px; color: var(--blue); flex: none; font-size: 0.75rem; font-weight: 700; padding: 6px 0; text-align: center; text-transform: uppercase; width: 54px; }
.event-date strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.event-copy { display: grid; }
.event-copy span { color: var(--muted); font-size: 0.9rem; }
/* An event that is over, when one fills in a short list (the home page) */
.event-past { background: var(--wash); border-radius: 999px; color: var(--muted); font-size: 0.7rem; font-style: normal; font-weight: 700; letter-spacing: 0.05em; margin-left: 8px; padding: 2px 8px; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.event-list .is-past .event-date { color: var(--muted); }
.facts { display: grid; gap: 4px 18px; grid-template-columns: auto 1fr; margin: 0 0 24px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }

/* ---------- Organizations ---------- */
.group-heading { border-bottom: 2px solid var(--blue); margin-top: 1.8em; padding-bottom: 6px; }
.organization-list { columns: 300px 2; gap: 40px; list-style: none; margin: 0; padding: 0; }
.organization-list li { border-bottom: 1px solid var(--line); break-inside: avoid; padding: 9px 0; }
.organization-name { font-weight: 700; }
.organization-list a { display: block; font-size: 0.9rem; overflow-wrap: anywhere; }

/* Agencies: one fold-out per group, closed to start with */
/* What the Y.O. mark means: a green info box of its own, so it doesn't run into the text above */
.organization-legend { align-items: flex-start; background: #eef7f3; border: 1px solid #cfe7dc; border-left: 4px solid var(--green); border-radius: var(--radius); color: var(--navy); display: flex; font-size: 1rem; gap: 12px; line-height: 1.5; margin: 22px 0 20px; padding: 14px 18px; }
.organization-legend > i { color: var(--green); flex: none; font-size: 1.3rem; margin-top: 2px; }
.organization-legend .badge { font-size: 0.8rem; margin-right: 6px; vertical-align: 1px; }
.organization-groups { display: grid; gap: 10px; margin: 0 0 32px; }
.organization-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.organization-group summary { align-items: center; background: var(--wash); color: var(--navy); cursor: pointer; display: flex; font-family: var(--font-heading); font-weight: 600; gap: 12px; list-style: none; padding: 14px 16px; }
.organization-group summary::-webkit-details-marker { display: none; }
.organization-group summary > span:first-child { flex: 1; }
.organization-group summary::after { content: "\f078"; flex: none; font: var(--fa-font-solid); font-size: 0.75rem; margin-right: 4px; transition: transform 0.15s ease; }
.organization-group[open] summary::after { transform: rotate(180deg); }
.organization-group summary:hover { background: #e6eef2; }
.organization-group[open] summary { background: var(--blue); color: var(--white); }
.organization-group[open] .organization-count { color: var(--blue); }
.organization-count { background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--blue-dark); flex: none; font-size: 0.8rem; font-weight: 700; min-width: 2.4em; padding: 1px 9px; text-align: center; }
.organization-group .organization-list { padding: 4px 16px 12px; }

/* Agencies A to Z, with their group */
.organization-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* The column titles above the list. Both keep room for a scroll bar (scrollbar-gutter), so the columns line up
   whether or not the computer shows one; above the list that room is just more of the navy bar. */
.organization-table-head, .organization-table-scroll { scrollbar-gutter: stable; }
.organization-table-head { background: var(--navy); color: var(--white); display: grid; font-family: var(--font-heading); font-weight: 600; grid-template-columns: 60% 40%; overflow: hidden; }
.organization-table-head span { padding: 10px 14px; }
.organization-table-scroll { max-height: 520px; overflow-y: auto; }
.organization-table { border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; width: 100%; }
.organization-col-name { width: 60%; }
.organization-table thead th { border: 0; clip: rect(0 0 0 0); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } /* titles for screen readers; the bar above shows them */
.organization-table tbody tr:first-child td { border-top: 0; }
.organization-table td { border-top: 1px solid var(--line); padding: 8px 14px; vertical-align: top; }
.organization-table tbody tr:nth-child(even) td { background: var(--wash); }
.organization-table td:first-child { font-weight: 600; }
.organization-table td:last-child { color: var(--muted); }
.organization-group-number { background: var(--blue); border-radius: 999px; color: var(--white); display: inline-block; font-size: 0.75rem; font-weight: 700; line-height: 1.6; min-width: 1.6em; text-align: center; }
@media (max-width: 600px) {
	.organization-table thead, .organization-table-head { display: none; }
	.organization-table { table-layout: auto; }
	.organization-table td { display: block; border-top: 0; padding: 2px 14px; }
	.organization-table td:first-child { border-top: 1px solid var(--line); padding-top: 10px; }
	.organization-table td:last-child { font-size: 0.85rem; padding-bottom: 10px; }
}

/* Tabs written in page content: fold-outs on phones; a row of tabs on wider screens once site.js has set them up */
.prose .tabs { margin: 0 0 28px; }
.prose .embedded { margin-bottom: 16px; margin-top: 16px; } /* top and bottom only: inside a fold-out it keeps the fold-out's room at the sides */
/* A form inside a tab or fold-out fills it, with no divider above it (that's for a form below a page's text) */
.prose .embedded .form-section { border-top: 0; margin-top: 0; padding-top: 6px; }
.prose .embedded .site-form { max-width: none; }
.tab-list { display: none; }
@media (min-width: 760px) {
	.tabs-ready > .tab-list { border-bottom: 2px solid var(--blue); display: flex; flex-wrap: wrap; gap: 6px; }
	.tab-button { background: var(--wash); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--blue-dark); cursor: pointer; flex: 1 1 0; font: 600 0.95rem/1.3 var(--font-heading); min-width: 150px; padding: 13px 16px; text-align: left; }
	.tab-button:hover { background: #e6eef2; }
	.tab-button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
	.tab-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
	.prose .tabs-ready > details.tab { border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); border-top: 0; margin: 0; padding: 6px 10px 10px; }
	.prose .tabs-ready > details.tab:not(.tab-active) { display: none; }
	.prose .tabs-ready > details.tab > summary { display: none; }
	.prose .tabs-ready > details.tab > summary + * { margin-top: 18px; }
}
.badge { background: var(--green); border-radius: 6px; color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 2px 6px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { border: 1px solid var(--line); border-radius: 8px; min-width: 40px; padding: 6px 10px; text-align: center; text-decoration: none; }
.pagination span { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- Forms ---------- */
.form-section { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 32px; }
.form-submit.is-sending, .form-submit:disabled { cursor: progress; opacity: 0.75; } /* site.js: "Sending…" until the answer comes back */
.notice-success[tabindex]:focus { outline: none; }
.site-form, .notice-success { scroll-margin-top: calc(110px + var(--admin-bar, 0px)); } /* clear of the sticky header when brought into view */
.form-section + .prose { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 32px; } /* text after a form (Contact: Office) gets the same line the form has above it */

/* ----- Forms -----
   A form is split into numbered sections (one per heading). Inside each, questions sit on a 12-column grid:
   a question takes the full row, half, a third, a quarter or two thirds. Phones get one question per row. */
.site-form { display: grid; gap: 22px; max-width: 48em; }
.form-trap { height: 0; left: -9999px; overflow: hidden; position: absolute; }
.form-intro { color: var(--muted); margin: 0; }
.form-required-note { background: #fff8e1; border: 1px solid #f6dd8a; border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0; color: #5c4a10; font-size: 0.92rem; margin: 0; padding: 10px 14px; }
.form-required-note .required { font-weight: 700; }

.site-form .form-part { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(22, 53, 75, 0.05); padding: 20px 22px 24px; }
.site-form .form-part-head { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 14px; margin: 0 0 20px; padding-bottom: 14px; }
.site-form .form-part-number { align-items: center; background: var(--blue); border-radius: 50%; color: var(--white); display: inline-flex; flex: none; font: 700 0.95rem/1 var(--font-heading); height: 32px; justify-content: center; width: 32px; }
.site-form .form-part-head h3 { color: var(--navy); font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; margin: 4px 0 0; padding: 0; }
.site-form .form-part-head h3::after { content: none; }
.site-form .form-part-help { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 4px 0 0; }

.site-form .form-grid { display: grid; gap: 18px 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.site-form .form-grid > * { grid-column: span 12; min-width: 0; }
@media (min-width: 640px) {
	.site-form .form-grid > .w-half { grid-column: span 6; }
	.site-form .form-grid > .w-third { grid-column: span 4; }
	.site-form .form-grid > .w-quarter { grid-column: span 3; }
	.site-form .form-grid > .w-two-thirds { grid-column: span 8; }
}

.site-form .form-field > label:not(.choice-card), .site-form .form-field legend { color: var(--navy); display: block; font-weight: 700; line-height: 1.4; margin: 0 0 6px; padding: 0; }
.site-form .form-field fieldset { border: 0; margin: 0; min-width: 0; padding: 0; }
.site-form .field-help { color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin: -2px 0 8px; }
.site-form .form-field input[type="text"], .site-form .form-field input[type="email"], .site-form .form-field input[type="tel"], .site-form .form-field input[type="date"], .site-form .form-field input[type="number"], .site-form .form-field select, .site-form .form-field textarea {
	background: var(--white); border: 2px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; min-height: 48px; padding: 11px 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease; width: 100%;
}
.site-form .form-field textarea { min-height: 110px; resize: vertical; }
.site-form .form-field select { appearance: none; padding-right: 40px; }
.site-form .select-wrap { position: relative; }
.site-form .select-wrap > .fa-solid { color: var(--blue); font-size: 0.8rem; pointer-events: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.site-form .form-field input:focus, .site-form .form-field select:focus, .site-form .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.18); outline: none; }
.site-form .form-field input::placeholder, .site-form .form-field textarea::placeholder { color: #8a96a0; }
.site-form .input-with-icon { position: relative; }
.site-form .input-with-icon > .fa-solid { color: #7d8f9c; font-size: 0.95rem; left: 14px; pointer-events: none; position: absolute; text-align: center; top: 50%; transform: translateY(-50%); width: 18px; }
.site-form .input-with-icon input[type] { padding-left: 42px; }
.site-form .input-with-icon:focus-within > .fa-solid { color: var(--blue); }

/* Answers to pick: short ones as chips side by side, long ones as stacked cards */
.site-form .choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site-form .chip { cursor: pointer; display: inline-flex; margin: 0; position: relative; }
.site-form .chip input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.site-form .chip .choice-text { align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: 999px; color: var(--ink); display: inline-flex; font-size: 0.93rem; font-weight: 600; gap: 6px; line-height: 1.3; padding: 8px 15px; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.site-form .chip:hover .choice-text { border-color: #b9cad6; }
.site-form .chip.is-multiple .choice-text::before { align-items: center; border: 2px solid #b9cad6; border-radius: 4px; color: transparent; content: "\f00c"; display: inline-flex; flex: none; font: var(--fa-font-solid); font-size: 9px; height: 16px; justify-content: center; width: 16px; }
.site-form .chip input:checked + .choice-text { background: var(--blue); border-color: var(--blue); color: var(--white); }
.site-form .chip.is-multiple input:checked + .choice-text::before { background: var(--white); border-color: var(--white); color: var(--blue); }
.site-form .chip input:focus-visible + .choice-text { box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.3); }

.site-form .choice-cards { display: grid; gap: 8px; }
.site-form .choice-card { align-items: flex-start; background: var(--white); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; font-weight: 400; gap: 12px; line-height: 1.45; margin: 0; padding: 12px 14px; position: relative; transition: border-color 0.15s ease, background-color 0.15s ease; }
.site-form .choice-card:hover { border-color: #b9cad6; }
.site-form .choice-card input { height: 1px; left: 18px; opacity: 0; position: absolute; top: 18px; width: 1px; }
.site-form .choice-card .choice-mark { align-items: center; background: var(--white); border: 2px solid #9fb3c2; border-radius: 50%; color: transparent; display: flex; flex: none; font-size: 11px; height: 20px; justify-content: center; margin-top: 1px; transition: all 0.15s ease; width: 20px; }
.site-form .choice-card.is-multiple .choice-mark::before, .site-form .choice-single .choice-mark::before { content: "\f00c"; font: var(--fa-font-solid); }
.site-form .choice-card.is-multiple .choice-mark, .site-form .choice-single .choice-mark { border-radius: 5px; }
.site-form .choice-card:has(input:checked) { background: #f1f6fa; border-color: var(--blue); }
.site-form .choice-card input:checked ~ .choice-mark { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--white); }
.site-form .choice-card.is-multiple input:checked ~ .choice-mark, .site-form .choice-single input:checked ~ .choice-mark { background: var(--blue); border-color: var(--blue); box-shadow: none; color: var(--white); }
.site-form .choice-card input:focus-visible ~ .choice-mark { box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.3); }
.site-form .choice-single .choice-text { font-weight: 600; }

/* Questions asked the same way, as one grid: a row per question, a column per answer */
.site-form .form-matrix-scroll { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.site-form .form-matrix { border-collapse: collapse; display: table; margin: 0; min-width: 100%; width: 100%; }
.site-form .form-matrix th, .site-form .form-matrix td { border: 0; border-top: 1px solid var(--line); padding: 0; text-align: center; vertical-align: middle; }
.site-form .form-matrix thead th, .site-form .form-matrix thead td { background: var(--wash); border-top: 0; color: var(--navy); font-size: 0.85rem; font-weight: 700; padding: 10px 8px; white-space: nowrap; }
.site-form .form-matrix tbody th { background: none; color: var(--ink); font-weight: 600; line-height: 1.4; padding: 10px 14px; text-align: left; width: 100%; }
.site-form .form-matrix tbody tr:hover th, .site-form .form-matrix tbody tr:hover td { background: #f7fafb; }
.site-form .form-matrix tbody tr.has-error th { color: var(--error); }
@media (max-width: 479.98px) { .site-form .form-matrix thead th, .site-form .form-matrix thead td { font-size: 0.72rem; padding: 8px 3px; } .site-form .form-matrix tbody th { font-size: 0.9rem; padding: 9px 8px; } } /* three time columns fit a phone without scrolling sideways */
.site-form .matrix-cell { cursor: pointer; display: flex; justify-content: center; margin: 0; padding: 12px 14px; position: relative; }
.site-form .matrix-cell input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.site-form .matrix-cell span { align-items: center; background: var(--white); border: 2px solid #9fb3c2; border-radius: 5px; color: transparent; display: flex; font-size: 12px; height: 22px; justify-content: center; transition: all 0.15s ease; width: 22px; }
.site-form .matrix-cell input[type="checkbox"] + span::before { content: "\f00c"; font: var(--fa-font-solid); }
.site-form .matrix-cell input[type="radio"] + span { border-radius: 50%; }
.site-form .matrix-cell input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.site-form .matrix-cell input[type="radio"]:checked + span { background: var(--blue); box-shadow: inset 0 0 0 4px var(--white); }
.site-form .matrix-cell input:focus-visible + span { box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.3); }

.site-form .form-note { align-items: flex-start; background: #f1f6fa; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--ink); display: flex; font-size: 0.93rem; gap: 10px; line-height: 1.5; padding: 12px 14px; }
.site-form .form-note > .fa-solid { color: var(--blue); flex: none; font-size: 1.1rem; margin-top: 2px; }

.site-form .form-field.has-error input[type], .site-form .form-field.has-error select, .site-form .form-field.has-error textarea, .site-form .form-field.has-error .chip .choice-text, .site-form .form-field.has-error .choice-card, .site-form .form-field.has-error .form-matrix-scroll { border-color: var(--error); }
.field-error { align-items: center; color: var(--error); display: flex; font-size: 0.9rem; font-weight: 700; gap: 6px; margin: 6px 0 0; }
.field-error::before { content: "\f06a"; flex: none; font: var(--fa-font-solid); font-size: 0.95rem; }
.required { color: var(--error); }
.form-heading { border-bottom: 1px solid var(--line); margin: 12px 0 0; padding-bottom: 6px; }
.site-form [hidden] { display: none !important; }

.site-form .form-actions { display: flex; justify-content: flex-start; }
.site-form .form-submit { align-items: center; display: inline-flex; gap: 10px; justify-content: center; min-width: 200px; padding-left: 28px; padding-right: 28px; }
@media (max-width: 639.98px) {
	.site-form .form-part { padding: 16px 14px 18px; }
	.site-form .form-submit { width: 100%; }
}
.notice { border-radius: 10px; font-weight: 700; padding: 14px 16px; }
.notice-success { background: #eaf7f0; border: 1px solid var(--green); color: #0b5c40; }
.notice-error { background: #fdecea; border: 1px solid #f1b5b0; color: var(--error); }

/* ---------- Footer ---------- */
/* Three parts, as on the WordPress site: the white logo, the address with social media under it, and the
   CanadaHelps / CanaDon donate logo. Under them, a darker strip with the copyright line and the staff sign-in. */
.site-footer { background: var(--blue); color: #e3ecf4; font-size: 0.95rem; overflow-wrap: anywhere; padding: 48px 0 0; }
.site-footer a { color: var(--white); }
.footer-grid { align-items: center; display: grid; gap: 32px; justify-items: center; padding-bottom: 44px; text-align: center; }
.footer-grid > * { min-width: 0; }
.footer-brand img { display: block; height: auto; max-width: 240px; width: 100%; }
.footer-name { color: var(--white); font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; margin: 0 0 4px; }
.footer-contact p { margin: 0 0 4px; }
.footer-contact a { text-decoration: none; }
.footer-contact a:not(.social-link):hover, .footer-contact a:not(.social-link):focus-visible { text-decoration: underline; text-underline-offset: 3px; } /* the round social icons don't underline */
.footer-phone { font-weight: 700; margin-right: 12px; white-space: nowrap; }
.social-links { display: flex; gap: 10px; justify-content: center; margin: 16px 0 0 !important; }
.social-link { align-items: center; background: var(--white); border-radius: 50%; color: var(--blue) !important; display: inline-flex; height: 36px; justify-content: center; transition: background-color 0.15s, color 0.15s, transform 0.15s; width: 36px; }
.social-link .fa-brands { font-size: 1.05rem; }
.social-link:hover, .social-link:focus-visible { background: var(--yellow); color: var(--navy) !important; transform: translateY(-2px); }
.footer-donate { align-items: center; border-radius: var(--radius); display: inline-flex; flex-direction: column; gap: 10px; padding: 12px 18px; text-decoration: none; transition: background-color 0.15s; }
.footer-donate img { display: block; height: auto; max-width: 210px; width: 100%; }
.footer-donate span { border: 2px solid var(--white); border-radius: 999px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; padding: 7px 20px; text-transform: uppercase; transition: background-color 0.15s, color 0.15s; }
.footer-donate:hover span, .footer-donate:focus-visible span { background: var(--white); color: var(--blue-dark); }
.footer-base { background: var(--navy); color: #c3d2e0; font-size: 0.82rem; }
.footer-base-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; padding-bottom: 16px; padding-top: 16px; text-align: center; }
.footer-staff { align-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: #dbe6f0 !important; display: inline-flex; gap: 7px; padding: 5px 13px; text-decoration: none; transition: background-color 0.15s, color 0.15s; white-space: nowrap; }
.footer-staff:hover, .footer-staff:focus-visible { background: var(--white); border-color: var(--white); color: var(--navy) !important; }
@media (min-width: 860px) {
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
	.footer-brand { justify-self: start; }
	.footer-donate { justify-self: end; }
	.footer-base-inner { justify-content: space-between; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

/* A list being swapped for another category or page */
.live-list { position: relative; }
.live-list > * { transition: opacity 0.15s; }
.live-list[aria-busy="true"] > * { opacity: 0.35; pointer-events: none; }
/* A turning ring over the list while the next one loads */
.live-list[aria-busy="true"]::after { animation: live-list-turn 0.8s linear infinite; color: var(--blue); content: "\f1ce"; font: var(--fa-font-solid); font-size: 2.6rem; height: 1em; left: calc(50% - 0.5em); line-height: 1; position: absolute; text-align: center; top: var(--ring-top, 150px); width: 1em; z-index: 2; }
@keyframes live-list-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-list[aria-busy="true"]::after { animation-duration: 2s; } }

/* A set of videos side by side (Welcoming Videos), each with its language under it */
.prose .video-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.4em 0; }
.prose .video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; overflow: hidden; scroll-margin-top: calc(96px + var(--admin-bar, 0px)); }
.prose .video-card:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.25); }
.prose .video-frame { aspect-ratio: 16 / 9; background: var(--navy); }
.prose .video-frame iframe { border: 0; display: block; height: 100%; max-width: none; width: 100%; }
.prose .video-card figcaption { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 12px 16px; }
.prose .video-card figcaption strong { color: var(--navy); font-family: var(--font-heading); font-size: 1.05rem; }
.prose .video-card figcaption span { color: var(--muted); }

/* Back to top (site.js shows it once the page has been scrolled down): small, see-through until hovered */
.to-top { align-items: center; background: rgba(22, 53, 75, 0.55); border-radius: 10px; bottom: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); color: var(--white); display: flex; height: 40px; justify-content: center; opacity: 0; pointer-events: none; position: fixed; right: 18px; text-decoration: none; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, background-color 0.15s; width: 40px; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--navy); color: var(--white); }
.to-top i { font-size: 0.95rem; }
@media print { .to-top { display: none; } }

/* The admin bar, only for someone signed in to the admin (template.php). It stays at the top while scrolling, with the
   site's own sticky header just under it (--admin-bar moves everything that sticks down by its height). */
.has-admin-bar { --admin-bar: 36px; }
.admin-bar { background: #0d2232; color: #c9d6e0; font-size: 0.85rem; position: sticky; top: 0; z-index: 60; }
.admin-bar-inner { align-items: center; display: flex; gap: 12px; height: 36px; justify-content: space-between; }
.admin-bar-links, .admin-bar-account { align-items: center; display: flex; gap: 4px; }
.admin-bar a, .admin-bar button { align-items: center; background: none; border: 0; border-radius: 6px; color: #dfe8ef; cursor: pointer; display: inline-flex; font: inherit; gap: 7px; padding: 6px 10px; text-decoration: none; }
.admin-bar a:hover, .admin-bar a:focus-visible, .admin-bar button:hover, .admin-bar button:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.admin-bar i { color: #8fb0c9; font-size: 0.85rem; }
.admin-bar-count { background: var(--yellow); border-radius: 999px; color: var(--navy); font-size: 0.72rem; line-height: 1; padding: 3px 6px; }
.admin-bar-name { color: #9fb3c3; padding: 0 6px; }
.admin-bar form { margin: 0; }
@media (max-width: 700px) {
	.admin-bar-name, .admin-bar-links a:not(:nth-child(2)) span, .admin-bar button span { display: none; }
}
@media print { .admin-bar { display: none; } }

