/*!
Theme Name: MapImpact
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mapimpact
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

MapImpact 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:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

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

/* Document
	 ========================================================================== */

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

/* Offset in-page anchor jumps (#section, #primary, etc.) below the sticky header */
:target,
main [id],
section[id] {
	scroll-margin-top: 5rem;
}

:root {
	--color-body: #f9f9fe;
	--colour-mi-yellow: #f9b518;
	--colour-mi-yellow-light: #FFDEA8;
	--colour-mi-black: #191c1f;
	--colour-mi-green: #078812;
	--colour-mi-light-green: #0788121A;
	--colour-mi-dark-grey: #504533;
	--colour-mi-brown: #684900;
	--colour-mi-light-brown: #504533;
	--colour-mi-white: #fff;
	--colour-mi-light-grey: #F3F3F8;
	--colour-mi-bg-grey: #e2e2e7;
	--colour-mi-bg-grey-cards: #DFDFE0;
	--colour-mi-bg-overlay: rgba(0, 0, 0, 0.5);
	--colour-mi-border-yellow-light: rgb(249 181 24 / 30%);
	--colour-mi-border-black-cards: rgb(213 196 172 / 13%);
	--colour-mi-border-light: #D5C4AC;
	--colour-mi-placeholder: #6B7280;

	/* Transitions */
	--transition: 0.3s ease-in-out;

	/* Typography */
	--body: 1rem;
	--body-large: 1.25rem;
	--body-small: 0.875rem;
	--font-small: 0.75rem;

	/* Sections */
	--site-width: 1400px;
	--site-width-narrow: 1200px;

	/* Border Radius */
	--br-3: clamp(1.75rem, 4vw, 3rem);
	--br-2: clamp(1.25rem, 3vw, 2rem);
	--br-1: clamp(0.75rem, 2vw, 1rem);
	--br-0: 0.5rem;

	/* Box Shadow */
	--box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	--box-shadow-yellow: 0 0 0 1px rgba(245, 166, 35, 0.25),
		0 12px 32px -4px rgba(120, 80, 0, 0.12),
		0 4px 12px -2px rgba(0, 0, 0, 0.04);

}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	font-size: 1rem;
	margin: 0 !important;
}

@view-transition {
	navigation: auto;
}

/**
 * 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;
} */

/* Grouping content
	 ========================================================================== */

/**
 * 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;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * 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;
}

/* Embedded content
	 ========================================================================== */

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

/* Forms
	 ========================================================================== */

/**
 * 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;
}

/* Interactive
	 ========================================================================== */

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

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

/* Misc
	 ========================================================================== */

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

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

/* Box sizing
--------------------------------------------- */

/* 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
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--colour-mi-black);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", 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%;
}

.text-uppercase {
	text-transform: uppercase;
}

.white-space-nowrap {
	white-space: nowrap;
}

/* Elements
--------------------------------------------- */
body {
	background-color: var(--color-body);
}

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;
	width: 100%;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

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

/* Links
--------------------------------------------- */
a {
	color: inherit;
}

/* a:visited {
	color: inherit;
} */

/* a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
} */

a:hover,
a:active {
	outline: 0;
}

/* 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
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* ==========================================================================
   Navigation Base & Desktop Styles
   ========================================================================== */
.main-navigation {
	display: block;
	width: 100%;
}

/* Hide Mobile Menu Container by default on Desktop */
.mobile-menu-container {
	display: none !important;
}

/* Desktop Menu Layout */
@media (min-width: 901px) {
	.menu-toggle {
		display: none !important;
	}

	.desktop-menu {
		display: block !important;
	}

	.main-navigation ul#primary-menu {
		display: flex;
		gap: 3vw;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.main-navigation li {
		position: relative;
	}

	.main-navigation a {
		display: flex;
		align-items: center;
		text-decoration: none;
		font-weight: 600;
		color: var(--colour-mi-dark-grey);
		transition: var(--transition, color 0.2s ease);
		padding: 1.5rem 0;
		position: relative;
	}

	.main-navigation a:hover,
	.main-navigation a:focus {
		color: var(--colour-mi-yellow);
	}

	/* Chevron arrow indicator for parent items */
	.main-navigation li.menu-item-has-children>a::after {
		content: '';
		display: inline-block;
		width: 0.4em;
		height: 0.4em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transform-origin: 65% 65%;
		transition: transform 0.25s ease;
		margin-left: 0.5rem;
		margin-top: -0.2em;
		vertical-align: middle;
	}

	/* Clean 180° rotation on hover */
	.main-navigation li.menu-item-has-children:hover>a::after,
	.main-navigation li.menu-item-has-children.focus>a::after {
		transform: rotate(-135deg);
	}

	/* Desktop Sub Menu Dropdowns */
	.main-navigation ul#primary-menu ul {
		left: -999em;
		position: absolute;
		display: flex;
		flex-direction: column;
		top: 100%;
		z-index: 99999;
		background-color: var(--colour-mi-white, #fff);
		border-radius: 0 0 var(--br-1, 8px) var(--br-1, 8px);
		padding: 1rem;
		border: 1px solid transparent;
		border-top: none;
		list-style: none;
		margin: 0;
	}

	#masthead.scrolled .main-navigation ul#primary-menu ul {
		border-color: var(--colour-mi-border-light, #eee);
	}

	.main-navigation ul#primary-menu ul::before {
		content: '';
		position: absolute;
		top: 0;
		left: -10px;
		width: calc(100% + 20px);
		height: 14px;
		background: var(--colour-mi-white, #fff);
		pointer-events: none;
	}

	.main-navigation ul#primary-menu ul a {
		width: 200px;
		padding: 0.75rem 0;
	}

	.main-navigation ul#primary-menu li:hover>ul,
	.main-navigation ul#primary-menu li.focus>ul {
		left: 0;
	}
}


