/*
 * Aurora: Cassiopeia child template styles.
 * Reproduces the old T3 "Aurora" template: dark top bar, navy header with logo and menu
 * on one row, light grey page, Rubik type, dark footer.
 */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap");

:root {
	--aurora-topbar-bg: #182024;
	--aurora-header-bg: #1a2139;
	--aurora-page-bg: #f4f5f6;
	--aurora-text: #666666;
	--aurora-heading: #182024;
	--aurora-slate: #515573;
	--aurora-footer-bg: #182024;

	--cassiopeia-color-primary: var(--aurora-header-bg);
	--cassiopeia-color-hover: var(--aurora-header-bg);
	--cassiopeia-color-link: var(--aurora-slate);
	--cassiopeia-font-family-body: "Rubik", sans-serif;
	--cassiopeia-font-family-headings: "Rubik", sans-serif;
	--body-font-family: "Rubik", sans-serif;
	--body-font-size: 0.9375rem;
	--body-line-height: 1.6;
	--body-color: var(--aurora-text);
	--body-color-rgb: 102, 102, 102;
	--body-bg: var(--aurora-page-bg);
	--body-bg-rgb: 244, 245, 246;
	--link-color: var(--aurora-slate);
	--link-color-rgb: 81, 85, 115;
	--link-hover-color: var(--aurora-heading);
	--link-hover-color-rgb: 24, 32, 36;
}

body {
	background-color: var(--aurora-page-bg);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--aurora-heading);
	font-weight: 500;
}

.btn-primary {
	--btn-bg: var(--aurora-slate);
	--btn-border-color: transparent;
	--btn-hover-bg: var(--aurora-heading);
	--btn-hover-border-color: transparent;
}

/* Top bar: social links and search, right-aligned */
.container-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	min-height: 40px;
	padding: 0 max(1rem, calc((100% - 79.5rem) / 2));
	background-color: var(--aurora-topbar-bg);
	color: #999999;
	font-size: 0.8125rem;
}

.container-topbar .moduletable {
	margin: 0;
}

