/* =============================================================================

	Misc Components

============================================================================= */

.code-block {
	position: relative;
}

.code-block::before {
	content: "";
	background: url("https://www.notion.so/front-static/external/readme/images/peeking@2x.png?cache=busted")
		no-repeat center center;
	background-size: contain;
	width: 88px;
	height: 168px;
	position: absolute;
	left: -76px;
	top: 0;
}

@media (-webkit-max-device-pixel-ratio: 1.99) {
	.code-block::before {
		background: url("https://www.notion.so/front-static/external/readme/images/peeking.png?cache=busted")
			no-repeat center center;
		background-size: contain;
	}
}

@media (max-width: 768px) {
	.code-block {
		margin-left: 0;
	}

	.code-block::before {
		display: none;
	}
}

.illustrated-pin {
	position: relative;
}

.illustrated-pin:after {
	content: "";
	background: url("https://www.notion.so/front-static/external/readme/images/pin-3@2x.png?cache=busted")
		no-repeat center center;
	background-size: contain;
	position: absolute;
	right: 10px;
	top: -40px;
	width: 50px;
	height: 75px;
}

@media (-webkit-max-device-pixel-ratio: 1.99) {
	.illustrated-pin:after {
		background: url("https://www.notion.so/front-static/external/readme/images/pin-3.png?cache=busted")
			no-repeat center center;
		background-size: contain;
	}
}

/* =============================================================================

	Hero Section

============================================================================= */

.hero {
	display: flex;
	flex-direction: column;
	padding-top: 0;
	padding-bottom: 60px;
}

.hero-text {
	order: 1;
	grid-column: 2 / span 5;
}

.hero .title {
	margin-bottom: 12px !important;
}

.hero-text .copy {
	margin-bottom: 24px !important;
}

.hero-aside {
	order: 2;
	display: flex;
	justify-self: center;
	align-self: flex-start;
	grid-column: 7 / span 5;
}

.hero-text .copy {
	margin-bottom: 16px !important;
}

@media (max-width: 768px) {
	.hero {
		padding: 0 30px 60px;
	}

	.hero-aside,
	.hero-text {
		grid-column: 1 / span all;
	}

	.hero-aside {
		order: 1;
	}

	.hero-text {
		order: 2;
	}
}

/* =============================================================================

	Sidekick Section

============================================================================= */

.sidekick {
	padding-top: 70px;
	padding-bottom: 60px;
}

.sidekick-text {
	order: 2;
	grid-column: 7 / span 5;
	padding-left: 25px;
}

.sidekick-text .copy {
	margin-bottom: 16px;
}

.sidekick-aside {
	order: 1;
	grid-column: 2 / span 5;
	justify-self: center;
	margin-bottom: 0 !important;
}

@media (max-width: 768px) {
	.sidekick-aside {
		margin-bottom: 30px;
	}
}

.sidekick-footer {
	margin-top: 40px;
	order: 3;
	grid-column: 2 / span 10;
}

@media (max-width: 768px) {
	.sidekick-aside,
	.sidekick-text,
	.sidekick-footer {
		grid-column: 1 / span all;
	}

	.sidekick-aside {
		margin-bottom: 0;
	}

	.sidekick-text {
		padding-left: 0;
	}
}

/* =============================================================================

	Updates Section

============================================================================= */

.updates {
	display: flex;
	flex-direction: column;
	padding-top: 90px;
}

.updates-header {
	margin-bottom: 30px;
}

.updates .updates-content {
	margin-bottom: 60px;
}

.updates-content__list-item {
	padding: 20px 20px 24px 20px;
	border-radius: 6px;
	background: var(--color-backgrounds--cream-dark);
}

.updates-content__list-item .title {
	margin-bottom: 8px;
}

/* =============================================================================

	Help Section

============================================================================= */

.help {
	display: flex;
	flex-direction: column;
	padding-bottom: 90px;
}

.help-header {
	display: flex;
	flex-direction: row;
	align-content: flex-end;
	align-items: flex-end;
	margin-bottom: 15px;
}

@media (max-width: 768px) {
	.help-header {
		display: flex;
		flex-direction: column-reverse;
		align-content: flex-start;
		align-items: flex-start;
	}
}

.help-header img {
	margin-left: 23px;
	flex-grow: 0 !important;
	order: 2;
}

@media (max-width: 768px) {
	.help-header img {
		margin-left: 0;
		flex-grow: 0 !important;
		order: 1;
	}
}

.help-content__list-item .title {
	margin-bottom: 8px;
}

.help-content__list-item .link {
	display: block;
	margin-bottom: 4px;
}

/* =============================================================================

	Change Log Section

============================================================================= */

.change-log {
	display: flex;
	flex-direction: column;
	padding-top: 90px;
	padding-bottom: 90px;
}

.change-log__entry {
	display: flex;
	flex-direction: row;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-borders--regular);
}

.change-log .change-log__entry:first-of-type {
	padding-top: 0;
}

.change-log .change-log__entry:last-of-type {
	margin-bottom: 24px;
}

.change-log__entry .copy {
	padding: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.change-log__entry-date,
.change-log__entry-date.copy {
	flex: 1 0 auto;
	margin-right: 30px;
}

.change-log__entry-text {
	flex: 1 1 auto;
	width: 100%;
}

.change-log__entry-text .link {
	color: var(--color-text--medium) !important;
}

.change-log-text {
	grid-column: 7 / span 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.change-log-aside {
	display: flex;
	justify-content: flex-start;
	grid-column: 2 / span 5;
}

#hub-landing-page .change-log-aside img {
	max-width: 370px;
}

@media (max-width: 768px) {
	.change-log-text,
	.change-log-aside {
		grid-column: 1 / span all;
	}
}
