/* ==========================================================================
   Review pages
   --------------------------------------------------------------------------
   Loaded on single reviews and the reviews index only.

   A single review is two columns from the top: the article on the left, the
   facts and other reviews in a rail on the right. Same type and melted score
   square as the homepage.
   ========================================================================== */

.bud-review-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3.5rem;
	align-items: start;
	padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(2.5rem, 5vw, 4.5rem);
}

/* Title ------------------------------------------------------------------- */

.bud-review-cat {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--bud-lime);
	text-decoration: none;
}

.bud-review-cat:hover {
	color: #fff;
}

.bud-rhero h1 {
	margin: 0.35rem 0 0.75rem;
	font-family: var(--bud-face);
	font-size: clamp(3.5rem, 7vw, 6rem);
	font-weight: 400;
	line-height: 0.92;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-review-dek {
	margin: 0;
	font-size: clamp(1.15rem, 1.7vw, 1.35rem);
	line-height: 1.4;
	color: #dfe4df;
}

.bud-review-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.85rem;
	margin: 0.9rem 0 1.1rem;
	font-size: 0.86rem;
	color: #aeb7af;
}

/* Photographs ------------------------------------------------------------- */

.bud-lead-gallery {
	margin: 0 0 2.25rem;
}

.bud-lead-stage {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 18px;
	background: #0f1512;
}

.bud-lead-stage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bud-lead-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
	overflow-x: auto;
	scrollbar-width: thin;
}

.bud-lead-thumbs button {
	flex: none;
	width: 92px;
	height: 62px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 9px;
	background: #0f1512;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.bud-lead-thumbs button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bud-lead-thumbs button:hover,
.bud-lead-thumbs button:focus-visible,
.bud-lead-thumbs button[aria-current="true"] {
	opacity: 1;
}

.bud-lead-thumbs button:focus-visible {
	outline: 2px solid var(--bud-lime);
	outline-offset: 2px;
}

.bud-lead-caption {
	margin: 0.6rem 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #aeb7af;
}

.bud-lead-caption:empty {
	display: none;
}

/* Like, don't like, how it scored ----------------------------------------- */

.bud-likes {
	margin: 0 0 2.25rem;
}

.bud-subscores {
	margin: 2.5rem 0 0;
}

.bud-likes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem 2rem;
}

.bud-likes h2,
.bud-subscores h2,
.bud-rail-head {
	margin: 0 0 0.6rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-likes ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bud-likes li {
	padding: 0.5rem 0;
	border-top: 1px solid var(--bud-line-strong);
	font-size: 0.95rem;
	line-height: 1.4;
	color: #dfe4df;
}

.bud-subscore {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr) 1.75rem;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--bud-line-strong);
}

.bud-subscore-label {
	font-size: 0.95rem;
	color: #dfe4df;
}

.bud-subscore-bar {
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--bud-line-strong);
}

.bud-subscore-bar > span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--bud-tone);
}

.bud-subscore-value {
	font-size: 0.95rem;
	font-weight: 700;
	text-align: right;
	color: var(--bud-tone);
}

/* The write-up ------------------------------------------------------------ */

.bud-review-layout .bud-body {
	max-width: none;
	font-size: 1.125rem;
	line-height: 1.7;
}

/* The column can run wide; lines of text stay readable. */
.bud-review-layout .bud-body > :is(p, ul, ol, h2, h3, h4, blockquote) {
	max-width: 50rem;
}

.bud-review-layout .bud-body h2 {
	margin-top: 2.5rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: clamp(2.25rem, 3.4vw, 2.75rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
	scroll-margin-top: 96px;
}

.bud-review-layout .bud-body hr {
	display: none;
}

/* Photographs placed between sections by bud_distribute_images(). */
.bud-inline-shot {
	margin: 2rem 0;
}

.bud-inline-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.bud-inline-shot figcaption {
	margin-top: 0.5rem;
	font-size: 0.82rem;
	color: #aeb7af;
}

.bud-buy-block {
	margin-top: 2.5rem;
}

.bud-buy-block h2 {
	margin: 0 0 0.75rem;
	font-family: var(--bud-face);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-aff-note {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	color: #aeb7af;
}

/* The rail ---------------------------------------------------------------- */

.bud-review-aside {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Everything after the facts follows the reader down the article. */
.bud-rail-follow {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 2rem;
}

.bud-rail-spec {
	margin: 0;
}

.bud-rail-spec > div {
	display: grid;
	grid-template-columns: 6.25rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.55rem 0;
	border-top: 1px solid var(--bud-line-strong);
	font-size: 0.92rem;
	line-height: 1.35;
}

.bud-rail-spec dt {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	color: #aeb7af;
}

.bud-rail-spec dd {
	margin: 0;
	color: #fff;
}

.bud-rail-block > .bud-cta {
	margin-top: 0.75rem;
}

.bud-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bud-toc li {
	border-top: 1px solid var(--bud-line-strong);
}

.bud-toc a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.92rem;
	line-height: 1.35;
	color: #dfe4df;
	text-decoration: none;
}

.bud-toc a:hover {
	color: var(--bud-lime);
}

@media (max-width: 980px) {
	.bud-review-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.bud-rail-follow {
		position: static;
	}

	.bud-rail-follow .bud-toc {
		display: none;
	}
}

@media (max-width: 640px) {
	.bud-review-layout .bud-body {
		font-size: 1.05rem;
	}

	.bud-subscore {
		grid-template-columns: 7rem minmax(0, 1fr) 1.5rem;
	}

	.bud-lead-thumbs button {
		width: 76px;
		height: 52px;
	}
}

/* Hero --------------------------------------------------------------------- */

.bud-rhero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	min-height: 420px;
	margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
	overflow: hidden;
	border-radius: 22px;
	border-bottom-right-radius: 0;
	background: var(--bud-surface);
}

.bud-rhero.no-art {
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
}

.bud-rhero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.75rem);
}