/* ==========================================================================
   Mobile Navigation Toggle (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: transparent;
		border: none;
		padding: 0.5rem;
		cursor: pointer;
		z-index: 1001;
		/* Resets default browser button spacing */
		line-height: 1;
		margin: 0;
	}
}

/* Hide on desktop */
@media (min-width: 901px) {
	.menu-toggle {
		display: none !important;
	}
}

/* Hamburger Container Box */
.hamburger-box {
	width: 24px;
	height: 18px;
	display: block;
	position: relative;
}

/* Shared Bar Styles */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
	width: 24px;
	height: 2px;
	background-color: var(--colour-black, #000);
	position: absolute;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

/* Middle Bar Centered */
.hamburger-inner {
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

/* Top & Bottom Bars Relative to Middle */
.hamburger-inner::before,
.hamburger-inner::after {
	content: '';
	left: 0;
}

.hamburger-inner::before {
	top: -7px;
}

.hamburger-inner::after {
	top: 7px;
}

/* Morphing Hamburger into 'X' when active */
.main-navigation.toggled .hamburger-inner {
	background-color: transparent !important;
}

.main-navigation.toggled .hamburger-inner::before {
	transform: translateY(7px) rotate(45deg);
}

.main-navigation.toggled .hamburger-inner::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

	/* Hide Desktop Menu on Mobile */
	.desktop-menu {
		display: none !important;
	}

	/* Show Toggle Button */
	.menu-toggle {
		display: inline-block !important;
		float: right;
	}

	/* Mobile Drawer Container */
	.mobile-menu-container {
		display: none !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #ffffff;
		padding: 1.5rem clamp(1.25rem, 2vw, 2rem);
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
		z-index: 1000;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}

	/* Drawer Displayed when Navigation is Toggled */
	.main-navigation.toggled .mobile-menu-container {
		display: block !important;
	}

	.mobile-menu-container ul#mobile-menu {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
	}

	.mobile-menu-container ul#mobile-menu a {
		display: block;
		padding: 1.25rem 0;
		font-weight: 600;
		color: var(--colour-mi-dark-grey, #333);
		text-decoration: none;
	}

	.mobile-menu-container ul#mobile-menu>li:not(:last-child) {
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}

	.mobile-menu-container ul#mobile-menu li:has(+ .btn a) {
		border-bottom: none;
	}

	/* Accordion Item Wrapper (Link + Toggle Button Flex Row) */
	.mobile-menu-container .menu-item-wrapper {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.mobile-menu-container .menu-item-wrapper a {
		flex-grow: 1;
		border-bottom: none;
	}

	/* Accordion Toggle Button */
	.mobile-menu-container .dropdown-toggle {
		background: transparent;
		border: none;
		padding: 1.25rem 0.75rem;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		color: var(--colour-mi-dark-grey, #333);
	}

	/* Accordion Chevron Icon */
	.mobile-menu-container .chevron-icon {
		display: inline-block;
		width: 0.45em;
		height: 0.45em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transform-origin: 65% 65%;
		transition: transform 0.25s ease;
		margin-top: -0.2em;
	}

	/* Rotate Chevron when Accordion Item is Expanded */
	.mobile-menu-container li.menu-item-has-children.is-open>.menu-item-wrapper .chevron-icon {
		transform: rotate(-135deg);
	}

	/* Sub-menu initial hidden state */
	.mobile-menu-container ul#mobile-menu ul.sub-menu {
		display: none;
		list-style: none;
		padding-left: 1rem;
		margin: 0 0 1.25rem 0;
		border-left: 2px solid var(--colour-mi-yellow, #ffd700);
	}

	/* Display Sub-menu when parent has .is-open class */
	.mobile-menu-container ul#mobile-menu li.menu-item-has-children.is-open>ul.sub-menu {
		display: block;
	}

	.mobile-menu-container ul#mobile-menu ul.sub-menu a {
		font-weight: 400;
		font-size: 0.95rem;
		border-bottom: none;
		padding: 0.4rem 0;
	}

	/* Mobile Menu CTA Button */
	#mobile-menu li.btn a {
		margin-top: 3rem;
		text-align: center;
		color: var(--colour-mi-brown);
		border: 0.188rem solid transparent;
		background-color: var(--colour-mi-yellow);
		padding: 0.6rem 2rem 0.8rem 2rem;
		border-radius: 999rem;
		text-decoration: none;
		font-weight: 700;
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	}

	/* Lock scroll when mobile menu drawer is open */
	body.menu-open {
		overflow: hidden;
	}

	body.menu-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		z-index: 9;
		pointer-events: none;
	}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.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;
}

