/*
 * BalkanReview Reviews — single review + comparison page.
 * Every rule is scoped to .brr-review and loaded only on those pages.
 * Colors, radius and fonts come from the theme's --br-* variables (with fallbacks).
 */

.brr-review {
	--brr-accent: var(--br-blue, #155eef);
	--brr-accent-dark: var(--br-blue-dark, #0b3ea8);
	--brr-ink: var(--br-ink, #162033);
	--brr-muted: var(--br-muted, #647087);
	--brr-line: var(--br-line, #e4e9f1);
	--brr-soft: var(--br-soft, #f5f8fc);
	--brr-radius: var(--br-radius, 14px);
	--brr-good: #0f7a4d;
	--brr-good-soft: #ecf8f2;
	--brr-bad: #b42318;
	--brr-bad-soft: #fdf1f0;
	--brr-ui-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--brr-prose-font: "Source Serif 4", Georgia, serif;
	--brr-sticky-top: 100px;
}

/* Header aligned with the review grid (theme centers an 860px header by default) */
.brr-review .brr-header {
	max-width: none;
}

/* Breadcrumbs */
.brr-review .brr-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font: 500 13px/1.5 var(--brr-ui-font);
	color: var(--brr-muted);
}
.brr-review .brr-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}
.brr-review .brr-breadcrumbs li:not(:last-child)::after {
	content: "›";
	margin: 0 8px;
	color: #a6b0c2;
}
.brr-review .brr-breadcrumbs a:hover,
.brr-review .brr-breadcrumbs a:focus-visible {
	color: var(--brr-accent);
}
.brr-review .brr-breadcrumbs [aria-current="page"] {
	overflow: hidden;
	max-width: 32ch;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--brr-ink);
}
.brr-review .brr-eyebrow {
	margin: 0 0 10px;
}

/*
 * Review grid. The summary spans the first two rows, so a summary taller than the image never
 * leaves empty space under the image: content starts right below the image, the rail right
 * below the summary.
 */
.brr-review .brr-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-rows: auto auto 1fr;
	grid-template-areas:
		"media summary"
		"content summary"
		"content rail";
	gap: 32px 48px;
	align-items: start;
	margin-top: 32px;
}
.brr-review .brr-grid--no-media {
	grid-template-areas:
		"content summary"
		"content rail";
	grid-template-rows: auto 1fr;
}
.brr-review .brr-grid--no-summary {
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"media media"
		"content rail";
}
.brr-review .brr-media {
	grid-area: media;
	margin: 0;
}
.brr-review .brr-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--brr-radius);
}
.brr-review .brr-summary {
	grid-area: summary;
}
.brr-review .brr-main {
	grid-area: content;
	min-width: 0;
	font-family: var(--brr-ui-font);
	color: var(--brr-ink);
}
.brr-review .brr-rail {
	grid-area: rail;
	align-self: stretch;
	min-width: 0;
}
.brr-review .brr-rail__sticky {
	position: sticky;
	top: var(--brr-sticky-top);
}
.admin-bar .brr-review .brr-rail__sticky {
	top: calc(var(--brr-sticky-top) + 32px);
}

/* Shared bits */
.brr-review .brr-section {
	margin: 0 0 40px;
}
.brr-review .brr-heading {
	margin: 0 0 16px;
	font: 800 22px/1.25 var(--brr-ui-font);
	letter-spacing: -0.02em;
	color: var(--brr-ink);
}
.brr-review .brr-kicker {
	margin: 0 0 8px;
	font: 800 11px/1.3 var(--brr-ui-font);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brr-accent);
}

