/* GENERAL */

html {
	line-height: 1.5em;
	font-size: 14px;
	hyphens: auto;
}

/* DEBUGGING */

/*
br {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: red;
  content: " ";
}
*/
/*
@media all and (min-width:40em) {
	html {
		font-size: 13px;
		line-height: 1.5em;
	}
}

@media all and (min-width:60em) {
	html {
		font-size: 15px;
		line-height: 1.5em;
	}
}
*/

div.section div.row {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media all and (min-width:60em) {
	div.section div.row {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media all and (min-width:60rem) and (max-width:80rem) {
	html {
		font-size: 12px;
	}
}

@media all and (min-width:80em) {
	/*
	html {
		font-size: 13px;
		line-height: 1.5em;
	}
	*/
	div.section div.row {
		padding-left: 8%;
		padding-right: 8%;
	}
}


@media all and (min-width:100em) {
	html {
		font-size: 16px;
	}
}

h2, h3, h4 {
	margin-bottom: 1.5rem;
}


h1 {
	margin: 3rem 0 1.5rem;
	font-size: 1.7em;
	line-height: 3rem;
	letter-spacing: -.02em;
}

h2 {
	margin: 3rem 0 1.5rem;
	font-size: 1.7em;
	line-height: 3rem;
	letter-spacing: -.02em;
}

@media all and (min-width: 60rem) {
	h1 {
		font-size: 2.3em;
	}

	h2 {
		font-size: 2.3em;
	}
}

h3 {
	font-size: 1.25em;
	line-height: 1.5rem

}

h4 {
	/* margin: 2em 0 1em; */
	font-size: 1.25em;
}

h5 {
	/* margin: 2em 0 1em; */
	font-size: 1em;
}

h6 {
	/* margin: 2em 0 1em; */
	font-size: 1em;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

p {
	margin-bottom: 1.5em;
}


div.column > *:last-child,
div.column > div.text:last-child > *:last-child
{
	margin-bottom: 0;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul {
	padding-left: 2em;
}

@media all and (min-width: 60rem) {
	.right {
		text-align: right;
	}
}

.content .row {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

@media all and (min-width: 40rem) {
	.content .row {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
}

@media all and (min-width: 60rem) {
	.content .row {
		padding-top: 4.5rem;
		padding-bottom: 4.5rem;
	}
	.footer .row {
		padding-top: 3rem;
		padding-bottom: 1.5rem;
	}
}

.row.fill {
	/* margin: -1rem; */
	/* padding: 2rem; */
}

/* HEADER */

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

.section.header input.menu {
	display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  top: -100rem;
}

.section.header input.menu:before {
	content: "";
	position: relative;
  width: 100%;
  height: 100%;
  display: block;
  background: url(/core/template/icons/menu.svg);
	background-size: contain;
  top: 100rem;
}

.section.header input.menu:checked:before {
  background-image: url(/core/template/icons/close.svg);
}

@media all and (min-width: 40rem) {
	.section.header input.menu {
		display: none;
	}
}


@media all and (max-width: 40rem) {
	.section.header .row {
		display: flex;
	}
}

@media all and (max-width: 60rem) {
	.section.header .column.span-4 {
	  grid-column: span 2 / auto;
	}
	.section.header .column.span-6 {
	  grid-column: span 3 / auto;
	}
}

.header {
	font-size: 0.9em;
}

.header p, .header h4{
	margin: 0;
}

.header .logo {
	max-height: 2rem;
  object-fit: contain;
  max-width: 100%;
  object-position: left;
	display: block;
}

@media all and (min-width: 60rem) {
	.header .logo {
		max-height: 3rem;
	}
}

@media all and (min-width: 80rem) {
	.header .logo {
		max-height: 4rem;
	}
	.header.is_fixed .logo {
		transition: all .25s ease-in;
		max-height: 3rem;
	}
}

.header .level1_container{
	display: flex;
	justify-content: space-between;
	font-size: 1.25rem;
	font-weight: bold;
  letter-spacing: -0.03em;
}

@media all and (max-width: 60rem) {

	html .header .row{
		display: flex;
		white-space: nowrap;
	}

	.header .level1_container span.level1{
		display: block;
		padding: 0 0 0 1.5rem;
	}

}

@media all and (max-width: 40rem) {

	html .header .level1_container{
		position: fixed;
    left: 100%;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color2);
    z-index: -1;
		flex-direction: column;
		text-align: center;
		justify-content: center;
		transition: left .5s ease;
	}

	.section.header input.menu:checked + .level1_container{
	  left: 0%;
	}

	.header .level1_container span.level1{
		display: block;
		padding: 1.5rem;
	}
}

.header .row {
  align-items: center;
	/* transition: padding .0s ease; */
}

.header.fixed {
	box-shadow: 0 -3rem 3rem hsla(0,0%,0%,.15);
	transition: box-shadow .5s ease-in;
}

.header.is_fixed {
	box-shadow: 0 0 3rem hsla(0,0%,0%,.15);
}

.header.is_fixed .row {
	/* transition: padding .5s ease-out; */
	/* padding-top: 0; */
	/* padding-bottom: 0; */
}

/* FOOTER */

.section.footer {
	font-size: 0.8em;
	background: none;
}

.footer .menu a{
	display: block;
}

.footer p{
	margin-top: 0;
}

/* CONTENT */

.row[style^="background-image"] {
	background-size: cover;
	background-position: center;
}

.bottom {
  position: absolute;
  bottom: 1rem;
  margin-bottom: 0;
}

img.bottom {
	padding-left: inherit;
	padding-right: inherit;
  box-sizing: border-box;
  left: 0;
}

.bottom > *{
  margin-bottom: 0;
}

.small {
	font-size: .85em;
	line-height: 1.5em;
}

.hero,
.hero_2 {
	background-size: cover;
}

.hero .column.span-12 {
	position: static;
}

.hero .column.span-12 img {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
  width: 100%;
	object-fit: cover;
	filter: grayscale(1);
	mix-blend-mode: overlay;
	opacity: 0;
	display: block;

}

.hero .column.span-12 img:nth-of-type(1) {
	/* display: block;  */
}

.hero_2 .column:first-child > * {
	margin: 0 -2.5rem -2.5rem;
  height: 60vw;
  position: relative;
  top: -2.5rem;
	object-fit: cover;
}

.hero_2 .column:first-child > img {
	width: calc(100% + 5rem);
}

@media all and (min-width:60rem) {

	.hero_2 .column:first-child {
		position: static;
	}

	.hero_2 .column:first-child > * {
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;
		width: 50%;
    object-fit: cover;
		margin: inherit;
	}

	.hero_2 .column:first-child > img {
		width: 50%;
	}

}

.featured_1 img {
	width: 8rem;
  height: 8rem;
  object-fit: cover;
  display: block;
	transition: transform .25s ease-in;
}

.featured_1 a:hover img {
	transform: scale(1.1);
}

.row.featured_1 img.icon,
.row.featured_2 img.icon {
  object-fit: contain;
}

@media all and (min-width:60rem) {
	.featured_1 > .column {
		text-align: center;
	}

	.featured_1 img {
	  margin: auto;
	}
}

.featured_1 > .column.span-3 p{
	font-size: .85em;
}


@media all and (min-width:30rem) {

	.featured_2 h2,
	.featured_3 h2,
	.featured_4 h2 {
		text-align: center;
	}
}

@media all and (min-width:60rem) {

	.featured_3 .column > img ,
	.featured_4 .column > img {
		object-fit: cover;
	  height: 100%;
		max-height: 100%;
	}
}

@media all and (min-width:40rem) and (max-width:60rem) {

	.row.featured_5 .column.span-6 {
		grid-column: span 3 / auto;
	}
	.row.featured_4 .column.span-2 {
		grid-column: span 3 / auto;
	}
}

.row.featured_2 img {
    height: 40vw;
    object-fit: cover;
}

@media all and (min-width:40rem) {

	.row.featured_2 img {
	    height: 25vw;
	}
}

@media all and (min-width:60rem) {

	.row.featured_2 img {
	    height: 12vw;
	}
}




.row.divider {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

.row.divider *{
	color: inherit;
}

@media all and (min-width: 60rem) {
	.row.divider {
		text-align: center;
	}
}



.footer .icon {
	display: block;
	height: 2rem;
	width: 2rem;
	margin-left: auto;
	background-size: contain;
}

.footer .icon.mail {
	background-image: url("/core/template/icons/mail.svg?color=white");
}

.footer .icon.phone {
	background-image: url("/core/template/icons/phone.svg?color=white");
}

.footer .icon.location {
	background-image: url("/core/template/icons/location.svg?color=white");
}

.center {
	text-align: center;
}

div.button a {
	text-align: center;
	display: block;
	transition: background-color .5s ease;
	line-height: 3rem;
	border-radius: .375rem;
	font-weight: bold;
	padding-right: 1em;
	padding-left: 1em;
}

div.button a:hover {
	text-decoration: none;
}

div.map iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* DATA TABLES */

	table.data {
		width: 100%;
		border-collapse: collapse;
	}

	table.data th{
		text-align: left;

	}

	table.data th .sort{
		height: .75rem;
		margin-left: 1rem;
	}

	table.data td {
		border-top-style: solid;
		border-top-width: 2px;
		vertical-align: top;
		font-size: .9rem;
	}

	table.data td.nowrap {
		white-space: nowrap;
	}

	table.data th.numeric {
		text-align: right;
	}

	table.data td.numeric {
		font-variant-numeric: tabular-nums;
		text-align: right;
	}

	table.data input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.5rem;
    font-family: inherit;
    font-size: .75rem;
    max-width: 100%;
	}

	@media all and (max-width: 30rem) {
		table.data tr{
	    display: grid;
		}

		table.data td,
		table.data th
		{
	    display: block;
		}
	}

/* PAGINATION */

	span.button {
		all: unset;
	}

	div.pagination {
		padding: 1rem 0;
		text-align: center;
	}

	div.pagination > *{
		border-radius: .375rem;
		padding: 0 1rem;
	}

	div.pagination.flex.fill > *{
		flex: none;
	}

	div.pagination img{
		vertical-align: middle;
	}


/* FORMS */

form:not(.data) {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: .5rem;
}

.column.span-4 form {
	grid-template-columns: repeat(2, 1fr);
}

button {
	background-color: var(--color1);
	color: var(--color2);
	border-radius: .375rem;
	border: none;
	line-height: 1.5rem;
	cursor: pointer;
	transition: background-color .25s ease-in;
}

button:hover {
	background-color: var(--color3);
}

button img {
	vertical-align: middle;
}

input, select {
	grid-column: span 1 / auto;
}

textarea {
	grid-column: span 2 / auto;
}

input, textarea {
	font-family: inherit;
	padding: .5rem 1rem;
	width: 100%;
	box-sizing: border-box;
}

