/* =========================================================
   Site Nitro: Reviews — Guide Front-End Styles
   All colors use CSS custom properties (--sn-*) injected
   inline from plugin settings. Fallback values ensure the
   layout renders correctly without customization.
   ========================================================= */

/* --- Reset / Base --- */
.sn-guide {
	font-family: var(--sn-font-body, 'Roboto', sans-serif);
	color: var(--sn-text, #6B6B6B);
	line-height: 1.8;
	font-weight: 400;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

.sn-guide *,
.sn-guide *::before,
.sn-guide *::after {
	box-sizing: border-box;
}

.sn-guide h1,
.sn-guide h2,
.sn-guide h3,
.sn-guide h4 {
	font-family: var(--sn-font-heading, 'Montserrat', sans-serif);
	color: var(--sn-primary, #1A1A1A);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

.sn-guide a {
	color: var(--sn-accent, #C46D42);
	text-decoration: none;
	transition: color 0.2s ease;
}

.sn-guide a:hover {
	color: var(--sn-primary, #1A1A1A);
}

/* =========================================================
   Hero Section
   ========================================================= */

.sn-guide-hero {
	padding: 40px 0 48px;
	border-bottom: 1px solid var(--sn-border, #E5E5E5);
	margin-bottom: 40px;
}

.sn-guide-hero-inner {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

.sn-guide-hero-text {
	flex: 1 1 55%;
	min-width: 0;
}

.sn-guide-hero-image {
	flex: 0 0 40%;
	max-width: 40%;
}

.sn-guide-hero-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	object-fit: cover;
}

/* Breadcrumbs */
.sn-guide-breadcrumbs {
	font-size: 13px;
	color: var(--sn-text, #6B6B6B);
	margin-bottom: 20px;
}

.sn-guide-breadcrumbs a {
	color: var(--sn-text, #6B6B6B);
}

.sn-guide-breadcrumbs a:hover {
	color: var(--sn-accent, #C46D42);
}

.sn-breadcrumb-sep {
	margin: 0 6px;
	opacity: 0.5;
}

.sn-breadcrumb-current {
	color: var(--sn-primary, #1A1A1A);
	font-weight: 500;
}

.sn-guide-title {
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 900;
	margin-bottom: 14px;
	color: var(--sn-primary, #1A1A1A);
	line-height: 1.2;
}

.sn-guide-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--sn-text, #6B6B6B);
}

.sn-guide-meta a {
	color: var(--sn-text, #6B6B6B);
	font-weight: 500;
}

.sn-guide-meta a:hover {
	color: var(--sn-accent, #C46D42);
}

.sn-guide-meta-sep {
	opacity: 0.4;
}

.sn-guide-updated {
	font-weight: 600;
	color: var(--sn-primary, #1A1A1A);
}

/* =========================================================
   Disclosure Notice
   ========================================================= */

.sn-guide-disclosure {
	background: #fffbf0;
	border-left: 3px solid #e6a817;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--sn-text, #6B6B6B);
	border-radius: 0 4px 4px 0;
	margin-bottom: 32px;
	line-height: 1.6;
}

/* =========================================================
   Quick Answer Box
   ========================================================= */

.sn-guide-quick-answer {
	background: var(--sn-card, #FFFFFF);
	border-left: 4px solid var(--sn-accent, #C46D42);
	border-radius: 0 6px 6px 0;
	padding: 20px 24px;
	margin-bottom: 40px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.sn-guide-quick-answer-label {
	font-family: var(--sn-font-heading, 'Montserrat', sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--sn-accent, #C46D42);
	margin-bottom: 10px;
}

.sn-guide-quick-answer-text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--sn-primary, #1A1A1A);
	margin: 0;
	font-weight: 500;
}

/* =========================================================
   What You'll Need
   ========================================================= */

.sn-guide-prerequisites {
	margin-bottom: 40px;
	padding: 24px;
	background: var(--sn-card, #FFFFFF);
	border: 1px solid var(--sn-border, #E5E5E5);
	border-radius: 6px;
}

.sn-guide-prerequisites-heading {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--sn-border, #E5E5E5);
}

.sn-guide-prereq-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sn-guide-prereq-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--sn-text, #6B6B6B);
	padding: 8px 0;
	border-bottom: 1px solid var(--sn-border, #E5E5E5);
}

.sn-guide-prereq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sn-guide-prereq-item::before {
	content: '✓';
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--sn-accent, #C46D42);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.sn-guide-prereq-item a {
	color: var(--sn-primary, #1A1A1A);
	font-weight: 600;
}

.sn-guide-prereq-item a:hover {
	color: var(--sn-accent, #C46D42);
}

.sn-guide-prereq-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--sn-bg, #f4f4f4);
	color: var(--sn-text, #6B6B6B);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-left: 4px;
}

/* =========================================================
   Body: Content + Sidebar Layout
   ========================================================= */

.sn-guide-body {
	margin-bottom: 48px;
}

.sn-guide-body-with-sidebar {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

/* Sidebar */
.sn-guide-sidebar {
	flex: 0 0 260px;
	width: 260px;
	position: sticky;
	top: 200px;
	align-self: flex-start;
}

/* =========================================================
   TOC and Ad Spot
   Selectors are prefixed with .sn-guide to (a) scope them
   correctly to guide pages and (b) raise specificity above
   the .sn-guide h4 base-reset rule (0,1,1), ensuring the
   TOC heading's margin, border, and font styles win.
   ========================================================= */

/* TOC */
.sn-guide .sn-review-toc {
	background: var(--sn-card, #F4F4F4);
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
}

.sn-guide .sn-review-toc-heading {
	font-size: 13px;
	font-family: var(--sn-font-heading, 'Montserrat', sans-serif);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sn-accent, #C46D42);
	margin-bottom: 16px;
	color: var(--sn-primary, #1A1A1A);
	line-height: 1.3;
}

.sn-guide .sn-review-toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: toc-counter;
}

.sn-guide .sn-review-toc ol li {
	counter-increment: toc-counter;
	padding: 9px 0 9px 16px;
	border-left: 2px solid var(--sn-border, #E5E5E5);
	transition: border-color 0.2s ease;
}

.sn-guide .sn-review-toc ol li:hover {
	border-left-color: var(--sn-accent, #C46D42);
}

.sn-guide .sn-review-toc ol li.sn-toc-active {
	border-left-color: var(--sn-accent, #C46D42);
}

.sn-guide .sn-review-toc ol li::before {
	content: counter(toc-counter) ". ";
	color: var(--sn-accent, #C46D42);
	font-weight: 600;
	font-family: var(--sn-font-heading, 'Montserrat', sans-serif);
	font-size: 12px;
}

.sn-guide .sn-review-toc ol li a {
	color: var(--sn-secondary, #444444);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sn-guide .sn-review-toc ol li:hover a,
.sn-guide .sn-review-toc ol li.sn-toc-active a {
	color: var(--sn-accent, #C46D42);
	font-weight: 500;
}

/* Ad Spot */
.sn-guide .sn-review-ad-spot {
	background: var(--sn-card, #F4F4F4);
	border-radius: 6px;
	padding: 20px;
	border: 1px dashed #E0E0E0;
	text-align: center;
}

.sn-guide .sn-review-ad-label {
	display: block;
	font-family: var(--sn-font-heading, 'Montserrat', sans-serif);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--sn-text, #6B6B6B);
	letter-spacing: 1.5px;
	margin-bottom: 12px;
}

.sn-guide .sn-review-ad-placeholder {
	width: 250px;
	height: 250px;
	max-width: 100%;
	background: var(--sn-border, #E5E5E5);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	color: var(--sn-text, #6B6B6B);
	font-size: 14px;
}

.sn-guide .sn-review-ad-content {
	margin-top: 8px;
}

/* Main content */
.sn-guide-content {
	flex: 1;
	min-width: 0;
	line-height: 1.85;
}

.sn-guide-content h2 {
	font-size: 24px;
	margin-top: 36px;
	margin-bottom: 14px;
}

.sn-guide-content h3 {
	font-size: 20px;
	margin-top: 28px;
	margin-bottom: 10px;
}

.sn-guide-content p {
	margin-bottom: 18px;
}

.sn-guide-content ul,
.sn-guide-content ol {
	margin-bottom: 18px;
	padding-left: 28px;
}

.sn-guide-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* =========================================================
   FAQ Section
   ========================================================= */

.sn-guide-faq-section {
	margin-bottom: 48px;
}

.sn-guide-faq-heading {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sn-border, #E5E5E5);
}

.sn-guide-faq-item {
	border-bottom: 1px solid var(--sn-border, #E5E5E5);
	padding: 16px 0;
}

.sn-guide-faq-item:last-child {
	border-bottom: none;
}

.sn-guide-faq-question {
	font-size: 16px;
	font-weight: 700;
	color: var(--sn-primary, #1A1A1A);
	margin: 0 0 10px;
	line-height: 1.4;
}

.sn-guide-faq-answer {
	font-size: 15px;
	color: var(--sn-text, #6B6B6B);
	line-height: 1.7;
	margin: 0;
}

.sn-guide-faq-answer p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Related Content
   ========================================================= */

.sn-guide-related-section {
	margin-bottom: 48px;
}

.sn-guide-related-heading {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--sn-border, #E5E5E5);
}

.sn-guide-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.sn-guide-related-card {
	background: var(--sn-card, #FFFFFF);
	border: 1px solid var(--sn-border, #E5E5E5);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sn-guide-related-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.sn-guide-related-image-link {
	display: block;
}

.sn-guide-related-image-wrap {
	width: 100%;
	height: 140px;
	overflow: hidden;
	background: #f5f5f5;
}

.sn-guide-related-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s ease;
}

.sn-guide-related-card:hover .sn-guide-related-image-wrap img {
	transform: scale(1.03);
}

.sn-guide-related-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.sn-guide-related-type-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--sn-accent, #C46D42);
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	align-self: flex-start;
}

.sn-guide-related-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
}

.sn-guide-related-title a {
	color: var(--sn-primary, #1A1A1A);
}

.sn-guide-related-title a:hover {
	color: var(--sn-accent, #C46D42);
}

.sn-guide-related-excerpt {
	font-size: 13px;
	color: var(--sn-text, #6B6B6B);
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sn-guide-related-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--sn-accent, #C46D42);
	margin-top: auto;
}

.sn-guide-related-link:hover {
	color: var(--sn-primary, #1A1A1A);
}

/* =========================================================
   Author Bio
   ========================================================= */

.sn-guide-author-bio {
	border-top: 2px solid var(--sn-border, #E5E5E5);
	padding-top: 32px;
}

.sn-guide-author-inner {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.sn-guide-avatar img {
	border-radius: 50%;
	display: block;
}

.sn-guide-author-info {
	flex: 1;
}

.sn-guide-written-by {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--sn-text, #6B6B6B);
	display: block;
	margin-bottom: 4px;
}

.sn-guide-author-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.sn-guide-author-name a {
	color: var(--sn-primary, #1A1A1A);
}

.sn-guide-author-desc {
	font-size: 14px;
	color: var(--sn-text, #6B6B6B);
	margin: 0;
	line-height: 1.65;
}

/* =========================================================
   Responsive — Tablet (960px)
   ========================================================= */

@media (max-width: 960px) {
	/* Hero: image drops below text */
	.sn-guide-hero-inner {
		flex-direction: column;
		gap: 24px;
	}

	.sn-guide-hero-image {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	/* Body: sidebar drops below content */
	.sn-guide-body-with-sidebar {
		flex-direction: column-reverse;
	}

	/* Sidebar unsticks and becomes a horizontal flex row (TOC left, ad right) —
	   mirrors how .sn-review-sidebar behaves in review.css at this breakpoint */
	.sn-guide-sidebar {
		width: 100%;
		flex: none;
		position: static;
		top: auto;
		display: flex;
		gap: 24px;
	}

	.sn-guide .sn-review-toc {
		flex: 1;
		margin-bottom: 0;
	}

	.sn-guide .sn-review-ad-spot {
		flex: 0 0 auto;
	}

	/* Related: 2 columns */
	.sn-guide-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================
   Responsive — Mobile (600px)
   ========================================================= */

@media (max-width: 600px) {
	.sn-guide {
		padding: 0 16px 40px;
	}

	/* Hero: tighten padding, hide image */
	.sn-guide-hero {
		padding: 28px 0 32px;
		margin-bottom: 28px;
	}

	.sn-guide-hero-image {
		display: none;
	}

	.sn-guide-title {
		font-size: 26px;
	}

	/* Prerequisites: simpler stack */
	.sn-guide-prerequisites {
		padding: 16px;
	}

	/* Related: 1 column */
	.sn-guide-related-grid {
		grid-template-columns: 1fr;
	}

	.sn-guide-author-inner {
		flex-direction: column;
		gap: 12px;
	}
}