/* Summary card: price + at a glance */
.brr-review .brr-summary {
	padding: 22px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(18, 42, 79, 0.06);
	font-family: var(--brr-ui-font);
	color: var(--brr-ink);
}
.brr-review .brr-price {
	margin: -22px -22px 18px;
	padding: 20px 22px 18px;
	border-bottom: 1px solid var(--brr-line);
	border-radius: var(--brr-radius) var(--brr-radius) 0 0;
	background: var(--brr-soft);
}
.brr-review .brr-price .brr-kicker {
	margin-bottom: 4px;
}
.brr-review .brr-price__value {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--brr-ink);
}
.brr-review .brr-price__checked {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--brr-muted);
}
.brr-review .brr-summary__title {
	margin: 0 0 8px;
	font: 800 15px/1.3 var(--brr-ui-font);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.brr-review .brr-summary__list {
	margin: 0;
}
.brr-review .brr-summary__item {
	padding: 10px 0;
	border-top: 1px solid var(--brr-line);
}
.brr-review .brr-summary__item:first-child {
	border-top: 0;
}
.brr-review .brr-summary__item dt {
	margin: 0 0 2px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--brr-muted);
}
.brr-review .brr-summary__item dd {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* Verdict */
.brr-review .brr-verdict {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 0 0 36px;
	padding: 22px 24px;
	border: 1px solid var(--brr-line);
	border-left: 4px solid var(--brr-accent);
	border-radius: var(--brr-radius);
	background: var(--brr-soft);
}
.brr-review .brr-verdict__text {
	flex: 1;
	min-width: 0;
}
.brr-review .brr-verdict__text p {
	margin: 0;
	font: 400 18px/1.65 var(--brr-prose-font);
	color: #273348;
}
.brr-review .brr-score {
	flex: none;
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--brr-accent);
	color: #fff;
	text-align: center;
	line-height: 1;
}
.brr-review .brr-score strong {
	display: block;
	font-size: 28px;
	font-weight: 800;
}
.brr-review .brr-score span {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.85;
}

/* Pros / cons */
.brr-review .brr-proscons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.brr-review .brr-proscons__box {
	padding: 20px 22px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
}
.brr-review .brr-proscons__box--pros {
	border-top: 3px solid var(--brr-good);
	background: var(--brr-good-soft);
}
.brr-review .brr-proscons__box--cons {
	border-top: 3px solid var(--brr-bad);
	background: var(--brr-bad-soft);
}
.brr-review .brr-proscons .brr-heading {
	margin-bottom: 12px;
	font-size: 18px;
}
.brr-review .brr-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.brr-review .brr-proscons li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
	font-size: 15.5px;
	line-height: 1.5;
}
.brr-review .brr-proscons li:last-child {
	margin-bottom: 0;
}
.brr-review .brr-proscons li::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	font-weight: 800;
	text-align: center;
}
.brr-review .brr-proscons__box--pros li::before {
	content: "+";
	color: var(--brr-good);
}
.brr-review .brr-proscons__box--cons li::before {
	content: "−";
	color: var(--brr-bad);
}

/* Review body keeps the theme's .br-entry-content typography */
.brr-review .brr-content {
	margin: 0 0 44px;
}

/* Specifications */
.brr-review .brr-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 36px;
}
.brr-review .brr-specs__group {
	min-width: 0;
	margin: 0 0 18px;
}
.brr-review .brr-specs__group h3 {
	margin: 0 0 6px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--brr-ink);
	font: 800 15px/1.3 var(--brr-ui-font);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.brr-review .brr-specs table,
.brr-review .brr-compare-view table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 14.5px;
}
.brr-review .brr-specs th,
.brr-review .brr-specs td,
.brr-review .brr-compare-view th,
.brr-review .brr-compare-view td {
	padding: 9px 0;
	/* Reset the parent theme's (bootstrap) cell borders; rows are separated by a bottom line only. */
	border: 0;
	border-bottom: 1px solid var(--brr-line);
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
	overflow-wrap: anywhere;
	background: none;
}
.brr-review .brr-specs th {
	width: 40%;
	padding-right: 14px;
	font-weight: 500;
	color: var(--brr-muted);
}
.brr-review .brr-specs td {
	font-weight: 600;
	color: var(--brr-ink);
}

