/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MEDIA : 320px */
/* ////////////////////////////////////////////////////////////////////////// ACCORDION */

:root {
	--accordion-hrule-color: #eaeaea;
	--accordion-min-height: 10rem;
	--accordion-max-height: 24rem;
}

.accordion,
.accordion::before,
.accordion::after {
	box-sizing: border-box;
}

.accordion {
	display: grid;
	/*
	place-content: center;
	grid-template-columns: repeat(auto-fit, min(100%, 30rem));
	*/
	grid-template-columns: 100%;
	/* place-items: flex-end; / * !!! ALIGNS TOGGLE BUTTON TO THE RIGHT */
	background: var(--white);
	padding-top: 4.5rem;
}

.accordion:first-of-type {
	padding-top: 0rem;
}

/* Core styles/functionality */
.accordion-tab {
	position: relative;
	width: 100%;
}

.accordion-tab input {
	position: absolute;
	opacity: 0;
	z-index: -1;
}

.accordion-tab-content {
	max-height: 0rem;
	overflow: hidden;
	transition: all var(--duration) ease-in-out;
	/*
	transition: all var(--duration) cubic-bezier(0.76, 0, 0.24, 1);
	*/
}

.accordion-tab-content p {
	margin-top: -0.25rem;
	padding-bottom: .5rem;
	width: 85%;
	font-size: .875rem; /* 14pt */
	font-weight: 300; /* Regular > Light */
	line-height: normal; /* auto */
	letter-spacing: .07em; /* 7% */
	color: var(--black);
}

.accordion-tab-content p > a {
  position: relative;
  color: var(--grey4);
  text-decoration: none;
  transition: all var(--duration-short) ease-in-out;
}

.accordion-tab-content p > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: .06rem;
  bottom: 0rem;
  left: 0;
	background-color: var(--grey4);
	transform: scaleX(0);
	transition-property: transform, background-color;
	transition-duration: var(--duration-short);
	transition-timing-function: ease-in-out;
  transform-origin: bottom right;
}

.accordion-tab-content p > a:hover::before {
	background-color: var(--black);
  transform: scaleX(1);
  transform-origin: bottom left; /* IF OMITTED, TRANSITION RETURNS TO ORIGIN POINT */
}

.accordion-tab-content p > a:hover,
.accordion-tab-content p > a:focus {
  color: var(--black);
  /* text-decoration: none; */
}

.accordion-tab input:checked ~ .accordion-tab-content {
	/* OPEN CONTENT */
	/* SET MAX HEIGHT TO CAP CONTENT HEIGHT */
	/* max-height: 27rem; / * HARDCODED */
	max-height: var(--accordion-max-height); /* SET VIA JS */
}

/* Visual styles */
.accordion {
	/*
	color: var(--FPO-Gold);
	border: 2px solid;
	border-radius: 0.5rem;
	*/
	overflow: hidden;
}

.accordion-tab-label,
.accordion-tab-close {
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: space-between;
	font-size: .9375rem; /* 15pt */
	font-weight: 500; /* Medium */
	line-height: 1.125rem; /* 18pt */
	letter-spacing: .03em; /* 3% */
	text-transform: uppercase;
	color: var(--black);
	border-top: 1px solid var(--accordion-hrule-color);
	cursor: pointer;
	/*
	transition: color var(--duration-btn) cubic-bezier(0.76, 0, 0.24, 1);
	*/
	transition: color var(--duration-btn) ease-in-out;
}

.accordion-tab-label {
	justify-content: space-between;
	align-items: top;
	padding: 1.125rem .25rem 1.125rem 0rem;
}

.accordion-tab-label::after {
	content: "+";
	width: .6em;
	height: 100%;
	margin-left: 1.25rem; /* MAINTAINS SPACE BETWEEN LABEL TITLE AND ICON */

	/* ANIMATE ICON */
	transform: rotate(0deg) translateY(0rem);
	transition: all var(--duration-long);
}

.accordion-tab input:checked + .accordion-tab-label::after {
	content: "\2013"; /* "\276F" */

	/* ANIMATE ICON - */
	transform: rotate(180deg) translateY(-0.1rem);
}

.accordion-tab input:checked + .accordion-tab-label:hover::after {
	/* ANIMATE ICON - */
	transform: rotate(360deg) translateY(-0.1rem);
}

.accordion-tab-label:hover {
	color: var(--grey5);
}

.accordion-tab-close {
	justify-content: flex-end;
	padding: 0.5rem 1rem;
	font-size: 0.7rem;
}

.accordion-hrule-end {
	width: 100%;
	height: 1px;
	margin: 0rem;
	border-width: 0rem;
	color: var(--accordion-hrule-color);
	background-color: var(--accordion-hrule-color);
}

.accordion-tab input:not(:checked) + .accordion-tab-label:hover::after {
	/* ANIMATE ICON + */
	transform: rotate(180deg) translateY(-0.1rem);
	/*
	animation: icon_rotate var(--duration-btn) infinite;
	animation: icon_rotate 1s infinite;
	*/
}

/*
@keyframes icon_rotate {
	25% {
		color: var(--FPO-Pink);
		transform: rotate(90deg) translate(0rem);
	}
	75% {
		color: var(--FPO-Green);
		transform: rotate(90deg) translate(-0.125rem);
	}
}

@keyframes bounce {
	25% {
		transform: rotate(90deg) translate(.25rem);
	}
	75% {
		transform: rotate(90deg) translate(-0.25rem);
	}
}
*/

