body.home-page {
	background: none;
}

body.home-page p {
	margin: 0;
}

/* Intro Banner
--------------------------------------------- */
body.home-page p.intro-first {
	font-size: 30px;
	line-height: 39px;
	margin-bottom: 20px;
}

.intro-banner-actions {
	display: flex;
	flex-direction: column;
	margin-top: 14px;
}

.intro-banner-register a {
	width: calc( 100% - var(--spacing-large) );
}

.intro-banner-login {
	display: flex;
	justify-content: space-around;
	margin-top: 24px;
}

@media screen and (max-width: 599px) {
	.intro-banner-login .cac-button.cac-button-secondary {
		background: transparent;
		border: none;
		font-size: var(--size-text);
		font-weight: normal;
		padding: 0;
		text-decoration: underline;
	}
}

@media screen and (min-width: 600px) {
	body.home-page p.intro-first {
		font-size: 50px;
		line-height: 60px;
		margin-bottom: 28px;
		max-width: 1200px;
	}

	.intro-banner {
		min-height: 370px;
	}
}

/* My Banner (logged-in users)
--------------------------------------------- */

.my-banner {
	padding: var(--spacing-small) 0 var(--spacing-med);
}

.my-banner .cac-container {
	display: flex;
	flex-direction: column;
}

.my-banner-snapshot-primary {
	display: flex;
	gap: 16px;
	margin-bottom: 19px;
}

.my-banner-snapshot-primary .avatar {
	flex: 0 0 120px;
	height: 120px;
	width: 120px;
}

.my-banner-snapshot-info h2 {
	margin-bottom: 7px;
	margin-top: 0;
}

.my-banner-snapshot-info {
	font-size: var(--size-text-desktop);
}

.my-banner-pronouns {
	font-weight: 700;
	margin-bottom: 7px;
}

.my-banner-action-links {
	font-size: var(--size-text-desktop);
}

.my-banner-action-links li {
	margin-bottom: 15px;
}

.my-banner-action-links li:last-child {
	margin-bottom: 0;
}

.edit-cv span {
	display: none;
}

.my-banner-items {
	margin-top: 48px;
}

.my-banner-items h2 {
	margin-bottom: var(--spacing-small);
	margin-top: 0;
}

.my-banner-items ul li {
	margin-bottom: 21px;
}

@media screen and (min-width: 600px) {
	.my-banner {
		padding-bottom: 64px;
	}

	.my-banner .cac-container {
		flex-direction: row;
		gap: var(--spacing-large);
	}

	.my-banner-snapshot {
		flex: 0 1 240px;
	}

	.my-banner-snapshot-primary {
		flex-direction: column;
	}

	.my-banner-snapshot-primary .avatar {
		flex: 0 0 auto;
		height: 140px;
		width: 140px;
	}

	.my-banner-item-types {
		display: flex;
		flex: 1 1 auto;
		gap: 40px;
	}

	.my-banner-items {
		flex: 0 0 50%;
		margin-top: 0;
	}
}

/* What can you do here?
--------------------------------------------- */

.what-can-you-do-here {
	margin-top: 38px;
}

.what-can-you-do-here h1 {
	margin-bottom: 20px;
}

.thing-to-do {
	background-position: top left;
	background-repeat: no-repeat;
	background-size: 56px auto;
	margin-bottom: 30px;
	padding-left: 70px;
}

.thing-to-do p {
	margin-bottom: 6px;
}

.thing-to-do.thing-to-do-group {
	background-image: url( '../img/icon-group.svg' );
}

.thing-to-do.thing-to-do-site {
	background-image: url( '../img/icon-site.svg' );
	background-position: top 6px left;
}

.thing-to-do.thing-to-do-group-site {
	background-image: url( '../img/icon-group-site-stacked.svg' );
}

@media screen and (min-width: 600px) {
	.what-can-you-do-here h1 {
		font-size: 32px;
		margin-bottom: 64px;
	}

	.things-to-do {
		display: flex;
		gap: 35px;
	}

	.thing-to-do {
		background-position: top center;
		background-size: auto 82px;
		padding-left: 0;
		padding-top: 120px;
	}

	.thing-to-do.thing-to-do-group {
		background-size: auto 68px;
	}

	.thing-to-do.thing-to-do-site {
		background-image: url( '../img/icon-site.svg' );
		background-position: top center;
	}

	.thing-to-do.thing-to-do-group-site {
		background-image: url( '../img/icon-group-site.svg' );
	}
}

/* Latest News
--------------------------------------------- */

.home .latest-news {
	background: #F5F5F5;
}

/* Shortcuts
--------------------------------------------- */

.shortcuts {
	font-size: 20px;
	margin-bottom: 2em;
	padding: 42px 0;
}

ul.item-list.shortcuts-list {
	margin-top: 24px;
}

.shortcuts-list li {
	margin-bottom: 19px;
}

body.home-page .shortcuts-gloss p {
	font-size: var(--size-tiny-text-desktop);
	margin-top: 4px;
}

.shortcuts-gloss p a {
	white-space: nowrap;
}

@media screen and (min-width: 600px) {

	.shortcuts h2 {
		margin: 0;
	}

	.shortcuts h1 {
		margin-bottom: 0;
	}

	.shortcuts .cac-container {
		align-items: center;
		display: flex;
		gap: 62px;
	}

	ul.item-list.shortcuts-list {
		display: flex;
		gap: var(--spacing-med);
		margin-top: 0;
	}

	.shortcuts-list li {
		margin-bottom: 0;
	}
}

