/*!
Theme Name: CHMA
Theme URI: https://chma.pro/
Author: Sean Pearce
Author URI: https://chma.pro/
Description: Custom theme for CHMA
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: chma

CHMA is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic,
Inc. Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/


TABLE OF CONTENTS: -------------------------------------------------------------

# Normalization
# Base
  ## Variables
  ## Typography
  ## Elements
  ## Links
  ## Forms
# Layouts
# Components
  ## Navigation
  ## Buttons
  ## Footer
  ## Posts and pages
  ## Comments
  ## Widgets
  ## Media
  ## Captions
  ## Galleries
# Home page
# Interior pages
# Plugins
  ## Jetpack infinite scroll
# Utilities
  ## Accessibility
  ## Alignments


/* -----------------------------------------------------------------------------
 # Normalization ------------------------------------------------------------ */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css     */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}


/* -----------------------------------------------------------------------------
 # Base --------------------------------------------------------------------- */

/* ## Variables ------------------------------------------------------------- */

:root {
	--colour-text: #4d4d4d;
	--colour-heading: #000;
	--colour-primary: #074f92;
	--colour-primary-hover: hsl(209, 91%, 34%);
	--colour-primary-lightened: hsl(209, 45%, 47%);
	--colour-secondary: #f3c31a;
	--colour-outer-bg: #fff;
	--colour-lt-grey: #ececec;
	--colour-header-stripe: var(--colour-primary);
	--colour-footer-bg-upper: #074f92;
	--colour-footer-bg-lower: #333;
	--colour-chf-spring: #93c765;
	--colour-chf-glacier: #23c0eb;
}

/* ## Typography ------------------------------------------------------------ */

body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

.centered {
	text-align: center;
}

.nowrap {
	white-space: nowrap;
}

/* ## Elements -------------------------------------------------------------- */

body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* ## Links ----------------------------------------------------------------- */

a {
	border-radius: 0.5px;
	color: var(--colour-primary);
	outline: none;
}

a:hover {
	color: var(--colour-primary-hover);
}

a:focus,
a:focus-visible {
	outline: 2px solid var(--primary-dim);
	text-decoration: none;
}

a:focus:not(:focus-visible) {
	outline: none !important;
}

/* ## Forms ----------------------------------------------------------------- */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}


/* -----------------------------------------------------------------------------
 # Layouts ------------------------------------------------------------------ */

/* .limited-page {
	max-width: 1200px;
	margin: 0 auto;
} */

.limiter {
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 0 1em;
}

.page-body {
	background: #fff;
}

/* Fix horizontal margin issue on home page on mobile */
@media (max-width: 82em) {
	.limited-page {
		box-shadow: none;
		overflow: hidden;
	}
}


/* -----------------------------------------------------------------------------
 # Components --------------------------------------------------------------- */

/* ## Navigation ------------------------------------------------------------ */

:root {
	--nav-colour-primary: var(--colour-primary);
	--nav-height-above: 0em;
	--nav-height-primary: 6.25em;
	--nav-height-primary-mobile: 5.25em;
	--nav-height: calc(var(--nav-height-above) + var(--nav-height-primary));
	--nav-page-margin: 1em;
	--nav-width-inner: 1152px;
	--nav-width-outer: 100%;
	/* logo */
	--nav-logo-height-percent: 53.333%;
	--nav-logo-margin-adjustment: 0;
	--nav-logo-max-width: 10.125em;
	--nav-logo-max-width-mobile: 9em;
	/* desktop parent menu */
	--nav-d-p-bg-hover-colour: transparent;
	--nav-d-p-font-size: 1.0625em;
	--nav-d-p-font-weight: 500;
	--nav-d-p-padding-x: 1rem;
	--nav-d-p-text-colour: #4d4d4d;
	--nav-d-p-text-transform: none;
	--nav-d-p-underline-thickness: 1.5px;
	/* desktop child menu */
	--nav-d-c-bg-colour: var(--colour-primary);
	--nav-d-c-bg-hover-colour: hsl(209, 91%, 34%);
	--nav-d-c-focus-outline-colour: #fff;
	--nav-d-c-item-width: auto;
	--nav-d-c-padding: 0.625rem 0.875rem;
	--nav-d-c-white-space: nowrap;
	/* mobile */
	--nav-m-left-border-thickness: 0.375rem;
}

.jump-anchor::before {
	content: '';
	display: block;
	height: var(--nav-height-primary);
	margin-top: calc(-1 * var(--nav-height-primary));
	visibility: hidden;
}

.site-content {
	padding-top: var(--nav-height);
}