.accordion-section-header {
  display: flex;
  flex-direction: row;
	justify-content: space-between;
	align-items: center;
	/* position: absolute; / * POSITIONS SECTION TITLE & BUTTON ON SAME LINE */
  width: 100%;
  padding: 1rem 0rem 1.375rem 1.5rem;
  background-color: var(--grey2);
}

.accordion-section-title {
	position: absolute; /* POSITIONS SECTION TITLE & BUTTON ON SAME LINE */
	place-self: flex-start; /*  !!! ALIGNS SECTION TITLE TO THE LEFT */
	/*
	justify-content: flex-start;
	*/
	font-size: 1.25rem; /* 20pt */
	font-weight: 200; /* Light */
  line-height: auto; /* auto */
	letter-spacing: .11em; /* 11% */
  text-align: left;
  text-decoration: none;
	text-transform: uppercase;
	padding-top: .75rem; /* 12px */
  color: var(--black);
}

.accordion button {
	/* justify-self: right; / * !!! ALIGNS TOGGLE BUTTON TO THE RIGHT */
	place-self: end; /* !!! ALIGNS TOGGLE BUTTON TO THE RIGHT */
	position: relative; /* POSITIONS SECTION TITLE & BUTTON ON SAME LINE */
  font-size: .625rem; /* 12px */
  font-weight: 400; /* Regular */
  line-height: auto; /* auto */
  letter-spacing: .04em; /* 4% */
  text-align: right;
  text-decoration: none;
	text-transform: none;
  color: var(--black);
  padding: 1.25rem 0rem; /* 20px / 0px */
  transition: all var(--duration-short) ease-in-out;
  background-color: transparent;
  cursor: pointer;
  box-sizing: none;
}

button.btn-expand-collapse {
	color: var(--black);
  border: none;
}

button.btn-expand-collapse:hover,
button.btn-expand-collapse:focus {
	color: var(--grey5);
}

/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: MEDIA : WIDTH 350px */
@media screen and (min-width: 350px) {
	.accordion-section-title {
		font-size: 1.375rem; /* 22pt */
		padding-top: .625rem; /* 10px */
	}
}

/* ::::::::::::::::::::::::::::::::::::::::::::::::: MEDIA : WIDTH 480px + HEIGHT 600px */
@media screen and (min-width: 480px) and (min-height: 600px) {
	.accordion {
		padding-top: 6rem;
	}

	.accordion button {
		padding: 1.5rem 0rem; /* 30px / 0px */
	}

	.accordion-section-title {
		font-size: 1.75rem; /* 28pt */
		padding-top: .75rem; /* 12px */
	}

	.accordion-tab-label,
	.accordion-tab-close {
		font-size: 1.125rem; /* 18pt */
		line-height: 1.5rem; /* 24pt */
	}

	.accordion-tab-label {
		padding: 1.5rem .5rem 1.5rem 0rem;
	}

	.accordion-tab-content p {
		margin-top: -0.25rem;
		padding-bottom: .5rem;
		font-size: 1rem; /* 16pt */
		line-height: 1.5rem; /* 24pt */
	}

	.accordion-tab input:checked ~ .accordion-tab-content {
		/* OPEN CONTENT */
		max-height: 14rem; /* SET MAX HEIGHT TO CAP CONTENT HEIGHT */
	}
}

/* ::::::::::::::::::::::::::::::::::::::::::::::::: MEDIA : WIDTH 800px + HEIGHT 600px */
@media screen and (min-width: 800px) and (min-height: 600px) {
	.accordion {
		padding-top: 7rem;
	}

	.accordion button {
		padding: 1.5rem 0rem; /* 24px / 0px */
	}

	.accordion-section-title {
		font-size: 2rem; /* 32pt */
		padding-top: .625rem; /* 10px */
	}

	.accordion-tab-label,
	.accordion-tab-close {
		font-size: 1.375rem; /* 22pt */
		line-height: 1.75rem; /* 28pt */
	}

	.accordion-tab-label {
		padding: 1.75rem .625rem 1.75rem 0rem;
	}

	.accordion-tab-content p {
		margin-top: -0.375rem;
		padding-bottom: .75rem;
		font-size: 1rem; /* 16pt */
		line-height: 1.75rem; /* 28pt */
	}

	/* ANIMATE ICON - */
	.accordion-tab input:checked + .accordion-tab-label:hover::after {
		transform: rotate(360deg) translateY(-0.25rem);
	}

	/* ANIMATE ICON -/+ */
	.accordion-tab input:checked + .accordion-tab-label::after,
	.accordion-tab input:not(:checked) + .accordion-tab-label:hover::after {
		transform: rotate(180deg) translateY(-0.25rem);
	}
}

/* :::::::::::::::::::::::::::::::::::::::::::::::: MEDIA : WIDTH 1000px + HEIGHT 600px */
@media screen and (min-width: 1000px) and (min-height: 600px) {
	.accordion {
		padding-top: 10rem;
	}

	.accordion button {
		padding: 1.875rem 0rem; /* 30px / 0px */
	}

	.accordion-section-title {
		font-size: 2.375rem; /* 38px */
		padding-top: 1rem; /* 16px */
	}

	.accordion-tab-label,
	.accordion-tab-close {
		font-size: 1.6875rem; /* 27pt */
		line-height: 2rem; /* 32pt */
	}

	.accordion-tab-label {
		padding: 2rem .75rem 2rem 0rem;
	}

	.accordion-tab-content p {
		margin-top: -0.5rem;
		padding-bottom: 1rem;
		font-size: 1.125rem; /* 18pt */
		line-height: 2rem; /* 32pt */
	}
}

/*
.accordion-tab-label {
	background-color: var(--FPO-Blue);
}

.accordion-tab-content p {
	background-color: var(--FPO-Gold);
}
*/