/* Who should buy / skip */
.brr-review .brr-audience {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.brr-review .brr-audience__box {
	padding: 20px 22px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
	background: #fff;
}
.brr-review .brr-audience__box--buy {
	border-left: 4px solid var(--brr-good);
}
.brr-review .brr-audience__box--skip {
	border-left: 4px solid var(--brr-bad);
}
.brr-review .brr-audience .brr-heading {
	font-size: 18px;
}
.brr-review .brr-audience p,
.brr-review .brr-prose p {
	margin: 0 0 0.9em;
	font-family: var(--brr-prose-font);
	font-size: 17.5px;
	line-height: 1.7;
	color: #273348;
}
.brr-review .brr-audience p:last-child,
.brr-review .brr-prose p:last-child {
	margin-bottom: 0;
}
.brr-review .brr-prose p {
	font-size: 19px;
	line-height: 1.78;
}

/* Editorial note */
.brr-review .brr-note {
	margin: 0 0 12px;
	padding-top: 18px;
	border-top: 1px solid var(--brr-line);
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--brr-muted);
}
.brr-review .brr-note p {
	margin: 0 0 6px;
}
.brr-review .brr-note a {
	color: var(--brr-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Rail: table of contents */
.brr-review .brr-toc {
	padding: 20px 22px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
	background: var(--brr-soft);
	font-family: var(--brr-ui-font);
}
.brr-review .brr-toc h2,
.brr-review .brr-compare h2 {
	margin: 0 0 10px;
	font: 800 15px/1.3 var(--brr-ui-font);
	color: var(--brr-ink);
}
.brr-review .brr-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: brr-toc;
	font: 500 14px/1.4 var(--brr-ui-font);
}
.brr-review .brr-toc li {
	counter-increment: brr-toc;
	border-top: 1px solid var(--brr-line);
}
.brr-review .brr-toc li:first-child {
	border-top: 0;
}
.brr-review .brr-toc a {
	display: flex;
	gap: 10px;
	padding: 8px 0;
	color: var(--brr-ink);
}
.brr-review .brr-toc a::before {
	content: counter(brr-toc);
	min-width: 16px;
	color: var(--brr-muted);
	font-weight: 700;
}
.brr-review .brr-toc a:hover,
.brr-review .brr-toc a:focus-visible {
	color: var(--brr-accent);
}

/* Rail: compare with other models */
.brr-review .brr-compare {
	margin-top: 16px;
	padding: 20px 22px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
	background: #fff;
	font-family: var(--brr-ui-font);
}
.brr-review .brr-compare ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.brr-review .brr-compare li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid var(--brr-line);
}
.brr-review .brr-compare li:first-child {
	padding-top: 2px;
	border-top: 0;
}
.brr-review .brr-compare__names {
	flex: 1 1 160px;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--brr-ink);
}
.brr-review .brr-compare__names em {
	font-style: normal;
	font-weight: 600;
	color: var(--brr-muted);
}
.brr-review .brr-compare__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	padding: 7px 14px;
	border-radius: 8px;
	background: var(--brr-accent);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.brr-review .brr-compare__btn:hover,
.brr-review .brr-compare__btn:focus-visible {
	background: var(--brr-accent-dark);
}