.site-header {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 100;
	/* prevent flicker in Chrome: */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.site-header .nav-limiter {
	margin: 0 auto;
	max-width: var(--nav-width-inner);
}

.site-header a {
	text-decoration: none;
}

.nav-wrapper {
	max-width: var(--nav-width-outer);
	margin: 0 auto;
	background: #fff;
}

.above-nav {
	height: var(--nav-height-above);
	background: var(--colour-header-stripe);
}

.primary-nav {
	width: 100%;
	height: var(--nav-height-primary);
	position: relative;
	z-index: 20;
	box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.8);
}

.primary-nav.sticky {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100;
	/* prevent flicker in Chrome: */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.primary-nav .nav-limiter {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.primary-nav a:focus,
.primary-nav a:focus-visible {
	border-radius: 0.25px;
	outline: 2px solid var(--nav-colour-primary);
}

.primary-nav a:focus:not(:focus-visible) {
	outline: none !important;
}

/* Nav logo ----------------------------------------------------------------- */

.primary-nav .logo-container {
	flex: 1;
	max-width: var(--nav-logo-max-width);
	margin-left: var(--nav-page-margin);
	display: flex;
	align-items: center;
	align-self: flex-end;
	justify-content: flex-start;
}

.primary-nav .logo {
	display: block;
	width: 100%;
	height: 0;
	padding-bottom: var(--nav-logo-height-percent);
	margin: var(--nav-logo-margin-adjustment);
	background-image: url('./img/logo-chma-header.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	border-radius: 0.5px;
	text-decoration: none;
	outline: none;
	transition: opacity 0.1s;
}

.primary-nav .logo:hover {
	opacity: 0.9;
}

.primary-nav .logo:focus,
.primary-nav .logo:focus-visible {
	outline: 2px solid var(--nav-colour-primary);
	outline-offset: 3px;
}

.primary-nav .logo:focus:not(:focus-visible) {
	outline: none;
}

/* Nav menu ----------------------------------------------------------------- */

.primary-nav .menu-container {
	position: relative;
	flex: initial;
	height: var(--nav-height-primary);
}

/* Parent menu */

.primary-nav .nav-menu {
	display: flex;
	align-items: center;
	margin: 0;
	margin-left: calc(var(--nav-page-margin) - var(--nav-d-p-padding-x));
	margin-right: calc(var(--nav-page-margin) - var(--nav-d-p-padding-x));
	padding: 0;
	list-style-type: none;
	text-align: right;
}

.primary-nav .nav-menu > .menu-item {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	height: var(--nav-height-primary);
	padding: 0 var(--nav-d-p-padding-x);
	line-height: 1.125;
	text-align: center;
}

.primary-nav .nav-menu > .menu-item:hover {
	background: var(--nav-d-p-bg-hover-colour);
}

.primary-nav .nav-menu > .menu-item.current-menu-item,
.primary-nav .nav-menu > .menu-item.current-menu-ancestor {
	color: var(--nav-colour-primary);
}

.primary-nav .nav-link-parent {
	display: block;
	margin-top: 0.0625rem;
	padding-top: 0.1875rem;
	padding-bottom: 0.125rem;
	color: var(--nav-d-p-text-colour);
	font-size: var(--nav-d-p-font-size);
	font-weight: var(--nav-d-p-font-weight);
	text-transform: var(--nav-d-p-text-transform);
	border-bottom: var(--nav-d-p-underline-thickness) solid transparent;
}

.primary-nav .menu-item .nav-link-parent:focus,
.primary-nav .menu-item .nav-link-parent:hover,
.primary-nav .menu-item-has-children:hover .nav-link-parent {
	color: var(--nav-colour-primary);
}

.primary-nav .menu-item .nav-link-parent:focus,
.primary-nav .menu-item .nav-link-parent:focus-visible {
	outline-color: var(--nav-colour-primary);
	outline-offset: 2px;
}

.primary-nav .menu-item .nav-link-parent:focus:not(:focus:visible) {
	outline: none;
}

.primary-nav .menu-item.current-menu-item .nav-link-parent,
.primary-nav .menu-item.current-menu-parent .nav-link-parent {
	border-bottom-color: var(--nav-colour-primary);
}

.primary-nav .menu-item-has-children .nav-link-parent {
	cursor: default;
}

.primary-nav .primary-color {
	font-weight: 700;
	color: var(--colour-primary);
}

/* Child menu */

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin: 0;
	padding: 0;
	z-index: 999;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
	list-style-type: none;
	text-align: right;
}

.primary-nav .sub-menu .menu-item {
	padding: 0;
	width: var(--nav-d-c-item-width);
	position: relative;
}

.primary-nav .sub-menu .menu-item:not(:first-child)::before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0.5px;
	background: rgba(255, 255, 255, 0.35);
}

.primary-nav .menu-item.expanded .sub-menu {
	display: block;
}

.primary-nav .nav-link-child {
	display: block;
	padding: var(--nav-d-c-padding);
	background: var(--nav-d-c-bg-colour);
	font-size: 0.875rem;
	line-height: 1.3;
	color: #fff;
	white-space: var(--nav-d-c-white-space);
}

.primary-nav .current-menu-item > .nav-link-child,
.primary-nav .nav-link-child:focus,
.primary-nav .nav-link-child:hover {
	background: var(--nav-d-c-bg-hover-colour);
}

.primary-nav .nav-link-child:focus,
.primary-nav .nav-link-child:focus-visible {
	outline: 2px solid var(--nav-d-c-focus-outline-colour);
	outline-offset: -4px;
}

.primary-nav .nav-link-child:focus:not(:focus-visible) {
	outline: none;
}

/* Nav menu toggle ---------------------------------------------------------- */

.nav-menu-toggle {
	display: none;
	flex: initial;
	width: 2.5em;
	height: 2.5em;
	margin: 0 var(--nav-page-margin);
	background-color: #fff;
	color: var(--nav-colour-primary);
	outline: none;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	border: none;
	font-size: 1em;
	padding: 0;
}

.nav-menu-toggle i {
	font-size: 1.375em;
}

.nav-menu-toggle:hover:not(:disabled) {
	background: transparent;
	color: var(--colour-primary-hover);
}

.nav-menu-toggle[aria-expanded="true"]:not(:disabled) {
	background: var(--nav-colour-primary);
	color: #fff;
}

.nav-menu-toggle:focus:not(:disabled),
.nav-menu-toggle:focus-visible:not(:disabled) {
	outline: 2px solid var(--nav-colour-primary);
	outline-offset: 2px;
	box-shadow: none;
}

.nav-menu-toggle:focus:not(:focus-visible) {
	outline: none !important;
}

/* Mobile styling ----------------------------------------------------------- */

@media (max-width: 48em) {
	.primary-nav .nav-menu > .menu-item {
		padding: 2.25em 0.5em;
		padding: 0 calc(var(--nav-d-p-padding-x) * 0.75);
	}
}

@media (min-width: 45.01em) {
	.primary-nav .menu-container {
		display: block !important;
	}
}

@media (max-width: 45em) {
	.jump-anchor::before {
		height: var(--nav-height-primary-mobile);
		margin-top: calc(-1 * var(--nav-height-primary-mobile));
	}

	.site-content {
		padding-top: calc(var(--nav-height-above) + var(--nav-height-primary-mobile));
	}

	.primary-nav {
		height: var(--nav-height-primary-mobile);
	}

	.primary-nav .nav-limiter {
		position: relative;
		height: var(--nav-height-primary-mobile);
	}

	/* Nav logo ------------------------------------------------------------- */

	.primary-nav .logo-container {
		flex: 1;
		max-width: var(--nav-logo-max-width-mobile);
	}

	/* Nav menu ------------------------------------------------------------- */

	.primary-nav .menu-container {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		height: auto;
		top: 100%;
		background: #f2f2f2;
		border-top: 1.5px solid #333;
		padding: 0.5em 0;
	}

	.primary-nav .menu-container::after {
		content: '';
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: 0.5px;
		background: rgba(0, 0, 0, 0.5);
	}

	.primary-nav .menu-container.expanded {
		display: block;
	}

	/* Parent menu */

	.primary-nav .nav-menu {
		display: block;
		margin: 0;
		text-align: left;
	}

	.primary-nav .nav-menu > .menu-item {
		display: block;
		width: auto;
		height: auto;
		padding: 0;
		text-align: left;
		border: none;
	}

	.primary-nav .nav-link-parent {
		margin-top: 0;
		padding: 0.625rem 1rem 0.625rem calc(var(--nav-page-margin) - var(--nav-m-left-border-thickness));
		line-height: 1.3;
		border-bottom: none;
		border-top: none;
		border-left: var(--nav-m-left-border-thickness) solid transparent;
	}

	.primary-nav .menu-item.current-menu-item .nav-link-parent {
		background: var(--nav-colour-primary);
		color: #fff;
	}

	.primary-nav .menu-item.current-menu-ancestor:not(.expanded) .nav-link-parent {
		border-left-color: var(--nav-colour-primary);
	}

	.primary-nav .menu-item .nav-link-parent:focus,
	.primary-nav .menu-item .nav-link-parent:focus-visible {
		outline: 2px solid var(--colour-primary);
		outline-offset: -4px;
	}

	.primary-nav .menu-item.current-menu-item .nav-link-parent:focus,
	.primary-nav .menu-item.current-menu-item .nav-link-parent:focus-visible {
		outline-color: #fff;
	}

	.primary-nav .menu-item .nav-link-parent:focus:not(:focus-visible) {
		outline: none !important;
	}

	.primary-nav .menu-item-has-children .nav-link-parent::after {
		content: '';
		display: block;
		position: absolute;
		width: 1rem;
		height: 1rem;
		top: 1.125rem;
		right: 0.75rem;
		border-style: solid;
		border-width: 0.5rem;
		border-color: transparent;
		border-top-color: #bfbfbf;
		transition: 150ms all ease;
		transform-origin: 50% 25%;
		transform: rotate(-90deg);
	}

	.primary-nav .menu-item-has-children.expanded .nav-link-parent::after {
		transform: rotate(0deg);
		border-top-color: var(--nav-colour-primary);
	}

	.primary-nav .menu-item-has-children .nav-link-parent {
		cursor: pointer;
	}

	/* Child menu */

	.primary-nav .sub-menu {
		position: static;
		top: auto;
		left: auto;
		border-top: none;
		box-shadow: none;
		text-align: left;
	}

	.primary-nav .sub-menu .menu-item {
		width: auto;
	}

	.primary-nav .sub-menu .menu-item:not(:first-child)::before {
		display: none;
	}

	.primary-nav .nav-link-child {
		padding: 0.625rem 1rem 0.625rem calc(1rem + var(--nav-page-margin) - var(--nav-m-left-border-thickness));
		background: inherit;
		font-size: 0.9375rem;
		color: #333;
		border-left: var(--nav-m-left-border-thickness) solid transparent;
		white-space: normal;
	}

	.primary-nav .nav-link-child:hover {
		background: transparent;
		color: var(--colour-primary);
	}

	.primary-nav .nav-link-child:focus,
	.primary-nav .nav-link-child:focus-visible {
		background: transparent;
		outline-color: var(--nav-colour-primary);
		outline-offset: -4px;
		color: var(--colour-primary);
	}

	.primary-nav .nav-link-child:focus:not(:focus-visible) {
		outline: none !important;
	}

	.primary-nav .current-menu-item > .nav-link-child {
		background: var(--nav-colour-primary);
		color: #fff;
	}

	.primary-nav .current-menu-item > .nav-link-child:focus,
	.primary-nav .current-menu-item > .nav-link-child:focus-visible {
		outline-color: #fff;
	}

	/* Nav menu toggle ------------------------------------------------------ */
	
	.nav-menu-toggle {
		display: flex;
	}
}

/* ## Buttons --------------------------------------------------------------- */

.btn {
	display: inline-block;
	padding: 0.625rem 1rem;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.25rem;
	color: #fff;
	background: var(--colour-primary);
	border: none;
	border-radius: 1.25rem;
	text-decoration: none;
}

.btn:hover:not(:disabled) {
	background: var(--colour-primary-hover);
	color: #fff;
}

.btn:focus:not(:disabled),
.btn:focus-visible:not(:disabled) {
	background: var(--colour-primary-hover);
	outline: 2px solid var(--colour-primary-hover);
	outline-offset: 1.5px;
	color: #fff;
}

.btn:focus:not(:focus-visible):not(:disabled) {
	outline: none;
}

.btn:disabled {
	background: #b3b3b3;
	color: #e5e5e5;
}

/* ## Footer ---------------------------------------------------------------- */

.site-footer .upper {
	padding: 2.25rem 0 2rem 0;
	background: var(--colour-footer-bg-upper);
	color: #fff;
	font-weight: 300;
	letter-spacing: 0.02em;
}

.site-footer .upper h2 {
	margin: 0 0 1.5rem 0;
	font-size: 1.75em;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.site-footer .upper h3 {
	margin: 2rem 0 0.875rem 0;
	font-size: 1.3125em;
	font-weight: 600;
	line-height: 1.25;
}

.site-footer .upper h3:first-child {
	margin-top: 0;
}

.site-footer .columns {
	display: flex;
	align-items: center;
	max-width: 60rem;
	margin: 0 auto;
}

.site-footer .columns .column.left {
	width: 9rem;
	margin-right: 1.5rem;
}

.site-footer .columns .column.middle {
	flex: 3;
	margin-right: 2.5rem;
}

.site-footer .columns .column.middle p {
	max-width: 30rem;
	line-height: 1.6;
}

.site-footer .columns .column.right {
	flex: initial;
	width: 15rem;
}

.site-footer .upper .text {
	margin: 0.75rem 0;
	font-size: 0.9375em;
	line-height: 1.6;
}

.site-footer .upper .logo {
	display: block;
	width: 100%;
}

.site-footer .upper .item {
	margin-bottom: 0.5rem;
}

.site-footer .upper .item.phone {
	margin-bottom: 0.0625rem;
}

.site-footer .upper .item:last-child {
	margin-bottom: 0;
}

.site-footer .upper a {
	border-bottom: none;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
}

.site-footer .upper a:hover {
	border-bottom: 1px solid #fff;
}

.site-footer .upper a:focus,
.site-footer .upper a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 0.5px;
	border-bottom: none;
}

.site-footer .upper a:focus:not(:focus-visible) {
	outline: none !important;
}

.site-footer .upper .item .icon {
	width: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.25rem;
	opacity: 0.33;
}

.site-footer .upper .social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-size: 1.25rem;
	/* border: 1px solid rgba(255, 255, 255, 0.25); */
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.15);
	border: none;
}

