/* Preview-only chrome: the project files bar, the concept footer and the audit and guide pages. */

.pv-bar {
	position: relative;
	z-index: 30;
	background: #1b1b19;
	color: #fffbe7;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.875rem;
}

.pv-bar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 2.5rem;
	max-width: 85rem;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
	min-height: 2.75rem;
}

.pv-bar__label {
	font-weight: 700;
	white-space: nowrap;
}

.pv-bar__toggle {
	display: none;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
	flex-shrink: 0;
	min-height: 2.75rem;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pv-bar__toggle svg {
	transition: transform 0.2s;
}

.pv-bar__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.pv-bar__links {
	display: flex;
	gap: 0.25rem;
}

.pv-bar__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.75rem;
	border-radius: 62rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.pv-bar__links a[aria-current="page"] {
	background: rgb(255 251 231 / 0.18);
	font-weight: 700;
}

.pv-bar :focus-visible,
.pv-foot :focus-visible {
	outline: 0.1875rem solid #fffbe7;
	outline-offset: 0.125rem;
}

.pv-foot {
	background: #1b1b19;
	color: rgb(255 251 231 / 0.8);
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 0.875rem;
}

.pv-foot__inner {
	display: grid;
	gap: 0.75rem;
	max-width: 85rem;
	margin-inline: auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.pv-foot strong {
	color: #fffbe7;
}

.pv-foot__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.pv-foot__links a {
	display: inline-block;
	padding-block: 0.25rem;
	color: #fffbe7;
}

@media (hover: hover) and (pointer: fine) {
	.pv-bar__links a:hover {
		background: rgb(255 251 231 / 0.14);
	}
}

@media (max-width: 56rem) {
	.pv-bar__inner {
		justify-content: space-between;
	}
	.pv-bar__toggle {
		display: inline-flex;
	}
	.pv-bar__links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
		background: #1b1b19;
		box-shadow: 0 1.5rem 2.5rem -1rem rgb(0 0 0 / 0.5);
	}
	.pv-bar__links.is-open {
		display: flex;
	}
	.pv-bar__links a {
		min-height: 2.75rem;
		padding: 0;
		border-radius: 0;
		border-bottom: 0.0625rem solid rgb(255 251 231 / 0.16);
		font-size: 1rem;
	}
}

/* ---------- Audit and guide pages ---------- */

.pv-doc {
	display: flex;
	flex-direction: column;
	row-gap: 3rem;
	padding-block: clamp(2rem, 4vw, 3rem) 6rem;
}

.pv-sec {
	display: grid;
	gap: 1.25rem;
	max-width: 62rem;
}

.pv-sec > h1 {
	font-size: clamp(2.25rem, 4.4vw, 3.5rem);
	max-width: 44rem;
}

.pv-sec > h2 {
	font-size: clamp(1.625rem, 2.6vw, 2.125rem);
}

.pv-sec > h3 {
	margin-top: 1rem;
}

.pv-sec > p,
.pv-sec > ul,
.pv-sec > ol {
	max-width: 44rem;
}

.pv-sec > ul,
.pv-sec > ol {
	display: grid;
	gap: 0.625rem;
	padding-left: 1.25rem;
}

.pv-sec > ul {
	list-style: disc;
}

.pv-sec > ol {
	list-style: decimal;
}

.pv-doc li::marker {
	color: #0f7a3a;
	font-weight: 700;
}

.pv-doc code {
	font-family: inherit;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.pv-doc a {
	color: #0f7a3a;
	font-weight: 700;
}

.pv-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.pv-table th,
.pv-table td {
	padding: 0.875rem 1rem 0.875rem 0;
	border-bottom: 0.0625rem solid #e6e4da;
	text-align: left;
	vertical-align: top;
}

.pv-table th {
	font-size: 0.875rem;
	color: #5b5b55;
	font-weight: 700;
}

.pv-table td:first-child {
	font-weight: 700;
	width: 38%;
}

.pv-table td:nth-child(2) {
	width: 22%;
	color: #5b5b55;
}

.pv-steps {
	display: grid;
	gap: 2rem;
	counter-reset: pv-step;
}

.pv-step {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
	padding-top: 2rem;
	border-top: 0.0625rem solid #e6e4da;
	counter-increment: pv-step;
}

.pv-step__text {
	display: grid;
	gap: 0.625rem;
}

.pv-step__text h3::before {
	content: counter(pv-step) ". ";
	color: #0f7a3a;
}

.pv-step img,
.pv-shot img {
	width: 100%;
	border-radius: 0.75rem;
	box-shadow: 0 0 0 0.0625rem #e6e4da;
}

.pv-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.5rem;
	border-radius: 1.25rem;
	background: #fffbe7;
	box-shadow: inset 0 0 0 0.0625rem rgb(27 27 25 / 0.1);
}

.pv-cta p {
	max-width: 34rem;
}

.pv-cta a.np-btn {
	color: #ffffff;
}

.pv-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.pv-stats div {
	display: grid;
	gap: 0.25rem;
	padding: 1.5rem;
	border-radius: 1.25rem;
	background: #f4f3ee;
	box-shadow: inset 0 0 0 0.0625rem rgb(27 27 25 / 0.1);
}

.pv-stats strong {
	font-family: "Josefin Sans", "Century Gothic", sans-serif;
	font-size: 1.875rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.pv-stats span {
	font-size: 0.875rem;
	color: #5b5b55;
}

@media (max-width: 40rem) {
	.pv-table thead {
		display: none;
	}
	.pv-table,
	.pv-table tbody,
	.pv-table tr,
	.pv-table td {
		display: block;
		width: 100% !important;
	}
	.pv-table tr {
		padding: 1rem 0;
		border-bottom: 0.0625rem solid #e6e4da;
	}
	.pv-table td {
		padding: 0.25rem 0;
		border: 0;
	}
	.pv-table td:not(:first-child)::before {
		content: attr(data-h);
		display: block;
		margin-top: 0.5rem;
		font-size: 0.8125rem;
		font-weight: 700;
		color: #5b5b55;
	}
	.pv-step {
		grid-template-columns: minmax(0, 1fr);
	}
	.pv-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