/*--------------------------------------------------------------
# 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: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	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;
}

.align-items-center {
	align-items: center;
}

.justify-content-center {
	justify-content: center;
}

.justify-content-between {
	justify-content: space-between;
}

.justify-content-end {
	justify-content: flex-end;
}

.flex-end {
	justify-content: flex-end;
}

.gap-1 {
	gap: 1rem;
}

.gap-2 {
	gap: 2rem;
}

.gap-3 {
	gap: 3rem;
}

.gap-4 {
	gap: 4rem;
}

.gap-5 {
	gap: 5rem;
}

.gap-6 {
	gap: 6rem;
}

.gap-7 {
	gap: 7rem;
}

.gap-8 {
	gap: 8rem;
}

.gap-9 {
	gap: 9rem;
}

.gap-10 {
	gap: 10rem;
}

.row-gap-0 {
	row-gap: 0;
}

.row-gap-1 {
	row-gap: 1rem;
}

.row-gap-2 {
	row-gap: 2rem;
}

.row-gap-3 {
	row-gap: 3rem;
}

.row-gap-4 {
	row-gap: 4rem;
}

.row-gap-5 {
	row-gap: 5rem;
}

.row-gap-6 {
	row-gap: 6rem;
}

.row-gap-7 {
	row-gap: 7rem;
}

.row-gap-8 {
	row-gap: 8rem;
}

.row-gap-9 {
	row-gap: 9rem;
}

.row-gap-10 {
	row-gap: 10rem;
}

.col-gap-0 {
	column-gap: 0;
}

.col-gap-1 {
	column-gap: 1rem;
}

.col-gap-2 {
	column-gap: 2rem;
}

.col-gap-3 {
	column-gap: 3rem;
}

.col-gap-4 {
	column-gap: 4rem;
}

.col-gap-5 {
	column-gap: 5rem;
}

.col-gap-6 {
	column-gap: 6rem;
}

.col-gap-7 {
	column-gap: 7rem;
}

.col-gap-8 {
	column-gap: 8rem;
}

.col-gap-9 {
	column-gap: 9rem;
}

.col-gap-10 {
	column-gap: 10rem;
}

.position-relative {
	position: relative;
}

.position-absolute {
	position: absolute;
}

.h-100 {
	height: 100%;
}

.w-100 {
	width: 100%;
}

.z-0 {
	z-index: 0;
}

.z-1 {
	z-index: -1;
}

.z--1 {
	z-index: 1;
}

.z-2 {
	z-index: 2;
}

.pointer-events-none {
	pointer-events: none;
}

@media(min-width: 900px) {
	.hide-desktop {
		display: none !important;
	}
}

@media(max-width: 900px) {
	.hide-mob {
		display: none !important;
	}
}

/* GLOBAL UTILITIES
--------------------------------------------- */
.overflow-hidden {
	overflow: hidden;
}

.ar-1-1 {
	aspect-ratio: 1 / 1;
}

.ar-4-3 {
	aspect-ratio: 4 / 3;
}

.ar-3-4 {
	aspect-ratio: 3 / 4;
}

.ar-5-3 {
	aspect-ratio: 5 / 3;
}

.ar-5-4 {
	aspect-ratio: 5 / 4;
}

.ar-16-9 {
	aspect-ratio: 16 / 9;
}

.ar-9-16 {
	aspect-ratio: 9 / 16;
}

.ar-21-9 {
	aspect-ratio: 21 / 9;
}


/* Post Content Body Typography Scaling */
.post-content .content-body .content h2,
.post-content .content-body .content h3,
.post-content .content-body .content h4,
.post-content .content-body .content h5,
.post-content .content-body .content h6 {
	margin-top: 1.75em;
	margin-bottom: 0.5em;
}

.post-content .content-body .content h2 {
	font-size: clamp(1.6rem, 1.2rem + 1cqw, 2.125rem);
	line-height: 1.25;
	font-weight: 800;
}

.post-content .content-body .content h3 {
	font-size: clamp(1.3rem, 1rem + 0.8cqw, 1.625rem);
	line-height: 1.3;
	font-weight: 700;
}

.post-content .content-body .content h4 {
	font-size: clamp(1.1rem, 0.95rem + 0.4cqw, 1.25rem);
	line-height: 1.35;
	font-weight: 600;
}

.post-content .content-body .content h5 {
	font-size: clamp(0.95rem, 0.9rem + 0.2cqw, 1.05rem);
	line-height: 1.4;
	font-weight: 600;
}