.site-footer .upper .social-link:hover {
	border: none;
	background-color: #fff;
	color: var(--colour-primary);
}

.site-footer .lower {
	padding: 1em 0;
	background: var(--colour-footer-bg-lower);
	color: #a6a6a6;
}

.site-footer .lower .limiter {
	display: flex;
	align-items: center;
}

.site-footer .lower .copyright {
	flex: 1;
	font-size: 0.875em;
}

.site-footer .lower .top-button-wrapper {
	flex: initial;
}

.site-footer .lower .top-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.125em;
	height: 2.125em;
	padding: 0.45em 0.5em 0.55em 0.5em;
	color: rgba(255, 255, 255, 0.5);
	border: none;
	border-radius: 0.5px;
}

.site-footer .lower .top-button:hover {
	color: #fff;
	border: none;
}

.site-footer .lower .top-button:focus,
.site-footer .lower .top-button:focus-visible {
	color: #fff;
	outline: 2px solid #fff;
}

.site-footer .lower .top-button:focus:not(:focus-visible) {
	outline: none;
}

@media (max-width: 54em) {
	.site-footer .columns .column.middle p {
		line-height: 1.5;
	}
	
	.site-footer .columns .column.middle p {
		font-size: 0.9375rem;
	}
}

@media (max-width: 44em) {
	.site-footer .upper h2 {
		font-size: 1.5em;
	}

	.site-footer .columns {
		flex-direction: column;
		text-align: center;
	}

	.site-footer .columns .column.left {
		width: 7rem;
		margin-right: 0;
	}

	.site-footer .columns .column.middle {
		margin-right: 0;
		width: 100%;
	}

	.site-footer .columns .column.middle p {
		max-width: 100%;
	}

	.site-footer .columns .column.right {
		width: 100%;
	}

	.site-footer .upper .item.phone {
		margin-bottom: 0.5rem;
	}

	.site-footer .upper .item.hours {
		font-size: 0.9375rem;
	}

	.site-footer .upper .item.hours .icon {
		display: none;
	}
}