.bud-rhero-art {
	position: relative;
	overflow: hidden;
	background: #060807;
}

.bud-rhero-art img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.bud-rhero-notch i {
	width: 112px;
	height: 112px;
}

.bud-page-score {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	margin: 0;
	font-family: var(--bud-face);
	text-transform: uppercase;
}

.bud-rhero.no-art .bud-page-score {
	top: clamp(1.5rem, 3vw, 2.75rem);
	right: clamp(1.5rem, 3vw, 2.75rem);
	bottom: auto;
}

.bud-page-score b {
	font-size: 4.25rem;
	font-weight: 400;
	line-height: 0.95;
	color: var(--bud-tone);
}

.bud-page-score span:not(.screen-reader-text) {
	font-size: 1.15rem;
	line-height: 1;
	color: #fff;
}

.bud-review-byline a {
	color: inherit;
}

.bud-review-byline a:hover {
	color: var(--bud-lime);
}

/* Share -------------------------------------------------------------------- */

.bud-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.bud-share-label {
	margin-right: 0.3rem;
	font-size: 0.86rem;
	color: #aeb7af;
}

.bud-share a,
.bud-share button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--bud-surface-elevated);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bud-share a:hover,
.bud-share button:hover,
.bud-share a:focus-visible,
.bud-share button:focus-visible {
	background: var(--bud-lime);
	color: #0a0c0a;
}

.bud-share button .bud-ui-icon + .bud-ui-icon,
.bud-share button.is-copied .bud-ui-icon:first-child {
	display: none;
}

.bud-share button.is-copied .bud-ui-icon + .bud-ui-icon {
	display: block;
}

.bud-review-end {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bud-line-strong);
}

.bud-review-end .bud-share a,
.bud-review-end .bud-share button {
	background: var(--bud-surface);
}

/* Reviewer ------------------------------------------------------------------ */

.bud-author {
	margin-top: 1.5rem;
	padding: clamp(1.25rem, 2.6vw, 2rem);
	border-radius: 22px;
	background: var(--bud-surface);
	scroll-margin-top: 96px;
}

.bud-author-top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.bud-author-face {
	display: block;
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.bud-author h2 {
	margin: 0 0 0.3rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-author-bio {
	margin: 1rem 0 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #dfe4df;
}

.bud-author-lists {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	margin-top: 1.5rem;
}

.bud-author-lists h3 {
	margin: 0 0 0.5rem;
	font-family: var(--bud-face);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-author-row {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 60px;
	padding: 0.45rem 0;
	border-top: 1px solid var(--bud-line-strong);
	text-decoration: none;
}

.bud-author-row img {
	display: block;
	flex: none;
	width: 56px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
}

.bud-author-row-text {
	flex: 1;
	min-width: 0;
}

.bud-author-row small {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.78rem;
	color: #aeb7af;
}

.bud-author-row strong {
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	transition: color 0.15s ease;
}

.bud-author-row:hover strong {
	color: var(--bud-lime);
}

.bud-author-row b {
	font-family: var(--bud-face);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	color: var(--bud-tone);
}

.bud-author-row > strong {
	flex: 1;
	min-width: 0;
}

.bud-author-row time {
	flex: none;
	font-size: 0.82rem;
	color: #aeb7af;
}

@media (max-width: 760px) {
	.bud-rhero {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 18px;
	}

	.bud-rhero-art {
		order: -1;
		aspect-ratio: 16 / 10;
	}

	.bud-rhero-notch {
		--notch-color: var(--bud-surface);
	}

	.bud-rhero-notch i,
	.bud-page-score {
		width: 88px;
		height: 88px;
	}

	.bud-page-score b {
		font-size: 3.25rem;
	}

	.bud-page-score span:not(.screen-reader-text) {
		font-size: 1rem;
	}

	.bud-author-lists {
		grid-template-columns: minmax(0, 1fr);
	}
}