.post-content .content-body .content h6 {
	font-size: 0.875rem;
	line-height: 1.4;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.post-content .content-body .content p>img,
.post-content .content-body .content figure>img {
	border-radius: var(--br-1);
}

.post-content .content-body .content .wp-caption-text {
	font-size: var(--body-small);
}

/* Ensure the very first heading in the content doesn't have excess top margin */
.post-content .content-body .content>*:first-child {
	margin-top: 0;
}

.post-content .content-body .content ul,
.post-content .content-body .content ol {
	padding-left: 1em;
	margin-inline: 1.5em;
}

/* General Content Styling */
.content p a,
.content ul a,
.content ol a {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(120deg, var(--colour-mi-yellow) 0%, var(--colour-mi-yellow) 100%);
	background-repeat: no-repeat;
	background-size: 100% 15%;
	background-position: 0 100%;
	transition: background-size 0.25s ease, color 0.25s ease;
}

.content p a:hover,
.content ul a:hover,
.content ol a:hover {
	background-size: 100% 100%;
	color: var(--colour-mi-black);
}

.content ul,
.content ol {
	margin: 0;
}

.content blockquote {
	border-left: 0.25rem solid var(--colour-mi-yellow);
	padding-left: 1rem;
	margin: 1.5em 0;
	font-style: italic;
}



/* BUTTONS
--------------------------------------------- */
.buttons {
	display: flex;
	flex-wrap: wrap;
	flex: 1;
	gap: 1rem;
}

@media(max-width: 600px) {
	.buttons .button {
		width: 100%;
	}
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	color: var(--colour-mi-brown);
	border: 0.188rem solid transparent;
	/* font-size: var(--body-large); */
	padding: 0.6rem 2rem 0.8rem 2rem;
	border-radius: 999rem;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	transform: translateY(0);
	cursor: pointer;
}

.button:hover {
	transform: translateY(-2px);
}

.button:focus-visible {
	outline: 2px solid var(--colour-mi-black);

}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.text-link svg {
	transition: var(--transition);
}

.text-link:hover {
	color: var(--colour-mi-yellow);
}

.text-link:not(.no-anim):hover svg {
	transform: translateX(0.25rem);
}


.button.primary {
	background-color: var(--colour-mi-yellow);
	border-color: var(--colour-mi-yellow);
}

.button.primary:hover,
.button.primary:focus-visible {
	background-color: transparent;
	color: var(--colour-mi-black);
}

.button.secondary {
	border-color: var(--colour-mi-bg-grey);
	background-color: var(--colour-mi-bg-grey);
	color: var(--colour-mi-black);
}

.button.secondary:hover,
.button.secondary:focus-visible {
	background-color: transparent;
	border-color: var(--colour-mi-bg-grey);
}

.button.white {
	background-color: var(--colour-mi-white);
	border-color: var(--colour-mi-white);
	color: var(--colour-mi-black);
}

.button.white:hover,
.button.white:focus-visible {
	background-color: transparent;
}

/* BORDER RADIUS
--------------------------------------------- */
.br-large {
	border-radius: var(--br-3);
}

.br-medium {
	border-radius: var(--br-2);
}

.br-small {
	border-radius: var(--br-1);
}

.br-1 {
	border-radius: var(--br-1);
}

.br-2 {
	border-radius: var(--br-2);
}

.br-3 {
	border-radius: var(--br-3);
}

.br-4 {
	border-radius: var(--br-4);
}


/* OPACITIES
--------------------------------------------- */
.op-0 {
	opacity: 0;
}

.op-10 {
	opacity: 0.1;
}

.op-20 {
	opacity: 0.2;
}

.op-30 {
	opacity: 0.3;
}

.op-40 {
	opacity: 0.4;
}

.op-50 {
	opacity: 0.5;
}

.op-60 {
	opacity: 0.6;
}

.op-70 {
	opacity: 0.7;
}

.op-80 {
	opacity: 0.8;
}

.op-90 {
	opacity: 0.9;
}


/* PADDING (Fluid Scaling with Clamp)
--------------------------------------------- */

/* Padding Top */
.pt-1 {
	padding-top: clamp(0.75rem, 1vw, 1rem);
}

.pt-2 {
	padding-top: clamp(1.25rem, 2vw, 2rem);
}

.pt-3 {
	padding-top: clamp(1.75rem, 3vw, 3rem);
}

.pt-4 {
	padding-top: clamp(2.25rem, 4vw, 4rem);
}

.pt-5 {
	padding-top: clamp(2.75rem, 5vw, 5rem);
}

.pt-6 {
	padding-top: clamp(3.25rem, 6vw, 6rem);
}

.pt-7 {
	padding-top: clamp(3.75rem, 7vw, 7rem);
}

.pt-8 {
	padding-top: clamp(4.25rem, 8vw, 8rem);
}

.pt-9 {
	padding-top: clamp(4.75rem, 9vw, 9rem);
}

.pt-10 {
	padding-top: clamp(5rem, 10vw, 10rem);
}

/* Padding Bottom */
.pb-1 {
	padding-bottom: clamp(0.75rem, 1vw, 1rem);
}

.pb-2 {
	padding-bottom: clamp(1.25rem, 2vw, 2rem);
}

.pb-3 {
	padding-bottom: clamp(1.75rem, 3vw, 3rem);
}

.pb-4 {
	padding-bottom: clamp(2.25rem, 4vw, 4rem);
}

.pb-5 {
	padding-bottom: clamp(2.75rem, 5vw, 5rem);
}

.pb-6 {
	padding-bottom: clamp(3.25rem, 6vw, 6rem);
}

.pb-7 {
	padding-bottom: clamp(3.75rem, 7vw, 7rem);
}

.pb-8 {
	padding-bottom: clamp(4.25rem, 8vw, 8rem);
}

.pb-9 {
	padding-bottom: clamp(4.75rem, 9vw, 9rem);
}

.pb-10 {
	padding-bottom: clamp(5rem, 10vw, 10rem);
}

/* Padding Inline (Horizontal) */
.px-1 {
	padding-inline: clamp(0.75rem, 1vw, 1rem);
}

.px-2 {
	padding-inline: clamp(1.25rem, 2vw, 2rem);
}

.px-3 {
	padding-inline: clamp(1.5rem, 3vw, 3rem);
}

.px-4 {
	padding-inline: clamp(2rem, 4vw, 4rem);
}

.px-5 {
	padding-inline: clamp(2.25rem, 5vw, 5rem);
}

.px-6 {
	padding-inline: clamp(2.5rem, 6vw, 6rem);
}

.px-7 {
	padding-inline: clamp(3rem, 7vw, 7rem);
}

.px-8 {
	padding-inline: clamp(3.5rem, 8vw, 8rem);
}

.px-9 {
	padding-inline: clamp(4rem, 9vw, 9rem);
}

.px-10 {
	padding-inline: clamp(4.5rem, 10vw, 10rem);
}

/* Padding Block (Vertical) */
.py-1 {
	padding-block: clamp(0.75rem, 1vw, 1rem);
}

.py-2 {
	padding-block: clamp(1.25rem, 2vw, 2rem);
}

.py-3 {
	padding-block: clamp(1.75rem, 3vw, 3rem);
}

.py-4 {
	padding-block: clamp(2.25rem, 4vw, 4rem);
}

.py-5 {
	padding-block: clamp(2.75rem, 5vw, 5rem);
}

.py-6 {
	padding-block: clamp(3.25rem, 6vw, 6rem);
}

.py-7 {
	padding-block: clamp(3.75rem, 7vw, 7rem);
}

.py-8 {
	padding-block: clamp(4.25rem, 8vw, 8rem);
}

.py-9 {
	padding-block: clamp(4.75rem, 9vw, 9rem);
}

.py-10 {
	padding-block: clamp(5rem, 10vw, 10rem);
}



/* MARGIN (Fluid Scaling with Clamp)
--------------------------------------------- */

/* Margin Top */
.mt-auto {
	margin-top: auto;
}

.mt-0 {
	margin-top: 0;
}

.mt-05 {
	margin-top: 0.5rem;
}

.mt-1 {
	margin-top: clamp(0.75rem, 1vw, 1rem);
}

.mt-2 {
	margin-top: clamp(1.25rem, 2vw, 2rem);
}

.mt-3 {
	margin-top: clamp(1.75rem, 3vw, 3rem);
}

.mt-4 {
	margin-top: clamp(2.25rem, 4vw, 4rem);
}

.mt-5 {
	margin-top: clamp(2.75rem, 5vw, 5rem);
}

.mt-6 {
	margin-top: clamp(3.25rem, 6vw, 6rem);
}

.mt-7 {
	margin-top: clamp(3.75rem, 7vw, 7rem);
}

.mt-8 {
	margin-top: clamp(4.25rem, 8vw, 8rem);
}

.mt-9 {
	margin-top: clamp(4.75rem, 9vw, 9rem);
}

.mt-10 {
	margin-top: clamp(5rem, 10vw, 10rem);
}

/* Margin Bottom */
.mb-0 {
	margin-bottom: 0;
}

.mb-05 {
	margin-bottom: 0.5rem;
}

.mb-1 {
	margin-bottom: clamp(0.75rem, 1vw, 1rem);
}

.mb-2 {
	margin-bottom: clamp(1.25rem, 2vw, 2rem);
}

.mb-3 {
	margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.mb-4 {
	margin-bottom: clamp(2.25rem, 4vw, 4rem);
}

.mb-5 {
	margin-bottom: clamp(2.75rem, 5vw, 5rem);
}

.mb-6 {
	margin-bottom: clamp(3.25rem, 6vw, 6rem);
}

.mb-7 {
	margin-bottom: clamp(3.75rem, 7vw, 7rem);
}

.mb-8 {
	margin-bottom: clamp(4.25rem, 8vw, 8rem);
}

.mb-9 {
	margin-bottom: clamp(4.75rem, 9vw, 9rem);
}

.mb-10 {
	margin-bottom: clamp(5rem, 10vw, 10rem);
}

/* Margin Inline (Horizontal) */
.mx-1 {
	margin-inline: clamp(0.75rem, 1vw, 1rem);
}

.mx-2 {
	margin-inline: clamp(1.25rem, 2vw, 2rem);
}

.mx-3 {
	margin-inline: clamp(1.5rem, 3vw, 3rem);
}

.mx-4 {
	margin-inline: clamp(2rem, 4vw, 4rem);
}

.mx-5 {
	margin-inline: clamp(2.25rem, 5vw, 5rem);
}

.mx-6 {
	margin-inline: clamp(2.5rem, 6vw, 6rem);
}

.mx-7 {
	margin-inline: clamp(3rem, 7vw, 7rem);
}

.mx-8 {
	margin-inline: clamp(3.5rem, 8vw, 8rem);
}

.mx-9 {
	margin-inline: clamp(4rem, 9vw, 9rem);
}

.mx-10 {
	margin-inline: clamp(4.5rem, 10vw, 10rem);
}

/* Margin Block (Vertical) */
.my-0 {
	margin-block: 0;
}

.my-1 {
	margin-block: clamp(0.75rem, 1vw, 1rem);
}

.my-2 {
	margin-block: clamp(1.25rem, 2vw, 2rem);
}

.my-3 {
	margin-block: clamp(1.75rem, 3vw, 3rem);
}

.my-4 {
	margin-block: clamp(2.25rem, 4vw, 4rem);
}

.my-5 {
	margin-block: clamp(2.75rem, 5vw, 5rem);
}

.my-6 {
	margin-block: clamp(3.25rem, 6vw, 6rem);
}

.my-7 {
	margin-block: clamp(3.75rem, 7vw, 7rem);
}

.my-8 {
	margin-block: clamp(4.25rem, 8vw, 8rem);
}

.my-9 {
	margin-block: clamp(4.75rem, 9vw, 9rem);
}

.my-10 {
	margin-block: clamp(5rem, 10vw, 10rem);
}



/* COLOURS
--------------------------------------------- */
.bg-white {
	background-color: var(--colour-mi-white);
}

.bg-white-5 {
	background-color: color-mix(in srgb, var(--white, #ffffff) 5%, transparent);
}

.bg-white-10 {
	background-color: color-mix(in srgb, var(--white, #ffffff) 10%, transparent);
}

.bg-yellow {
	background-color: var(--colour-mi-yellow);
}

.bg-yellow-light {
	background-color: var(--colour-mi-yellow-light);
}

.bg-yellow-light-05 {
	background-color: color-mix(in srgb, var(--colour-mi-yellow) 5%, transparent);
}

.bg-yellow-light-10 {
	background-color: color-mix(in srgb, var(--colour-mi-yellow) 10%, transparent);
}

.bg-black {
	background-color: var(--colour-mi-black);
}

.bg-grey {
	background-color: var(--colour-mi-bg-grey);
}

.bg-dark-grey {
	background-color: var(--colour-mi-dark-grey);
}

.bg-light-grey {
	background-color: var(--colour-mi-light-grey);
}

.bg-light-grey-30 {
	background-color: color-mix(in srgb, var(--colour-mi-light-grey) 30%, transparent);
}

.bg-grey-cards {
	background-color: var(--colour-mi-bg-grey-cards);
}

.bg-green {
	background-color: var(--colour-mi-green);
}

.bg-light-green {
	background-color: var(--colour-mi-light-green);
}

.bg-brown {
	background-color: var(--colour-mi-brown);
}

.text-white {
	color: var(--colour-mi-white);
}

.text-brown {
	color: var(--colour-mi-brown);
}

.text-yellow {
	color: var(--colour-mi-yellow);
}

.text-black {
	color: var(--colour-mi-black);
}

.text-black-60 {
	color: rgba(0, 0, 0, 0.6);
}

.text-grey {
	color: var(--colour-mi-bg-grey);
}


.text-green {
	color: var(--colour-mi-green);
}






/* TYPOGRAPHY
--------------------------------------------- */

body {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-optical-sizing: auto;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
}



h1,
.h1 {
	font-size: clamp(2.5rem, 1.5rem + 3cqw, 3.75rem);
	line-height: 1;
	font-weight: 900;
	margin-top: 0;
}

h2,
.h2 {
	font-size: clamp(2rem, 1.2rem + 2cqw, 3rem);
	line-height: 1.2;
}

h3,
.h3 {
	font-size: clamp(1.5rem, 1rem + 1.5cqw, 2rem);
	line-height: 1.2;
	font-weight: 600;
}

h4,
.h4 {
	font-size: clamp(1.2rem, 0.9rem + 1cqw, 1.5rem);
	line-height: 1.2;
	font-weight: 600;
}

h5,
.h5 {
	font-size: clamp(0.95rem, 0.85rem + 0.5cqw, 1.125rem);
	line-height: 1.3;
	font-weight: 600;
}

h6,
.h6 {
	font-size: clamp(0.85rem, 0.75rem + 0.3cqw, 0.95rem);
	line-height: 1.4;
	font-weight: 600;
}

.body-large {
	font-size: var(--body-large);
}

.white {
	color: var(--colour-mi-white);
}

.black {
	color: var(--colour-mi-black);
}

.font-sml {
	font-size: var(--body-small);
}

.font-bold {
	font-weight: 700;
}

.italic {
	font-style: italic;
}



/* CONTAINERS & SECTIONS
--------------------------------------------- */
section {
	position: relative;
}

section>.container,
article>.container,
footer>.container {
	max-width: var(--site-width);
	margin-inline: auto;
}

/* Container Context */
.container,
.container-narrow {
	container-type: inline-size;
}

.container-narrow {
	max-width: var(--site-width-narrow);
	margin-inline: auto;
}

.max-w-700 {
	max-width: 700px;
	margin-inline: auto;
}

.margin-left-0 {
	margin-left: 0;
}

.margin-right-0 {
	margin-right: 0;
}

.content {
	z-index: 1;
}


.overlay {
	position: relative;
}

.overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--colour-mi-bg-overlay);
	z-index: 0;
}

.bs {
	box-shadow: var(--box-shadow);
}

.border {
	border: 1px solid var(--colour-mi-border-light);
}

.bt {
	border-top: 1px solid var(--colour-mi-border-light);
}

.bb {
	border-bottom: 1px solid var(--colour-mi-border-light);
}


.bt-yellow {
	border-top: 1px solid var(--colour-mi-yellow);
}

.bt-grey {
	border-top: 1px solid var(--colour-mi-bg-grey);
}

.bs-yellow {
	box-shadow: var(--box-shadow-yellow);
}

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

.balance {
	text-wrap: balance;
}

.pretty {
	text-wrap: pretty;
}

.letter-spacing {
	letter-spacing: 0.05em;
}

.underline {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.no-underline {
	text-decoration: none;
}

.no-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fw-500 {
	font-weight: 500;
}

.fw-600 {
	font-weight: 600;
}

.fw-900 {
	font-weight: 900;
}





/* IMAGES
--------------------------------------------- */
.image {
	position: relative;
}

.bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	overflow: hidden;
}

.bg-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.object-fit-cover {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.mh-20 {
	min-height: 20rem;
}

.mh-30 {
	min-height: 30rem;
}

.mh-40 {
	min-height: 40rem;
}



/* CSS GRID LAYOUT
--------------------------------------------- */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

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

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

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

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

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

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

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

@media(max-width: 900px) {

	.grid-2,
	.grid-3,
	.grid-4,
	.grid-5,
	.grid-6,
	.grid-7,
	.grid-8,
	.grid-9 {
		grid-template-columns: 1fr;
	}
}




/* CSS FLEX LAYOUT
--------------------------------------------- */
.flex {
	display: flex;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-grow-1 {
	flex: 1;
}

.flex-shrink-0 {
	flex-shrink: 0;
}

.flex-column {
	flex-direction: column;
}



/* HEADER & FOOTER
--------------------------------------------- */
#masthead {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99;
	border-bottom: 1px solid transparent;
}

#masthead.scrolled {
	border-color: var(--colour-mi-border-light);
}

#masthead>.container {
	max-width: var(--site-width);
	margin-inline: auto;

}

#masthead .custom-logo-link {
	max-width: 13rem;
}

#masthead .custom-logo-link:focus {
	outline: none;
}

#masthead .custom-logo-link:focus-visible {
	outline: 2px solid var(--colour-mi-black);
}