/* ## Posts and pages ------------------------------------------------------- */

.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* ## Comments -------------------------------------------------------------- */

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* ## Widgets --------------------------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* ## Media ----------------------------------------------------------------- */

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* ## Captions -------------------------------------------------------------- */

.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* ## Galleries ------------------------------------------------------------- */

.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}


/* -----------------------------------------------------------------------------
 # Home page ---------------------------------------------------------------- */

.page-home {
	background: #fff;
}

.page-home section {
	padding: 3em 0;
	font-size: 1.0625rem;
	text-align: center;
}

.page-home section > .is-layout-constrained {
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 0 1em;
}

.page-home section h2 {
	margin: 0 0 1.5rem 0;
	color: var(--colour-heading);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
}

.page-home section h3 {
	margin: 0 0 1rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}

.page-home section p {
	margin: 0 0 1rem 0;
}

.page-home section ul li {
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

.page-home .columns,
.page-home .tiles {
	display: flex;
	align-items: stretch;
	gap: 3rem;
}

.page-home .columns .column,
.page-home .tiles .tile {
	flex: 1;
}

@media (max-width: 45em) {
	.page-home section {
		padding: 2.5em 0;
		font-size: 1rem;
	}

	.page-home section h2 {
		font-size: 1.5rem;
	}

	.page-home section h3 {
		font-size: 1.125rem;
	}

	.page-home .columns,
	.page-home .tiles {
		display: block;
	}

	.page-home .columns .column.left {
		padding-bottom: 2.5em;
	}
}

/* ## Hero image section ---------------------------------------------------- */

.page-home section.hero {
	position: relative;
	padding: 0;
	overflow: hidden;
	font-size: 1rem;
	height: 40em;
	height: calc(100vh - var(--nav-height));
	max-height: 48em;
	min-height: 40em;
}

.page-home section.hero::before {
	content: '';
	position: absolute;
	top: -4em;
	right: -4em;
	bottom: -4em;
	left: -4em;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('./img/hero.jpg');
	filter: blur(4em);
	z-index: 0;
}

.page-home section.hero .hero-image {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1280px;
	margin: 0 auto;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 70%;
	background-image: url('./img/hero.jpg');
	z-index: 10;
}

.page-home section.hero .limiter {
	position: relative;
	height: 100%;
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}

.page-home section.hero .hero-content {
	position: relative;
	height: 100%;
}

.page-home section.hero .logo {
	display: block;
	position: absolute;
	top: 5%;
	left: 2.5%;
	width: 14rem;
}

.page-home section.hero p {
	margin: 0;
	position: absolute;
	right: 13%;
	bottom: 0.5rem;
	bottom: 1.5%;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.125;
	text-align: right;
	color: var(--colour-primary);
}

/* 1152px */
@media (max-width: 72em) {
	.page-home section.hero {
		min-height: 36em;
	}
}

/* 1024px */
@media (max-width: 64em) {
	.page-home section.hero {
		min-height: 30em;
	}
}

/* 864px */
@media (max-width: 54em) {
	.page-home section.hero p {
		right: 0.5rem;
	}
}

/* 720px */
@media (max-width: 45em) {
	.page-home section.hero .hero-image {
		background-position: 40% 60%;
	}

	.page-home section.hero .logo {
		width: 35%;
		max-width: 14rem;
	}

	.page-home section.hero p {
		font-size: 1.75rem;
	}
}

/* 512px */
@media (max-width: 32em) {
	.page-home section.hero .logo {
		top: 0;
		left: 0;
		width: 50%;
		max-width: 11rem;
	}

	.page-home section.hero p {
		width: 100%;
		right: 0;
		font-size: 1.4375rem;
		text-align: center;
	}
}

/* ## Intro section --------------------------------------------------------- */

.page-home section.intro h2 {
	color: var(--colour-primary);
}

.page-home section.intro h3 {
	color: var(--colour-primary);
}

.page-home section.intro p {
	margin-right: auto;
	margin-left: auto;
	max-width: 40em;
}

.page-home section.intro .tiles {
	margin: 3rem auto 0 auto;
	max-width: 40em;
}

.page-home section.intro .image-wrapper {
	max-width: 16rem;
	margin: 0 auto;
}

.page-home section.intro .image-circle {
	display: block;
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	border: 2px solid var(--colour-primary);
	border-radius: 50%;
}

.page-home section.intro h3 {
	margin-top: 1.5rem;
}

@media (max-width: 45em) {
	.page-home section.intro .image-wrapper {
		max-width: 12rem;
	}
}

/* ## Divider section ------------------------------------------------------- */

.page-home section.divider {
	padding: 0;
}

.page-home section.divider .limiter {
	max-width: 60rem;
}

.chma-divider {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	height: 15px;
	padding: 0 0.75rem 0 1.5rem;
	background-color: var(--colour-primary);
	border-radius: 7.5px;
}

.chma-divider-stripe {
	width: 4.5rem;
	background-color: var(--colour-secondary);
	transform: skewX(-30deg);
}

.chma-divider-stars {
	flex: 1;
	height: 9px;
	margin-bottom: 1px;
	align-self: center;
	background-image: url('./img/chma-stars.svg');
	background-position: 100% 50%;
	background-repeat: no-repeat;
	background-size: contain;
}

/* ## About section --------------------------------------------------------- */

.page-home section.about p {
	margin-right: auto;
	margin-left: auto;
	max-width: 40em;
}

.page-home section.about .tiles {
	margin-top: 1.5rem;
	align-items: center;
	justify-content: center;
}

.page-home section.about .tile {
	display: block;
	flex: initial;
	margin: 1.5rem 0;
}

.page-home section.about .link {
	display: inline-block;
	height: 5rem;
	width: auto;
}

.page-home section.about .link:focus,
.page-home section.about .link:focus-visible {
	outline: 2px solid var(--nav-colour-primary);
	outline-offset: 4px;
}

.page-home section.about .link:focus:not(:focus-visible) {
	outline: none;
}

.page-home section.about .link .logo {
	width: auto;
	height: 100%;
}

.page-home section.about .link:hover .logo {
	opacity: 0.9;
}

@media (max-width: 45em) {
	.page-home section.about .tiles {
		display: flex;
		margin-bottom: -1.5rem;
		gap: 2rem;
	}

	.page-home section.about .link {
		height: 4.5rem;
	}
}

/* ## Video section --------------------------------------------------------- */

.page-home section.video {
	padding: 0;
	color: #fff;
	background-color: var(--colour-primary);
}

.page-home section.video .tiles {
	max-width: 60rem;
	margin: 0 auto;
	padding: 3rem 0;
}

.page-home section.video .tile {
	/* padding: 3rem 0; */
}

.page-home section.video .tile.left {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background-image: url('./img/logo-chma-bg.svg');
	background-size: 52.5% auto;
	background-repeat: no-repeat;
	background-position: 50% 0%;
}

.page-home section.video .tile.left p {
	max-width: 13em;
	margin: 0;
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.25;
}

.page-home section.video .video-link {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border: 2px solid var(--colour-secondary);
}

.page-home section.video .video-link:focus {
	outline: 1.5px solid #fff;
	outline-offset: 2px;
}

.page-home section.video .overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.33);
}

