/* Site chrome shared by every page: wordmark, inner-page header, galleries, footer */

body {
	display: block;
	color: #212121;
	background: #fff;
}

pre {
	overflow: auto;
}

.topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 22px 0;
}

.wordmark {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: .04em;
}

.wordmark span {
	color: #b2dfdb;
}

.wordmark:hover {
	color: #fff;
	opacity: .85;
}

.btn.dark {
	background: #202d5f;
}

.btn.dark:hover {
	background: #141c3c;
}

/* inner pages: same gradient header, content height instead of a full screen */
header.page-header {
	height: auto;
}

.page-header .header-container {
	position: relative;
	top: 0;
	padding: 110px 0 55px;
}

.page-header .info {
	float: none;
}

.page-header .info h1 {
	margin-bottom: 6px;
}

.page-header .header-container nav {
	position: static;
	margin-top: 30px;
}

.crumbs {
	font-size: .875rem;
	opacity: .85;
}

.crumbs a {
	color: #fff;
	text-decoration: underline;
}

.lead {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #424242;
}

.note {
	background: #ede7f6;
	border-left: 4px solid #673AB7;
	padding: 14px 20px;
	margin: 22px 0;
	font-size: 17px;
	line-height: 28px;
}

.table-wrap {
	overflow-x: auto;
}

/* live demo galleries */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 25px 0;
}

.gallery-grid.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-grid a {
	display: block;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.gallery-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .35s ease;
}

.gallery-grid a:hover img {
	transform: scale(1.05);
}

.demo-caption {
	font-size: .875rem;
	color: #757575;
	margin-top: -12px;
}

.event-log {
	font-family: Consolas, Monaco, monospace;
	font-size: 14px;
	line-height: 22px;
	background: #f5f5f5;
	border: 1px solid #e3e3e3;
	padding: 10px 14px;
	height: 150px;
	overflow: auto;
}

/* guide cards */
.cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.card {
	display: block;
	color: #212121;
	background: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
	transition: box-shadow .2s ease;
}

.card:hover {
	color: #212121;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.card-body {
	padding: 18px 22px 22px;
}

.card h3 {
	margin: 0 0 8px;
	font-weight: 400;
	color: #512DA8;
}

.card p {
	margin: 0;
	font-size: 17px;
	line-height: 28px;
}

.more {
	display: inline-block;
	margin-top: 12px;
	font-size: 16px;
	color: #009688;
}

/* footer */
.site-footer {
	font-size: 16px;
	line-height: 28px;
	color: #616161;
}

.footer-nav {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.footer-nav li {
	display: inline-block;
	margin-right: 22px;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 763px) {
	.topbar {
		position: static;
		padding: 18px 0 0;
	}

	.page-header .header-container {
		padding: 25px 0 35px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cards {
		grid-template-columns: 1fr;
	}

	table {
		font-size: 14px;
	}

	table tr th,
	table tr td {
		padding: 10px;
	}
}

.gallery-grid figure {
	margin: 0;
}

.gallery-grid figcaption {
	padding: 8px 2px 0;
	font-size: 14px;
	line-height: 20px;
	color: #757575;
}

.load-more {
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
}

.gallery-grid.single {
	grid-template-columns: minmax(0, 480px);
}

/* on narrow screens the header blocks are static; lift them above the absolute gradient so links stay tappable */
@media (max-width: 763px) {
	.topbar,
	.header-container {
		position: relative;
		top: 0;
		z-index: 2;
	}
}

@media (max-width: 763px) {
	h1 {
		font-size: 2.4rem;
	}
}

/* phones: the hero grows with its content (demo.js sets a fixed height), the scroll hint would sit on the demo */
@media (max-width: 763px) {
	header.hero {
		height: auto !important;
		padding-bottom: 30px;
	}

	.hero .scroll-hint {
		display: none;
	}
}
