.ymag-header__monogram-ribbon {
	background-color: #002e5d;
}

.ymag-header__monogram-wrapper {
	width: calc(100% - 64px);
	display: flex;
	align-items: center;
	margin: auto;
}

.ymag-header__monogram-link {
	display: flex;
}

.ymag-header__monogram {
	height: 16px;
	margin: 12px 0;
}

.ymag-header {
	background-color: var(--byu-white);
	box-shadow: 0 0 10px rgb(0 0 0 / 16%);
	z-index: 1;
}

.ymag-header__banner {
	width: calc(100% - 48px);
	max-width: 974px;
	display: grid;
	grid-template-columns: minmax(auto, 300px) min-content;
	grid-column-gap: 32px;
	justify-content: space-between;
	align-items: center;
	padding: 0 32px 0 16px;
	margin: 0 auto;
}

.ymag-header__masthead-link {
	display: flex;
}

.ymag-header__masthead {
	height: 65px;
}

.header-ribbon {
	background: var(--byu-royal);
	height: 145px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ribbon-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0 2.5rem;
}

.ribbon-text {
	color: white;
	font-family: var(--ringside-ssm);
	font-size: 1.5rem;
	text-align: center;
	width: 100%;
	margin: 5px 0;
}

.ribbon-text:hover {
	cursor: pointer;
	color: white;
}

.ribbon-button-text {
	color: white;
	font-family: var(--ringside-ssm);
	padding: 8px 14px;
	border: 1px solid white;
	border-radius: 7px;
	font-size: 80%;
	margin: 5px 0;
}

@media (min-width: 410px) {

	.ymag-header__masthead {
		height: 91px;
	}
}

.ymag-header__mobile-nav-button {
	padding: 0;
}

.ymag-header .tcon-menu__lines,
.ymag-header .tcon-menu__lines::before,
.ymag-header .tcon-menu__lines::after {
	height: 2px;
	background-color: var(--mag-grey);
}

.ymag-header__search-form--mobile {
	grid-column: 1 / 3;
	border-top: 1px solid #e3e3e3;
	border-bottom: 1px solid #e3e3e3;
	margin: 0 -32px -10px -16px;
	position: relative;
}

@media (max-width: 320px) {
	.ymag-header__search-form--mobile {
		margin: 0;
	}
	.ymag-header__banner {
		padding: 0;
		margin: 0;
		width: 100%;
	}
	.ymag-header__mobile-nav-button {
		margin-right: 8px;
	}
}

.ymag-header__search-form--desktop {
	display: none;
	width: 200px;
	position: relative;
}

.ymag-header__search-form {
	margin: 0;
}

.ymag-header__search-box {
	font-family: var(--ringside-ssm);
	line-height: 1.2;
	border: none;
	padding: 0.75em 4.5em 0.75em 2.25em;
	outline: none;
	margin: 0;
	width: 100%;
	box-sizing: border-box !important;
	-webkit-box-sizing: border-box; !important;
}

.ymag-header__search-box::placeholder {
	color: #b8b8b8;
}

.ymag-header__search-form--desktop .ymag-header__search-box {
	box-sizing: border-box;
	padding: 0.4em 2.5em 0.4em 1.25em;
	border: 1px solid #e3e3e3;
	border-radius: 20px;
	outline: none;
	margin: 0;
}

.ymag-header__search-submit {
	display: flex;
	align-items: center;
	position: absolute;
	top: 19px;
	right: 35px;
	padding: 0;
	background-color: var(--byu-white);
	border: none;
	outline: none;
	cursor: pointer;
}

.ymag-header__search-form--desktop .ymag-header__search-submit {
	top: 5px;
	right: 11px;
	cursor: pointer;
	outline: none;
}

.ymag-header__mobile-nav {
	height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: var(--byu-white);
	transition: height 250ms ease;
	margin-top: 10px;
}

.ymag-header__mobile-nav--active {
	height: unset;
	border-bottom: 1px solid #e3e3e3;
}

.ymag-header__desktop-nav {
	display: none;
	width: calc(100% - 4rem);
	justify-content: center;
	padding: 0 2rem;
	border-top: 1px solid #e3e3e3;
}

.ymag-header__desktop-nav-constraint {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 964px;
}

.ymag-header__nav-item {
	font-family: var(--ringside-ssm);
	color: var(--byu-navy);
	padding: 0.75em;
	transition: background 250ms ease;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.ymag-header__nav-item:hover {
	color: var(--byu-navy);
	cursor: pointer;
	background-color: var(--byu-grey-medium-light);
}

.ymag-header__desktop-nav-item {
	font-family: var(--ringside-ssm);
	color: var(--byu-navy);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	padding: 10px 0;
	transition: color .2s ease;
}

.ymag-header__desktop-nav-item:hover {
	cursor: pointer;
	color: var(--byu-royal);
}

@media (min-width: 500px) {
	.ymag-header__search-box {
		font-size: 20px;
	}
	.ribbon-content-wrapper {
		margin: 0 5rem;
	}

	.ribbon-text {
		font-size: 1.9rem;
	}

	.ribbon-button-text {
		font-size: 90%;
	}
}

@media (min-width: 640px) {

	.ymag-header__banner {
		grid-template-columns: auto min-content;
		justify-content: unset;
	}

	.ymag-header__masthead-link {
		justify-content: center;
	}

	.ymag-header__masthead {
		margin-left: 50px;
	}
}

@media (min-width: 800px) {
	.header-ribbon {
		height: 75px;
	}

	.ribbon-text {
		width: auto;
		margin-right: 20px;
	}
}

@media (min-width: 1024px) {

	.ymag-header__search-box {
		font-size: 13px;
	}

	.ymag-header__monogram-wrapper {
		max-width: 964px;
	}

	.ymag-header__banner {
		padding: 0;
	}

	.ymag-header__masthead-container {
		display: flex;
		margin: 0 auto;
	}

	.ymag-header__masthead-link {
		margin-left: 200px;
	}

	.ymag-header__masthead {
		margin-left: 0;
	}

	.ymag-header__mobile-nav-button-wrapper,
	.ymag-header__search-form--mobile,
	.ymag-header__mobile-nav {
		display: none;
	}

	.ymag-header__search-form--desktop {
		display: inherit;
		visibility: visible;
	}

	.ymag-header__desktop-nav {
		display: flex;
		visibility: visible;
	}

	.header-ribbon {
		height: 88px;
	}

	.ribbon-text {
		font-size: 2.5rem;
	}

	.ribbon-button-text {
		font-size: 100%;
	}
}

@media (min-width: 1300px) {

	.ymag-header__monogram-wrapper {
		max-width: 1170px;
	}

	.ymag-header__banner {
		max-width: 1170px;
	}

	.ymag-header__desktop-nav-constraint {
		max-width: 1170px;
	}
}

@media (min-width: 1800px) {

	.ymag-header__monogram-wrapper {
		max-width: 1400px;
	}

	.ymag-header__banner {
		max-width: 1400px;
	}

	.ymag-header__desktop-nav-constraint {
		max-width: 1400px;
	}
}