.page-home section.video .cover-image {
	display: block;
}

.page-home section.video .play-control {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border: 1px solid #fff;
	border-radius: 50%;
	transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
	transition-duration: 0.15s;
	z-index: 2;
}

.page-home section.video .video-link:focus .play-control,
.page-home section.video .video-link:hover .play-control {
	background-color: #fff;
}

.page-home section.video .video-link .play-icon {
	width: 2.5rem;
	height: 2.5rem;
	color: #fff;
}

.page-home section.video .video-link:focus .play-icon,
.page-home section.video .video-link:hover .play-icon {
	color: var(---colour-primary);
}

@media (max-width: 45em) {
	.page-home section.video .tile.left {
		background-image: none;
	}

	.page-home section.video .tile.left p {
		max-width: 18em;
		font-size: 1.375rem;
		font-weight: 600;
	}

	.page-home section.video .video-link {
		max-width: 24rem;
		margin: 2rem auto 0 auto;
	}
}

/* ## Program section ------------------------------------------------------- */

.page-home section.program p {
	margin-right: auto;
	margin-left: auto;
	max-width: 40em;
}

.page-home section.program .grid {
	display: grid;
	margin: 1.5rem auto;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	max-width: 60rem;
}

.page-home section.program .formats {
	margin: 2rem auto 0 auto;
	gap: 4rem;
}