#masthead .button {
	font-size: var(--body);
	padding: 0.8rem 1.3rem;
	height: 3rem;
}

@media(max-width: 900px) {

	#masthead .button,
	#masthead .menu-menu-1-container {
		display: none;
	}
}

/* Menu Search Wrappers */
.header-search,
.mobile-menu-search {
	position: relative;
	display: flex;
	align-items: center;
}

.mobile-menu-search form,
.mobile-menu-search input[type="search"] {
	width: 100% !important;
}

.header-search form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.header-actions,
.header-search,
.search-form {
	overflow-anchor: none;
}

/* The Search Input */
.header-search input[type="search"],
.mobile-menu-search input[type="search"] {
	background-color: var(--colour-mi-light-grey);
	border: 2px solid transparent;
	border-radius: 9999px;
	padding: 0.6rem 1rem 0.6rem 2.75rem;
	color: var(--colour-mi-black);
	outline: none;
	width: 15rem;
	transition: var(--transition);
}

@media(max-width: 900px) {
	.header-search {
		display: none;
	}
}

/* Hover & Focus States */
.header-search input[type="search"]:focus,
.mobile-menu-search input[type="search"]:focus {
	background-color: var(--colour-mi-white);
	border-color: var(--colour-mi-border-light);
}

.header-search input[type="search"]::placeholder,
.mobile-menu-search input[type="search"]::placeholder {
	color: var(--colour-mi-placeholder);
}

