/**
 * Design tokens for the Resource Hub (docs/styleguide.md, approved 2026-11-18).
 * Custom properties only: no selectors other than :root. Loaded before ndwa-brand.css.
 * Keep this file in assets/css/ so the texture url() resolves from the same folder.
 */

:root {
	/* Fonts */
	--font-body: "Rubik", sans-serif;
	--font-heading: "Chiswick Grotesque Web", sans-serif;
	--font-label: "Montserrat", sans-serif;

	/* Type scale: phone (375px) to desktop (1280px) */
	--text-display: clamp(2.25rem, 1.9rem + 1.6vw, 3.125rem);   /* 36 → 50 */
	--text-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);        /* 28 → 36 */
	--text-h3: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);         /* 24 → 30 */
	--text-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);   /* 18 → 21 */
	--text-body: clamp(1rem, 0.94rem + 0.27vw, 1.125rem);       /* 16 → 18 */
	--text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);  /* 14 → 15 */
	--text-label: 0.875rem;                                     /* 14 */

	--leading-none: 1;
	--leading-display: 1.1;
	--leading-tight: 1.05; /* List-view table titles */
	--leading-heading: 1.2;
	--leading-ui: 1.3;
	--leading-text: 1.5;
	--leading-body: 1.6;
	--leading-description: 1.45; /* Description copy: landing intro, tile and topic descriptions */

	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	--weight-black: 800;

	--tracking-label: 0.1em;

	--icon-sm: 1.25em;
	--icon-md: 1.5rem;
	--icon-lg: 2.25rem;
	--icon-xl: 1.1em;

	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--card-pad: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
	--section-space: clamp(2rem, 1.2rem + 3.5vw, 4rem);

	/* Widths */
	--container: 71.25rem;
	--container-wide: 87.5rem;
	--measure: 56.25rem;

	/* Colour */
	--color-texture: url("../images/background-texture-orange-pink.jpg");
	--color-texture-fallback: #f08470;
	--color-brand: #ff9d14;
	--color-brand-hover: #d98003;
	--color-brand-text: #a65700;
	--color-text: #000000;
	--color-text-muted: #595959;
	--color-on-dark: #ffffff;
	--color-surface: #ffffff;
	--color-page: #f7f8f9;
	--color-surface-muted: #eeeeee;
	--color-border: #dbdbdb;
	--color-border-input: #767676;
	--color-border-control: #949494;
	--color-focus: #000000;
	--color-link: var(--color-text);
	--color-link-hover: var(--color-brand-text);
	--color-button-outline: var(--color-text);
	--color-accent-pink: #d6246e;
	--color-danger: #c92d2d;

	/* Shape */
	--radius: 0;
	--radius-control: 2px;
	--shadow-button: 0 0 4px 0 rgba(0, 0, 0, 0.25);
	--shadow-raised: 0 4px 14px rgba(0, 0, 0, 0.06);
	--shadow-overlay: 0 4px 20px rgba(0, 0, 0, 0.12);

	/* Focus */
	--focus-ring: 3px solid var(--color-focus);
	--focus-offset: 2px;

	/* Breakpoints, for reference only (not usable in @media):
	   md 769px, lg 992px, xl 1200px */
}

/*
 * Smaller screens use less header space: the fluid sizes above step down again at tablet
 * (769-1024px) and phone (768px and below). Desktop (1025px and up) keeps the values above.
 */
@media (max-width: 1024px) {
	:root {
		--section-space: 1.75rem;                 /* title bands: 46px at 768 before */
		--text-display: 2.5rem;                   /* 40 */
		--text-h2: 1.875rem;                      /* 30 */
		--text-h3: 1.625rem;                      /* 26 */
		--header-pad-y: 0.75rem;
		--strip-height: 2.5rem;                   /* breadcrumb / back-link strip, 40 */
		--toolbar-pad-y: var(--space-4);
		--band-box-pad-y: var(--space-4);
	}
}

@media (max-width: 768px) {
	:root {
		--section-space: 1.25rem;                 /* 20 */
		--text-display: 2rem;                     /* 32 */
		--text-h2: 1.5rem;                        /* 24 */
		--text-h3: 1.375rem;                      /* 22 */
		--header-pad-y: 0.5rem;
		--strip-height: 2.25rem;                  /* 36 */
		--toolbar-pad-y: var(--space-3);
		--band-box-pad-y: var(--space-3);
	}
}

/* The mobile nav bar (menu button, search, logo) applies at 900px and below, the mobile menu
   breakpoint (HUB_MOBILE_NAV_MAX in hub-generatepress-defaults.php). */
@media (max-width: 900px) {
	:root {
		--nav-bar-height: 3.75rem;                /* 60: as tall as the old menu button (GeneratePress: 60px line-height) */
	}
}