/* Activity, Sites, Groups, Members
--------------------------------------------- */

body:not(.logged-in) section:not(.sites) .item-type-block-subsection .item-title h1,
body.logged-in section .item-type-block-subsection .item-title h1 {
	margin-top: 0;
}

section.activity .item-timestamp {
	margin-top: 5px;
}

section.activity .item-list a {
	font-weight: 700;
}

.item-type-block.sites .item-timestamp {
	display: none;
}

@media screen and (min-width: 600px) {
	.item-type-block.sites .item-timestamp {
		display: block;
	}
}

.item-type-block.members .item-type-block-heading-content {
	padding-bottom: 15px;
}

.item-type-block.members .item-type-block-heading h1 {
	line-height: inherit;
	padding: 36px 0 20px;
}

.item-type-block.members ul.item-list-sidescroll {
	display: grid;
	gap: 20px;
	grid-template-rows: auto auto;
	grid-auto-flow: column;
	grid-template-columns: repeat( 6, 80% );
}

.item-type-block.members ul.item-list-sidescroll li {
	width: auto;
}

body.logged-in section.members ul.item-list-sidescroll {
	grid-template-columns: 70% 70% 70%;
}

body:not(.logged-in) section.members .item-type-block-subsection .cac-container:after {
	display: none;
}

@media screen and (max-width: 599px) {
	section.latest-news div.cac-container,
	.item-type-block-subsection div.cac-container {
		margin-right: 0;
	}
}

@media screen and (min-width: 600px) {
	.item-type-block.members .item-type-block-heading h1 {
		margin-bottom: 10px;
	}

	.item-type-block-members-left {
		max-width: 788px;
	}

	.item-type-block.members .item-type-block-heading {
		margin-bottom: 0;
	}

	.item-type-block.members .item-type-block-heading-content {
		align-items: flex-start;
	}

	.item-type-block.members .item-type-block-more-link-desktop {
		margin-top: 36px;
	}

	.item-type-block.members .item-type-block-heading-content {
		padding-bottom: 25px;
	}

	.item-type-block.members ul.item-list-sidescroll {
		display: grid;
		gap: var(--spacing-small);
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto auto auto auto auto;
		grid-auto-flow: column;
	}

	.active-group-lists .cac-container {
		display: flex;
	}

	.active-group-lists .cac-container .item-type-block-subsection {
		flex: 0 0 50%;
	}

	.active-group-lists .item-type-block-subsection .cac-container:after {
		display: none;
	}

	.active-group-lists .item-type-block-subsection .item-list li  {
		flex: 0 0 90%;
	}

	.active-group-lists .item-type-block-subsection:last-child .item-list li {
		flex: 0 0 100%;
	}
}

@media screen and (min-width: 1024px) {
	.item-type-block.members ul.item-list-sidescroll {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-template-rows: auto auto auto;
	}

	body.logged-in section.members ul.item-list-sidescroll {
		grid-template-columns: 1fr 1fr 2em;
	}
}

/* Commons Support
--------------------------------------------- */

.commons-support {
	background: #ededed;
	padding: var(--spacing-small) 0;
}

body.home-page .commons-support p {
	line-height: 22.4px;
	margin-bottom: 21px;
}

@media screen and (min-width: 600px) {
	.commons-support h2 {
		margin-top: 0;
		white-space: nowrap;
	}

	.commons-support .cac-container {
		display: flex;
		gap: 48px;
	}
}

/* First login modal
--------------------------------------------- */

#cac-firstlogin-dialog .dialog-content {
	max-height: 90%;
	overflow: auto;
	width: 66vw;
}

#cac-firstlogin-dialog h1 {
	font-size: var(--size-h4-desktop);
	font-weight: 600;
	text-align: center;
}

#cac-firstlogin-dialog ul {
	flex-wrap: wrap;
	margin-top: 3em;
}

#cac-firstlogin-dialog ul li {
	flex: 1 0 calc(33% - 2em);
	padding-top: 90px;
	text-align: center;
}

#cac-firstlogin-dialog .cac-button {
	margin-top: 1.2em;
}

#cac-firstlogin-dialog .thing-to-do.thing-to-do-site {
	background-image: url( '../img/email-icons/search.png' );
}

.thing-to-do.thing-to-do-profile {
	background-image: url( '../img/email-icons/Profile.png' );
}

.thing-to-do.thing-to-do-create {
	background-image: url( '../img/email-icons/create.png' );
}

.thing-to-do.thing-to-do-cv {
	background-image: url( '../img/email-icons/CV.png' );
}

@media screen and (max-width: 1100px) {
	#cac-firstlogin-dialog .dialog-content {
		width: 90vw;
	}
}

@media screen and (max-width: 700px) {
	#cac-firstlogin-dialog ul {
		margin-top: 2em;
	}

	#cac-firstlogin-dialog ul li {
		flex: 1 0 calc(50% - 2em);
	}
}

@media screen and (max-width: 600px) {
	#cac-firstlogin-dialog ul li {
		background-position: center 10px;
		flex: 1;
		padding-left: 0;
	}
}