/* {{{ */
:root {
	--bs-primary: #063934;
	--bs-primary-rgb: 6, 57, 52;
/* 	--bs-secondary: #BDD4BC; */
	--bs-secondary: #477A74;
/* 	--bs-secondary-rgb: 189, 212, 188; */
	--bs-secondary-rgb: 71, 122, 116;
	--bs-light: #ECF3EB;
	--bs-light-rgb: 236, 243, 235;

	--bs-primary-bg-subtle: 189, 212, 188;
	--bs-secondary-bg-rgb: 185, 148, 106;
	--bs-tertiary-bg-rgb: 201, 191, 92;

	--bs-gradient: linear-gradient(90deg, rgba(6, 57, 52, 0.64), rgba(0, 0, 0, 0) 75%);

	--bs-body-color: #414141;
}
/* }}} */

/* Typography {{{ */
:root {
	--bs-body-line-height: 1.4;
	--bs-font-sans-serif: 'museo-sans', sans-serif;
	--bs-link-color-rgb: 71, 122, 116;
	--bs-link-hover-color-rgb: 6, 57, 52;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "museo-sans", sans-serif;
	font-weight: 700;
	font-style: italic;
}

@font-face {
	font-family: 'Material Symbols Rounded';
	font-style: normal;
	font-weight: 100 700;
	src: url("../fonts/material-icons.var.woff2") format("woff2");
}

.material-symbols-rounded {
	font-family: 'Material Symbols Rounded';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	font-variation-settings:
		'FILL' 0,
		'wght' 400,
		'GRAD' 0,
		'opsz' 48;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-moz-font-feature-settings: 'liga';
	-moz-osx-font-smoothing: grayscale;
}


html { font-size: 16px }

.display-1 { font-size: calc(0.9375 + 3.75vw) }
@media (min-width: 1200px) {
	.display-1 { font-size: 4.2856rem }
}

.h3, h3 { font-size: calc(0.9375 + .42vw) }
@media (min-width: 1200px) {
	.h3, h3 { font-size: 1.3392rem }
}

.h4, h4 { font-size: calc(0.9375 + .332vw) }
@media (min-width: 1200px) {
	.h4, h4 { font-size: 1.2053rem }
}

.lead { font-size: calc(0.9375 + 0.9vw) }
@media (min-width: 1200px) {
	.lead { font-size: 1.741rem }
}

b, strong {
	font-weight: 600;
}

/* Links }}} */
a {
	text-underline-offset: .2rem;
}

.link-primary {
	color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)) !important;
}
.link-primary:focus,
.link-primary:hover {
	color: rgba(var(--bs-link-hover-color-rgb), var(--bs-link-opacity, 1)) !important;
}
/* {{{ */

/* }}} */

/* General container set up {{{ */
html {
	scroll-padding-top: 120px;
}

body {
	min-height: 100dvh;
}
/* }}} */

.text-bg-secondary { color: var(--bs-body-color) !important }

/* Buttons {{{ */
.btn {
	--bs-border-radius: 0.25rem;
}
.btn-lg {
	--bs-border-radius: 0.75rem;
}

.btn-primary {
	--bs-btn-bg: #477A74;
	--bs-btn-border-color: #477A74;
	--bs-btn-hover-border-color: #477A74;
	--bs-btn-hover-bg: #477A74;
	--bs-btn-active-bg: #063934;
	--bs-btn-active-border-color: #063934;
}
.btn-outline-primary {
	--bs-btn-color: #477A74;
	--bs-btn-border-color: #477A74;
	--bs-btn-hover-border-color: #477A74;
	--bs-btn-hover-bg: #477A74;
	--bs-btn-active-bg: #063934;
	--bs-btn-active-border-color: #063934;
}
/* }}} */

/* Site nav {{{ */
.navbar {
	--bs-navbar-brand-padding-x: 0;
	--bs-navbar-brand-padding-y: 0;
	--bs-navbar-nav-link-padding-x: 0.875rem;
	--bs-navbar-padding-y: 1.325rem;
}

.navbar-dark {
	--bs-navbar-color: rgba(255, 255, 255, 1);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
	text-decoration: underline;
	text-decoration-thickness: 4px;
	text-underline-offset: 1rem;
}
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
	color: var(--bs-nav-link-hover-color);
	text-decoration-color: var(--bs-nav-link-hover-color);
}

#site-nav {
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
#site-nav::after {
	background-color: var(--bs-primary);
	clip-path: url(#site-nav-curve);
	content: '';
	display: block;
	height: 133.7%;
	max-height: 9rem;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: -1;
}

#sitenav-links {
	max-height: calc(100dvh - 115px);
	overflow: auto;
}

@media (min-width: 992px) {
	#sitenav-links {
		overflow: visible;
	}
}