/* Comparison page (/poredjenje/a-vs-b/) */
.brr-review .brr-compare-view__intro {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--brr-muted);
}
.brr-review .brr-compare-view__body {
	margin-top: 32px;
	font-family: var(--brr-ui-font);
}
.brr-review .brr-compare-view__heads {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}
.brr-review .brr-compare-view__head {
	padding: 18px;
	border: 1px solid var(--brr-line);
	border-radius: var(--brr-radius);
	text-align: center;
}
.brr-review .brr-compare-view__head img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin-bottom: 12px;
	object-fit: cover;
	border-radius: 10px;
}
.brr-review .brr-compare-view__head h2 {
	margin: 0 0 12px;
	font: 800 20px/1.3 var(--brr-ui-font);
}
.brr-review .brr-compare-view__group {
	margin: 0 0 28px;
}
.brr-review .brr-compare-view__group h2 {
	margin: 0 0 6px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--brr-ink);
	font: 800 15px/1.3 var(--brr-ui-font);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.brr-review .brr-compare-view th[scope="row"] {
	width: 28%;
	padding-right: 12px;
	font-weight: 500;
	color: var(--brr-muted);
}
.brr-review .brr-compare-view thead th {
	font-size: 13px;
	font-weight: 700;
	color: var(--brr-ink);
}
.brr-review .brr-compare-view td {
	padding-right: 12px;
	font-weight: 600;
}

/* Comparison: every group table uses the same fixed column grid (label | model A | model B). */
.brr-review.brr-compare-view .brr-compare-view__group table {
	width: 100%;
	table-layout: fixed;
}
.brr-review.brr-compare-view .brr-cmp-col-label {
	width: 28%;
}
.brr-review.brr-compare-view .brr-cmp-col-model {
	width: 36%;
}
.brr-review.brr-compare-view .brr-compare-view__group th,
.brr-review.brr-compare-view .brr-compare-view__group td {
	overflow-wrap: break-word;
}

/* Anchored sections clear the theme's sticky header */
.brr-review [id^="brr-"] {
	scroll-margin-top: 100px;
}

/* Responsive */
@media (max-width: 1180px) {
	.brr-review .brr-grid {
		grid-template-columns: minmax(0, 1fr) 290px;
		gap: 28px 36px;
	}
}
@media (max-width: 980px) {
	/* One column in DOM order: image → summary → content → comparison. */
	.brr-review .brr-grid,
	.brr-review .brr-grid--no-media,
	.brr-review .brr-grid--no-summary {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"summary"
			"content"
			"rail";
		grid-template-rows: none;
		gap: 24px;
		margin-top: 24px;
	}
	.brr-review .brr-rail__sticky {
		position: static;
	}
	.brr-review .brr-toc {
		display: none;
	}
	.brr-review .brr-compare {
		margin-top: 0;
	}
	.brr-review .brr-summary__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
	}
	.brr-review .brr-summary__item:nth-child(2) {
		border-top: 0;
	}
	.brr-review .brr-specs__grid {
		gap: 4px 28px;
	}
}
@media (max-width: 680px) {
	.brr-review .brr-summary {
		padding: 18px;
	}
	.brr-review .brr-price {
		margin: -18px -18px 14px;
		padding: 16px 18px 14px;
	}
	.brr-review .brr-price__value {
		font-size: 30px;
	}
	.brr-review .brr-verdict {
		padding: 18px;
	}
	.brr-review .brr-verdict__text p {
		font-size: 17px;
	}
	.brr-review .brr-proscons,
	.brr-review .brr-audience,
	.brr-review .brr-specs__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.brr-review .brr-heading {
		font-size: 20px;
	}
	.brr-review .brr-prose p {
		font-size: 18px;
		line-height: 1.72;
	}
	.brr-review .brr-compare-view__heads {
		gap: 10px;
	}
	.brr-review .brr-compare-view__head {
		padding: 12px;
	}
	.brr-review .brr-compare-view__head h2 {
		font-size: 16px;
	}
	.brr-review .brr-compare-view table {
		font-size: 13.5px;
	}
	.brr-review.brr-compare-view .brr-cmp-col-label {
		width: 34%;
	}
	.brr-review.brr-compare-view .brr-cmp-col-model {
		width: 33%;
	}
}
@media (max-width: 380px) {
	.brr-review .brr-summary__list {
		grid-template-columns: minmax(0, 1fr);
	}
	.brr-review .brr-summary__item:nth-child(2) {
		border-top: 1px solid var(--brr-line);
	}
	.brr-review .brr-verdict {
		flex-direction: column;
	}
}