.page-home section.program .spacer {
	height: 1px;
	margin: 1.5rem 0;
}

.page-home section.program .topic .label {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.375;
	color: var(--colour-primary);
}

.page-home section.program .topic .thumbnail {
	display: block;
	border-radius: 8px;
	aspect-ratio: 3/2;
	object-fit: cover;
}

.page-home section.program .format .icon {
	display: block;
	width: 6rem;
	margin: 0 auto;
}

.page-home section.program .formats dt {
	margin: 1rem 0 0.5rem 0;
	font-weight: 700;
	line-height: 1.375;
	color: var(--colour-primary);
}

.page-home section.program .formats dd {
	margin: 0;
	font-size: 0.9375rem;
}

.page-home section.program .btn {
	margin-top: 2rem;
	padding-right: 3rem;
	padding-left: 3rem;
}

@media (max-width: 64em) {
	.page-home section.program .formats {
		gap: 2.5rem;
	}
}

@media (max-width: 48em) {
	.page-home section.program .formats {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
		max-width: 32rem;
	}
}

@media (max-width: 45em) {
	.page-home section.program .topics {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
		max-width: 28.5rem;
	}

	.page-home section.program .format .icon {
		width: 4.5rem;
	}
}

@media (max-width: 32em) {
	.page-home section.program .topics {
		gap: 1rem;
	}
}