.header-search button[type="submit"],
.header-search input[type="submit"],
.mobile-menu-search button[type="submit"],
.mobile-menu-search input[type="submit"] {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--colour-mi-grey);
	z-index: 2;
}


#colophon .logo {
	min-width: 25vw;
}

#colophon .logo img {
	max-width: 15rem;
}

#colophon .social-links .icon {
	width: 3rem;
	height: 3rem;
}

#colophon .footer-menu ul {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

#colophon .footer-menu ul li:first-child {
	font-weight: 900;
	text-transform: uppercase;
}

#colophon .footer-menu ul li:first-child a {
	color: inherit;
}

#colophon .footer-menu a {
	text-decoration: none;
	color: var(--colour-mi-dark-grey);
	transition: var(--transition);
}

#colophon .footer-menu a:hover {
	color: var(--colour-mi-yellow) !important;
}


/* GLOBAL ELEMENTS */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.375rem 1rem;
	font-weight: 700;
	border-radius: 999rem;
	font-size: var(--font-small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: normal;
}

.chip svg {
	width: 1.25rem;
	height: 1.25rem;
}

.chip svg path {
	fill: inherit;
}

/* Select Chip Pill Styling */
.select-chip {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 0.188rem solid transparent;
	outline: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	color: var(--colour-mi-brown);
	font-size: 1rem;
	padding: 0.7rem 2.75rem 0.8rem 1.5rem;
	/* Extra right padding for the arrow */
	border-radius: 999rem;
	text-decoration: none;
	font-weight: 700;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
	transform: translateY(0);
	cursor: pointer;

	/* Background Arrow Icon */
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	background-size: 1.25rem 1.25rem;
}