.container-topbar .mod-finder {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.container-topbar .mod-finder label {
	margin: 0;
	color: #999999;
}

.container-topbar .mod-finder input {
	height: 28px;
	padding: 0 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 0.8125rem;
}

.social-list {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-list a {
	display: inline-block;
	width: 32px;
	line-height: 32px;
	text-align: center;
	color: #999999;
	text-decoration: none;
}

.social-list a:hover,
.social-list a:focus {
	color: #ffffff;
}

/* Header: navy, logo left, menu right on wide screens */
.container-header {
	background-color: var(--aurora-header-bg);
	background-image: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.container-header .navbar-brand img {
	height: 50px;
	width: auto;
}

@media (width >= 992px) {
	.container-header {
		display: grid;
		grid-template-columns: minmax(1rem, 1fr) auto minmax(0, 72rem) minmax(1rem, 1fr);
		column-gap: 1.5rem;
		align-items: center;
	}

	.container-header > .container-topbar,
	.container-header > .container-below-top {
		grid-column: 1 / -1;
	}

	.container-header > .grid-child {
		max-width: none;
		padding-top: 0.375rem;
		padding-bottom: 0.375rem;
	}

	.container-header .navbar-brand {
		padding-top: 0;
		padding-bottom: 0;
	}

	.container-header > .grid-child:not(.container-nav):not(.container-below-top) {
		grid-column: 2;
	}

	.container-header > .container-nav {
		grid-column: 3;
		justify-content: flex-end;
		padding-bottom: 0.375rem;
	}
}

/* Main menu: small white uppercase links that wrap instead of overflowing */
.container-header .container-nav,
.container-header .container-nav nav {
	min-width: 0;
}

@media (width >= 992px) {
	.container-header .mod-menu {
		flex-wrap: nowrap;
		justify-content: flex-end;
	}

	/* Cassiopeia spaces top-level items with 1em padding plus 1.55em margin at 1.1rem */
	.container-header .metismenu.mod-menu > .metismenu-item {
		padding: 0;
	}

	.container-header .mod-menu > li + li {
		margin-left: 2px;
	}
}

.container-header .mod-menu > li {
	font-size: 13px;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu > li > button {
	color: #ffffff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	padding: 0 0.6rem;
	line-height: 32px;
	white-space: nowrap;
}

.container-header .mod-menu > li > button.mm-toggler {
	padding: 0 0.25rem;
	background: none;
	border: 0;
}

.container-header .mod-menu > li > button.mm-toggler-nolink {
	padding: 0 0.6rem;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.active > span {
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.container-header .mod-menu > li::after {
	display: none;
}

.container-header .mod-menu .mod-menu__sub {
	font-size: 0.8125rem;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* User Menu (Sign In / Logout) at the right end of the header */
.container-header .container-search {
	margin: 0;
}

.container-header .container-search .mod-menu {
	display: flex;
	flex-direction: row;
	margin: 0;
	padding: 0;
	list-style: none;
}

.container-header .container-search .mod-menu > li {
	padding: 0;
	margin: 0;
}

.container-header .container-search .mod-menu a:not(.jmodedit),
.container-header .container-search .mod-menu a.btn:not(.jmodedit) {
	display: inline-block;
	background: #84df73;
	padding: 0 1rem;
	border: 0;
	border-radius: 4px;
	color: #ffffff;
	font-size: 13px;
	line-height: 30px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	white-space: nowrap;
}

.container-header .container-search .mod-menu a:not(.jmodedit):hover,
.container-header .container-search .mod-menu a:not(.jmodedit):focus {
	background-color: #047f4e;
	color: #ffffff;
}

/* Front-end editing (signed-in admins): Joomla's edit button is a 40px box over the module's top right
   corner, which hides menu items and the Sign In button in the header. Make it a small badge on the
   module's corner instead. */
.container-topbar .moduletable,
.container-header .mod-menu {
	position: relative;
}

.container-header .btn.jmodedit {
	top: -10px;
	right: -10px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--aurora-slate);
	color: #ffffff;
	font-size: 10px;
	line-height: 20px;
	text-align: center;
	opacity: 0.6;
}

.container-header .btn.jmodedit:hover,
.container-header .btn.jmodedit:focus {
	opacity: 1;
}

@media (width >= 992px) {
	.container-header .container-nav {
		flex-wrap: nowrap;
		align-items: center;
		gap: 1rem;
	}

	/* Sign In / Logout sits at the far right edge of the header, outside the menu's column */
	.container-header {
		position: relative;
	}

	.container-header .container-search {
		position: absolute;
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
	}

	/* The 40px top bar is part of the header: centre on the logo/menu row below it */
	.container-header:has(> .container-topbar) .container-search {
		top: calc(50% + 20px);
	}
}

/* Masthead on inner pages: aurora photo, grey multiply tint, section title (html/mod_custom/masthead.php) */
.aurora-masthead {
	background-color: #d7d9db;
	background-image: url("../../../../../images/aurora_image.jpg");
	background-position: center center;
	background-size: cover;
	background-blend-mode: multiply;
}

.aurora-masthead__inner {
	max-width: 79.5rem;
	margin: 0 auto;
	padding: 3.5rem 1rem 6rem;
}

.aurora-masthead__section {
	margin: 0 0 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.aurora-masthead__title {
	margin: 0;
	color: #ffffff;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.2;
}

/* The masthead shows the article or plan title, so the page's own heading would repeat it */
.com-content-article > .page-header,
#osm-plan-item > .osm-item-heading-box {
	display: none;
}

@media (width < 768px) {
	.aurora-masthead__inner {
		padding: 4rem 0.75rem;
	}

	.aurora-masthead__title {
		font-size: 24px;
	}
}

/* Home page: slider and intro only; the old template skipped the article area here */
body.itemid-101 .container-component,
body.itemid-101 .container-sidebar-right,
body.itemid-101 .container-sidebar-left {
	display: none;
}

.container-top-a {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* Inner pages */
.site-grid > .container-component {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* Footer: dark band, small type */
.footer {
	background-color: var(--aurora-footer-bg);
	background-image: none;
	color: #ffffff;
	font-size: 0.75rem;
}

.footer .grid-child {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.footer a:not(.btn) {
	color: #ffffff;
}

.footer .social-list {
	margin-bottom: 1rem;
}
