/**************************************
Intranet Toggle Columns
**************************************/

.intranet-toggle-columns {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	flex-wrap: wrap;
	flex-direction: row;
	@media screen and (min-width: $bp-tablet) {
		margin-top: 30px;
	}
}
.intranet-toggle-column {
	width: 100%;
	@media screen and (min-width: $bp-laptop) {
		width: 49%;
	}
}

/**************************************
Intranet Toggle Nav
**************************************/

.intranet-toggle-nav-container {
	position: relative;
	height: 35px;
}
.intranet-toggle-nav {
	display: none;
	background-color: $color-accent;
	position: absolute;
	top: 35px;
	z-index: 2;
	width: 100%;
	@media screen and (min-width: $bp-tablet) {
		display: flex;
		height: 35px;
		background-color: $color-background;
		align-items: center;
		font-size: 80%;
		position: static;
		li {
			height: 100%;
		}
	}
	@media screen and (min-width: $bp-laptop) {
		font-size: 80%
	}
	@media screen and (min-width: $bp-large) {
		font-size: 90%;
	}
}
.active-intranet-nav-toggle .intranet-toggle-nav {
	display: block;
}
.intranet-toggle-nav-item {
	padding: 20px;
	transition: all .3s;
	font-size: $font-micro;
	text-transform: uppercase;
	height: 100%;
	display: flex;
	align-items: center;
	text-align: center;
	transition: background .3s;
	a {
		color: white;
		display: block;
		width: 100%;
		text-align: left;
	}
	&:hover {
		background-color: darken($color-accent, 10%);
	}
	@media screen and (min-width: $bp-tablet) {
		padding: 0 8px;
		a {
			color: $color-primary;
			width: auto;
		}
		&:hover {
			background-color: lighten($color-background, 5%);
		}
	}
}
.selected-intranet-nav-toggle {
	background-color: darken($color-accent, 10%);
	a {
		color: white;
	}
	&:hover {
		background-color: darken($color-accent, 10%);
		a {
			color: white;
		}
	}
	@media screen and (min-width: $bp-tablet) {
		background-color: $color-accent;
		a {
			color: white !important;
		}
		&:hover {
			background-color: $color-accent;
			a {
				color: white !important;
			}
		}
	}
}


/***********************************************
Intranet Toggle Nav Icon
***********************************************/

.intranet-toggle__filter {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	.no-touch &:hover {
		.intranet-toggle__icon {
			background-color: $color-accent;
			svg path {
				fill: white;
			}
		}
		h3 {
			color: $color-accent;
		}
	}
	@media screen and (min-width: $bp-tablet) {
		display: none;
	}
}
.intranet-toggle__filter-label {
	color: $color-primary;
	font-size: $font-micro;
	text-transform: uppercase;
	margin-left: 10px;
	transition: color .3s;
}
.intranet-toggle__icon {
	position: relative;
	width: 35px;
	height: 35px;
	display: block;
	transition: background .3s;

	svg {
		max-width: 40%;
		max-height: 40%;
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		margin: auto;

		path {
			transition: fill .3s;
			fill: $color-accent;
		}
	}
	&:after {
		@extend %pseudos;
		bottom: -5px;
		height: 5px;
		width: 100%;
		background-color: $color-background;
		opacity: 0;
		transition: opacity .3s;
	}
	
}
.active-intranet-nav-toggle .intranet-toggle__icon {
	transform: rotate(180deg);
	background-color: $color-accent;
	svg path {
		fill: white;
	}
}
.js-toggle-open .intranet-toggle__icon {
	background-color: $color-background;

	svg {
		transform: rotate(180deg);
		path {
			fill: $color-primary;
		}
	}
	&:after {
		opacity: 1;
	}
	.no-touch &:hover {
		svg path {
			fill: white;
		}
	}
}
/**************************************
Intranet Toggle Container
**************************************/

.intranet-toggle-container {
	border: solid 1px #dedede;
	margin-top: 7px;
	padding:15px;
	margin-bottom: 15px;
}
.intranet-toggle-item {
	border-bottom: $border-default;
	margin-bottom: 15px;
	padding: 0 0 20px;
	&:last-of-type {
		border-bottom: 0;
		margin-bottom: 0;
		padding-bottom: 0;
	}
	a {
		color: $color-primary;
		transition: color .3s;
		&:hover {
			color: $color-accent;
		}
	}
	@media screen and (min-width: $bp-laptop) {
		display: flex;
		flex-wrap: wrap;
	}
}
a.intranet-toggle-item {
	span {
		transition: color .3s;
	}
	&:hover {
		span {
			color: $color-accent;
		}
	}
}

/**************************************
Intranet Media
**************************************/

.intranet-media-item {
	border-bottom: $border-default;
	margin-bottom: 15px;
	padding: 0 0 15px;
	&:last-of-type {
		border-bottom: 0;
		margin-bottom: 0;
		padding-bottom: 0;
	}
}
.iframe-content {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;

	iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
}
.intranet-toggle-columns a:hover {
	color: $color-accent !important;
	.grey-text {
		color: $color-accent !important;
	}
}