@media (max-width: 992px) {
	#site-nav .dropdown-menu {
		background-color: transparent !important;
		border: 0;
		margin-bottom: .5rem;
		margin-top: .5rem;
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
	}

	#site-nav .dropdown-item {
		--bs-dropdown-link-color: white;
		--bs-dropdown-link-hover-color: var(--bs-nav-link-hover-color);
		--bs-dropdown-link-hover-bg: transparent;
		padding-bottom: 0.4rem !important;
		padding-top: 0.4rem !important;
	}
}
/* }}} */

/* Site footer {{{ */
#site-footer {
	filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}
#site-footer::after {
	background-color: var(--bs-primary);
	bottom: calc(100% - 1px);
	clip-path: url(#site-footer-curve);
	content: '';
	display: block;
	height: 40px;
	position: absolute;
	width: 100%;
	z-index: -1;
}
/* }}} */

/* Nav tabs {{{ */
.nav-tabs {
	--bs-nav-link-color: #414141;
	--bs-nav-link-hover-color: #414141;
	--bs-nav-tabs-link-active-color: #477A74;
	--bs-nav-tabs-link-hover-border-color: transparent;
	--bs-nav-tabs-link-active-border-color: transparent;
}

.nav-tabs .nav-link {
	border-radius: 0;
	font-weight: 400;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
	font-weight: 600;
	position: relative;
}

.nav-tabs .nav-item.show .nav-link::after,
.nav-tabs .nav-link.active::after {
	border-bottom: 5px solid #477A74;
	bottom: -3px;
	content: "";
	display: block;
	left: 0;
	position: absolute;
	width: 100%;
}
/* }}} */

/* Accordion {{{ */
.accordion {
	--bs-accordion-active-color: #477A74;
	--bs-accordion-active-bg: white;
	--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23477A74'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.accordion-button::after {
	margin-left: 0;
	margin-right: 15px;
}

.accordion-body {
	padding-left: 55px;
}
/* }}} */

/* Carousel {{{ */
.carousel#events {}

#events .carousel-control-prev,
#events .carousel-control-next {
	background-color: var(--bs-primary);
	border-radius: 99px;
	height: 30px;
	width: 30px;
}
#events .carousel-control-prev {
	bottom: auto;
	left:  auto;
	right: 38px;
}
#events .carousel-control-next {
	bottom: auto;
	left:  auto;
	right: 0;
}

#events .carousel-control-next-icon,
#events .carousel-control-prev-icon {
	height: 1rem;
	width: 1rem;
}
/* }}} */

/* Modals {{{ */
.modal-backdrop {
	--bs-backdrop-opacity: .9;
}
/* }}} */

/* Cards {{{ */
a .card.text-bg-light {
	transition: background-color 200ms ease-in-out;
}

a .card.text-bg-light:hover {
	background-color: rgba(var(--bs-primary-bg-subtle), var(--bs-bg-opacity, 1)) !important;;
}
/* }}} */

/* Dropdown {{{ */
.dropdown-menu {
	--bs-dropdown-link-color: #063934;
	--bs-dropdown-link-hover-color: #063934;
	--bs-dropdown-link-hover-bg: #BDD4BC;
	--bs-dropdown-link-active-bg: #477A74;
}

/* Sitenav specific (hover to show) */
#site-nav .dropdown > .nav-link + .dropdown-menu {
	opacity: 0;
	visibility: hidden;
}
#site-nav .dropdown > .nav-link:hover + .dropdown-menu,
#site-nav .dropdown > .nav-link + .dropdown-menu:hover {
	opacity: 1;
	visibility: visible;
}
/* }}} */

/* Custom map/callout marker points */
.marker {
	background-color: var(--bs-secondary);
	border: 0;
	height: 25px;
	position: absolute;
	transform: translate(-50%, -50%);
	width: 25px;
	visibility: hidden;
}
/* Visble marker pin */
.marker::before {
	background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 192 512" xmlns="http://www.w3.org/2000/svg"><path fill="white" d="m48 80a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm-48 144a32 32 0 0 1 32-32h64a32 32 0 0 1 32 32v224h32a32 32 0 1 1 0 64h-128a32 32 0 1 1 0-64h32v-192h-32a32 32 0 0 1 -32-32z"/></svg>'), var(--bs-secondary);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
	border: 2px solid white;
	outline: 2px solid var(--bs-secondary);
	z-index: 1;
}
/* 'Pulse' effect */
.marker::after {
	animation: marker-pulse 3s infinite ease-out;
	background-color: var(--bs-secondary);
	z-index: -1;
}
.marker::before,
.marker::after {
	border-radius: 99px;
	content: "";
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	visibility: visible;
	width: 100%;
}

@keyframes marker-pulse {
	0%, 10% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: .02;
		transform: scale(2.5);
	}
}
/* }}} */