@media (max-width: 25em) {
	.page-home section.program .topics {
		grid-template-columns: 1fr;
		max-width: 13.5rem;
	}

	.page-home section.program .formats {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ## FAQ section ----------------------------------------------------------- */

aside.faq {
	padding: 3em 0;
	font-size: 1.0625rem;
	text-align: center;
	background-color: var(--colour-lt-grey);
}

aside.faq h2 {
	margin: 0 0 1.5rem 0;
	color: var(--colour-heading);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
}

aside.faq details {
	max-width: 48rem;
	margin: 0.5rem auto;
	padding-top: 0.5rem;
	text-align: left;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

aside.faq details:first-child {
	border-top: none;
}

aside.faq details summary {
	display: block;
	position: relative;
	padding: 0.625rem 2.75rem 0.625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 500;
	color: #000;
	list-style-type: none;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

aside.faq details:hover summary {
	border-color: rgba(0, 0, 0, 0.5);
	background: rgba(255, 255, 255, 0.75);
}

aside.faq details summary:focus,
aside.faq details summary:focus-visible {
	outline: 2px solid var(--colour-primary);
	outline-offset: 1.5px;
}

aside.faq details summary:focus:not(:focus-visible) {
	outline: none !important;
}

aside.faq details .faq-answer {
	padding: 1rem 1.25rem 0.5rem 1.25rem;
}

aside.faq details p {
	margin: 0 0 1rem 0;
}

aside.faq details p:last-child {
	margin: 0;
}

aside.faq details[open] summary {
	color: var(--colour-primary);
	border-color: var(--colour-primary);
	background: rgba(255, 255, 255, 0.75);
}

aside.faq details summary::after {
	border-style: solid;
	border-width: 1.5px 1.5px 0 0;
	content: '';
	display: block;
	height: 0.5rem;
	right: 1.25rem;
	position: absolute;
	bottom: 50%;
	bottom: calc(50% - 0.25rem);
	transform: rotate(135deg);
	width: 0.5rem;
	transition: all 0.15s;
}

aside.faq details[open] summary:after {
	bottom: 50%;
	bottom: calc(50% - 0.5rem);
	transform: rotate(-45deg);
}

@media (max-width: 45em) {
	aside.faq {
		font-size: 1rem;
	}

	aside.faq h2 {
		font-size: 1.5rem;
	}

	aside.faq details summary {
		padding-left: 1rem;
	}

	aside.faq details .faq-answer {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	aside.faq details summary::after {
		right: 1rem;
	}
}


/* -----------------------------------------------------------------------------
 # Interior pages ----------------------------------------------------------- */

.page-default h1 {
	margin: 3rem 0 1.5rem 0;
	color: var(--colour-primary);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.page-default h2 {
	margin: 0 0 1.5rem 0;
	color: var(--colour-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.page-default h3 {
	margin: 0 0 1rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #000;
}

.page-default p {
	margin: 0 0 1rem 0;
}

@media (max-width: 45em) {
	.page-default h1 {
		margin-top: 2.5rem;
		font-size: 1.5rem;
	}

	.page-default h2 {
		font-size: 1.375rem;
	}
}

/* Courses table ------------------------------------------------------------ */

.courses-table {
	margin: 3rem 0;
	text-align: left;
}

p.no-courses {
	margin: 3rem 0;
	text-align: center;
}

.course {
	display: flex;
	align-items: flex-start;
	padding: 1.5rem 0;
	line-height: 1.375;
	border-top: 1px solid #808080;
}

.course:first-child {
	border-top: none;
}

.course-image {
	flex: initial;
	width: 13.5rem;
	margin-right: 1.5rem;
}

.course-image .thumbnail {
	width: 100%;
	height: 0;
	padding-bottom: 66.667%;
	padding-bottom: calc(100% * 2 / 3);
	margin-top: 0.125rem;
	background-repeat: no-repeat;
	background-size: cover;
	/* border: 1.5px solid var(--colour-primary); */
	border-radius: 8px;
	position: relative;
}

.course-image .course-format-icon {
	width: 25%;
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	bottom: 0.5rem;
	background-repeat: no-repeat;
	background-size: contain;
}

.course-primary {
	flex: 1;
	margin-right: 2rem;
}

.course .course-description b,
.course .course-description strong {
	font-weight: 600;
}

.course .course-type {
	margin-bottom: 0.0625rem;
	font-size: 0.875em;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--colour-primary-lightened);
}

.course h3 {
	margin: 0 0 0.75rem 0;
	font-size: 1.1875em;
	color: var(--colour-primary);
}

.course-primary p {
	margin: 0.625rem 0 0 0;
}

.course-secondary {
	flex: initial;
	width: 10rem;
}

.course-secondary-item {
	margin-top: 1rem;
}

.course-secondary-item.button {
	margin-top: 1.5rem;
}

.course-secondary-item:first-child {
	margin-top: 0;
}

.course-secondary .course-secondary-label {
	display: block;
	margin-bottom: 0.0625rem;
	font-size: 0.9375em;
	font-weight: 600;
}

.course .course-format,
.course .course-cost,
.course .course-status {
	font-size: 1rem;
	font-weight: 700;
	color: var(--colour-primary);
}

.course .btn-register {
	min-width: 9rem;
	padding: 0.3125rem 1rem;
	line-height: 1.25rem;
	border: none;
	border-radius: 0.9375rem;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 64em) {
	.course-image {
		width: 10rem;
	}
}

@media (max-width: 44em) {
	.courses-table {
		margin: 1.5rem 0;
	}

	.course {
		display: block;
	}

	.course-image {
		width: 13.5rem;
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.course-primary {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.course-secondary {
		flex: initial;
		width: 100%;
	}

	.course-secondary-item {
		margin-top: 0.625rem;
	}

	.course-secondary-item.button {
		margin-top: 1.25rem;
	}

	.course-secondary .course-secondary-label {
		display: inline;
		font-size: 1em;
	}
}

/* Course format legend ----------------------------------------------------- */

.course-format-legend {
	display: grid;
	margin: 2rem auto;
	padding: 0;
	list-style-type: none;;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	max-width: 56rem;
}

.course-format-legend .format {
	display: flex;
	align-items: center;
}

.course-format-legend .icon {
	flex: initial;
	width: 3rem;
	margin-right: 0.75rem;
}

.course-format-legend .label {
	flex: 1;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--colour-primary);
}

@media (max-width: 44em) {
	.course-format-legend {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
		max-width: 24.5rem;
	}

	.course-format-legend .icon {
		width: 2.5rem;
		margin-right: 0.625rem;
	}

	.course-format-legend .label {
		flex: 1;
	}
}

@media (max-width: 22.5em) {
	.course-format-legend {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		max-width: 12rem;
	}
}


/* -----------------------------------------------------------------------------
 # Plugins ------------------------------------------------------------------ */

/* ## Jetpack infinite scroll ----------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}


/* -----------------------------------------------------------------------------
 # Utilities ---------------------------------------------------------------- */

/* ## Accessibility --------------------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	clip: auto !important;
	clip-path: none;
	color: var(--colour-primary);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	outline: 2px solid var(--colour-primary);
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* ## Alignments ------------------------------------------------------------ */

.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