/* Yellow Category Variant */
.select-chip-yellow {
	background-color: var(--colour-mi-yellow);
	/* Updated stroke to match --colour-mi-brown (%235c4033) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c4033' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Grey Product Variant */
.select-chip-grey {
	background-color: var(--colour-mi-bg-grey);
	color: var(--colour-mi-black);
	/* Updated stroke to match --colour-mi-black (%231a1a1a) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.select-chip:hover {
	opacity: 0.9;
}

.stretch-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.card:has(.stretch-link:hover) .text-link {
	color: var(--colour-mi-yellow);
}

.card:has(.stretch-link:hover) .text-link:not(.no-anim) svg {
	transform: translateX(0.25rem);
}

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 100%;
}

.no-link a {
	cursor: default;
	pointer-events: none;
}

.sidebar .sticky-col {
	position: sticky;
	top: 10rem;
}

table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid var(--colour-mi-border-light);
	margin-bottom: 1.5rem;
	text-align: left;
}

/* Header Row Styling */
table thead tr,
table th {
	background-color: var(--colour-mi-bg-grey);
	border-bottom: 1px solid var(--colour-mi-border-light);
	font-weight: 700;
}

/* Cell Padding & Borders */
table th,
table td {
	padding: 0.75rem 1rem;
	border: 1px solid var(--colour-mi-border-light);
	vertical-align: middle;
}

/* Product Archive */
@media(max-width: 900px) {
	#resources-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

@media(max-width: 600px) {
	#resources-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media(max-width: 600px) {
	.filter-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.filter-bar .select-chip {
		width: 100%;
	}
}





/* UNIQUE ELEMENTS */
.home #hero .chip {
	color: var(--colour-mi-green);
	background-color: var(--colour-mi-light-green);
}

.home #hero .chip svg {
	fill: var(--colour-mi-green);
}

/* Hide View All Products Button on Products page */
.page-id-26 #product-feed .hide-desktop {
	display: none;
}



