/* natUIve – Accordion */

@import 'natuive-setup';

.accordion {

	position: relative;
	padding: 0 .5em 0 1em;
	cursor: pointer;
	margin: 0;
	max-width: 100%;
	
}

	.accordion > label {
		
		text-align: left;
		text-align: start;
		width: 100%;
		cursor: pointer;
		-webkit-transition: padding 0.25s;
		-moz-transition: padding 0.25s;
		-ms-transition: padding 0.25s;
		-o-transition: padding 0.25s;
		transition: padding 0.25s;
		
	}

	.accordion > div { /* hidden accordion item */

	    overflow: hidden;
	    max-height: 0;
	    cursor: auto;
	    transition: max-height .4s ease-in-out;

	}

	.accordion:first-of-type > div {

	    padding-top: 0;

	}

	.accordion:first-of-type {

	    margin-bottom: 0;

	}

	.accordion > div > * {
		
		margin-top: 0;

	}

	.accordion input.trigger:checked ~ div {
		
		max-height: none;

	}
	
	.accordion.open input.trigger + * {
		
		display: inline-block;
		
	}
	
	.accordion > label {
		
		margin: 0;
		float: none;
		
	}

.accordion > label {
	
	line-height: $line-height * 2;
// 	line-height: calc(var(--line-height) * 2);
	min-height: $line-height-em * 2;
// 	min-height: calc(var(--line-height-em) * 2);
	
}