/* SINGLE PAGE TEMPLATES
--------------------------------------------- */
/* Single Posts/Resources */
.single .post-content .content-body .grid-2 {
	grid-template-columns: 2fr 1fr;
}

.single .post-content .content-body .grid-2>* {
	min-width: 0;
}

.single .share-actions .button {
	padding: 0.5rem 1rem;
}


.single .resource-intro p:last-child {
	margin: 0;
}

/* ==========================================================================
   Resource Single Hero Styling
   ========================================================================== */
.resource-hero-card {
	display: flex;
	min-height: 420px;
	/* Default min-height on desktop */
}

/* Ensure background image stays absolute behind content */
.resource-hero .bg-img {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.resource-hero .resource-hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Gradient Overlay for Legibility */
.resource-hero .bg-img::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg,
			rgba(0, 0, 0, 0.1) 0%,
			rgba(0, 0, 0, 0.4) 40%,
			rgba(0, 0, 0, 0.85) 100%);
}

.resource-hero .resource-hero-content {
	width: 100%;
	margin-top: auto;
	/* Push content to bottom */
}

.case-study-highlights li svg {
	margin-top: 0.25rem;
}

/* Mobile & Tablet Specific Responsive Fixes */
@media (max-width: 900px) {
	.resource-hero-card {
		aspect-ratio: auto;
	}

	.resource-hero .resource-hero-content {
		padding: 1.5rem 1.25rem !important;
	}

	.resource-hero .hero-title {
		font-size: 1.5rem;
		/* ~24px for balanced scaling on smaller screens */
		line-height: 1.25;
	}

	.single .post-content .content-body .grid-2 {
		grid-template-columns: repeat(1, 1fr);
	}
}

@media (max-width: 480px) {
	.resource-hero-card {
		min-height: 20rem;
	}

	.resource-hero .hero-title {
		font-size: 1.35rem;
	}
}

/* Search Results Page */
.mi-search {
	position: relative;
	display: flex;
	align-items: center;
	transition: var(--transition);
}

.mi-search:has(form input[type="search"]:focus) {
	box-shadow: var(--box-shadow);
}

.mi-search form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

/* The Search Input */
.mi-search input[type="search"] {
	width: 100%;
	height: 3.5rem;
	background-color: var(--colour-mi-light-grey);
	border: 2px solid transparent;
	border-radius: 9999px;
	padding: 0.6rem 1rem 0.6rem 2.75rem;
	color: var(--colour-mi-black);
	outline: none;
	transition: var(--transition);
}

/* Hover & Focus States */
.mi-search input[type="search"]:focus {
	background-color: var(--colour-mi-white);
	border-color: var(--colour-mi-border-light);
}

.mi-search input[type="search"]::placeholder {
	color: var(--colour-mi-placeholder);
}

.mi-search button[type="submit"],
.mi-search input[type="submit"] {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--colour-mi-grey);
	z-index: 2;
}

/*--------------------------------------------------------------
# Animations on Scroll (Refined & Editorial)
--------------------------------------------------------------*/
:root {
	--ease-editorial: cubic-bezier(0.215, 0.61, 0.355, 1);
	--anim-duration: 0.95s;
}

.animate-in {
	opacity: 0;
	transform: translate3d(0, 14px, 0);
	transition: opacity var(--anim-duration) var(--ease-editorial),
		transform var(--anim-duration) var(--ease-editorial);
	will-change: opacity, transform;
}

.animate-in.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

/* Direction and styling modifiers */
.animate-in.fade {
	transform: none;
}

.animate-in.slide-left {
	transform: translate3d(-16px, 0, 0);
}

.animate-in.slide-right {
	transform: translate3d(16px, 0, 0);
}

/* Combined subtle scale + subtle lift for cards and images */
.animate-in.zoom {
	transform: scale3d(0.975, 0.975, 1) translate3d(0, 8px, 0);
}

.animate-in.slide-left.is-visible,
.animate-in.slide-right.is-visible,
.animate-in.zoom.is-visible {
	transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Stagger delay utility classes */
.animate-in.delay-100 {
	transition-delay: 0.08s;
}

.animate-in.delay-200 {
	transition-delay: 0.16s;
}

.animate-in.delay-300 {
	transition-delay: 0.24s;
}

.animate-in.delay-400 {
	transition-delay: 0.32s;
}

.animate-in.delay-500 {
	transition-delay: 0.40s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.animate-in {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}