/* ===================================================================
   remastero Modern Theme
   Shared stylesheet for all pages
   =================================================================== */

/* ===== CSS Custom Properties ===== */
:root {
	--bg-primary: #0f1117;
	--bg-secondary: #1a1c25;
	--bg-tertiary: #22242f;
	--bg-card: #1e2030;
	--bg-card-hover: #252840;
	--text-primary: #e8e9ed;
	--text-secondary: #adb0be;
	--text-muted: #8a8e9e;
	--accent-gold: #c8922a;
	--accent-gold-light: #dba840;
	--accent-blue: #4a8fd4;
	--accent-blue-light: #6bb3f0;
	--accent-green: #4caf7d;
	--accent-orange: #e88a3a;
	--accent-red: #e05555;
	--border-color: #2a2d3a;
	--border-light: #353849;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
	--radius: 12px;
	--radius-sm: 8px;
	--radius-lg: 16px;
	--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--max-width: 1200px;
	--nav-height: 64px;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
	--bg-primary: #f5f5f7;
	--bg-secondary: #eaeaee;
	--bg-tertiary: #e0e0e6;
	--bg-card: #ffffff;
	--bg-card-hover: #f0f0f4;
	--text-primary: #1a1a2e;
	--text-secondary: #4a4a5a;
	--text-muted: #6e6e80;
	--accent-gold: #a67a1e;
	--accent-gold-light: #8a6518;
	--accent-blue: #2e6fac;
	--accent-blue-light: #1e5a94;
	--accent-green: #2e8a5a;
	--accent-orange: #c47020;
	--accent-red: #c44040;
	--border-color: #d0d0da;
	--border-light: #e0e0e8;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .prose .callout-warning {
	background: rgba(166, 122, 30, 0.08);
	border-color: rgba(166, 122, 30, 0.3);
}

[data-theme="light"] .prose .callout-info {
	background: rgba(46, 111, 172, 0.08);
	border-color: rgba(46, 111, 172, 0.25);
}

[data-theme="light"] .prose .callout-danger {
	background: rgba(196, 64, 64, 0.08);
	border-color: rgba(196, 64, 64, 0.25);
}

[data-theme="light"] .nav {
	background: rgba(245, 245, 247, 0.95);
}

[data-theme="light"] .search-modal__backdrop {
	background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .nav-open::before {
	background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] code {
	background: #e8e8ee;
}

[data-theme="light"] pre {
	background: #e8e8ee;
}

[data-theme="light"] mark,
[data-theme="light"] .search-result__excerpt mark {
	background: rgba(166, 122, 30, 0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.7;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent-gold);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--accent-gold-light);
}

/* ===== Focus styles for keyboard navigation ===== */
:focus-visible {
	outline: 2px solid var(--accent-gold);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===== Navigation ===== */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-height);
	background: rgba(15, 17, 23, 0.92);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	display: flex;
	align-items: center;
}

.nav__inner {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav__logo {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.nav__logo a {
	color: var(--text-secondary);
}

.nav__logo em {
	color: var(--accent-gold);
	font-style: normal;
	font-weight: 700;
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
}

.nav__links a {
	padding: 8px 14px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	white-space: nowrap;
}

.nav__links a:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

.nav__links .btn-nav {
	background: var(--accent-gold);
	color: var(--bg-primary) !important;
	font-weight: 600;
	padding: 8px 18px;
}

.nav__links .btn-nav:hover {
	background: var(--accent-gold-light);
}

.nav__links .btn-nav-outline {
	border: 1.5px solid var(--accent-gold);
	color: var(--accent-gold) !important;
	font-weight: 600;
	padding: 7px 16px;
}

.nav__links .btn-nav-outline:hover {
	background: var(--accent-gold);
	color: var(--bg-primary) !important;
}

.nav__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 8px;
	border-radius: var(--radius-sm);
}

.nav__toggle:hover {
	background: var(--bg-tertiary);
}

/* Mobile nav backdrop */
.nav-open::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999;
}

/* ===== Mobile Navigation ===== */
@media (max-width: 1024px) {
	.nav__toggle {
		display: block;
	}

	.nav__links {
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--nav-height));
		max-height: calc(100dvh - var(--nav-height));
		background: rgba(15, 17, 23, 0.98);
		backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 16px;
		gap: 2px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform var(--transition);
	}

	.nav__links.active {
		transform: translateX(0);
	}

	.nav__links li {
		width: 100%;
	}

	.nav__links a {
		padding: 12px 16px;
		font-size: 0.95rem;
		width: 100%;
		display: block;
		border-radius: var(--radius-sm);
	}

	.nav__links .btn-nav,
	.nav__links .btn-nav-outline {
		text-align: center;
		margin-top: 4px;
	}

	.nav__links button {
		padding: 12px 16px;
		width: 100%;
		text-align: left;
	}
}

/* ===== Layout ===== */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

main {
	margin-top: var(--nav-height);
}

section {
	padding: 64px 0;
}

section + section {
	border-top: 1px solid var(--border-color);
}

/* ===== Hero Section ===== */
.hero {
	padding: 100px 0 80px;
	text-align: center;
	background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
	border-bottom: 1px solid var(--border-color);
}

.hero__badge {
	display: inline-block;
	background: rgba(212, 168, 67, 0.12);
	border: 1px solid rgba(212, 168, 67, 0.3);
	color: var(--accent-gold);
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 100px;
	margin-bottom: 24px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
}

.hero h1 span {
	background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero__subtitle {
	font-size: 1.15rem;
	color: var(--text-secondary);
	max-width: 700px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.hero__image {
	max-width: 480px;
	margin: 0 auto;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: all var(--transition);
	font-family: inherit;
	text-decoration: none;
}

.btn-primary {
	background: var(--accent-gold);
	color: var(--bg-primary);
}

.btn-primary:hover {
	background: var(--accent-gold-light);
	color: var(--bg-primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-secondary {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border-light);
}

.btn-secondary:hover {
	background: var(--bg-card-hover);
	color: var(--text-primary);
	transform: translateY(-1px);
}

.btn-blue {
	background: #3479be;
	color: #fff;
}

.btn-blue:hover {
	background: var(--accent-blue-light);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(74, 143, 212, 0.3);
}

.btn-sm {
	padding: 8px 18px;
	font-size: 0.85rem;
}

/* ===== Section Headers ===== */
.section-header {
	margin-bottom: 48px;
}

.section-header h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: -0.01em;
}

.section-header p {
	color: var(--text-secondary);
	font-size: 1.05rem;
	max-width: 680px;
}

/* ===== Two Column Layout ===== */
.two-col {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 64px;
	align-items: start;
}

@media (max-width: 900px) {
	.two-col {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.two-col__sidebar {
		order: -1;
	}
}

/* ===== Content + Sidebar Layout (sidebar left) ===== */
.content-with-sidebar {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.content-with-sidebar {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.sidebar-sticky {
		position: static;
		max-height: none;
		overflow-y: visible;
	}
}

/* ===== Sidebar ===== */
.sidebar-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sidebar-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 14px;
	color: var(--accent-gold);
}

.sidebar-card ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sidebar-card li {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
	padding-left: 16px;
	position: relative;
}

.sidebar-card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent-gold);
	opacity: 0.6;
}

/* Sidebar sticky on desktop */
.sidebar-sticky {
	position: sticky;
	top: calc(var(--nav-height) + 24px);
}

/* Scrollable sidebar variant - used when TOC is very long */
.sidebar-sticky--scroll {
	max-height: calc(100vh - var(--nav-height) - 48px);
	overflow-y: auto;
	/* Hide scrollbar visually but keep functionality */
	scrollbar-width: none;
}
.sidebar-sticky--scroll::-webkit-scrollbar {
	display: none;
}

/* Index/TOC sidebar - nested lists */
.sidebar-card ul ul {
	margin-top: 6px;
	margin-left: 8px;
	gap: 6px;
}

.sidebar-card ul ul li {
	font-size: 0.82rem;
}

.sidebar-card ul ul li::before {
	width: 4px;
	height: 4px;
	opacity: 0.4;
}

.sidebar-card ul ul ul {
	margin-left: 8px;
}

/* Collapsible sidebar on narrow screens */
@media (max-width: 900px) {
	.sidebar-card ul {
		display: none;
	}

	.sidebar-card h3 {
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 0;
	}

	.sidebar-card h3::after {
		content: '\f078';
		font-family: 'Font Awesome 6 Free';
		font-weight: 900;
		font-size: 0.7rem;
		transition: transform var(--transition);
	}

	.sidebar-card.expanded h3::after {
		transform: rotate(180deg);
	}

	.sidebar-card.expanded h3 {
		margin-bottom: 14px;
	}

	.sidebar-card.expanded ul {
		display: flex;
	}
}

/* Collapsible sidebar card (e.g. Previous Versions) */
.sidebar-card--collapsible h3 {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
}

.sidebar-card__chevron {
	font-size: 0.7rem;
	transition: transform var(--transition);
}

.sidebar-card--collapsible ul {
	display: none;
}

.sidebar-card--collapsible.expanded h3 {
	margin-bottom: 14px;
}

.sidebar-card--collapsible.expanded ul {
	display: flex;
}

.sidebar-card--collapsible.expanded .sidebar-card__chevron {
	transform: rotate(180deg);
}

/* ===== Content Prose ===== */
.prose h2 {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	margin: 56px 0 20px;
	letter-spacing: -0.01em;
}

.prose h3 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 48px 0 16px;
	letter-spacing: -0.01em;
	padding-left: 14px;
	border-left: 3px solid var(--accent-gold);
}

.prose h3:first-child,
.prose h2:first-child {
	margin-top: 0;
}

.prose h4 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 32px 0 12px;
	color: var(--accent-gold-light);
}

.prose h5 {
	font-size: 1rem;
	font-weight: 600;
	margin: 24px 0 10px;
}

.prose h6 {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 20px 0 8px;
	color: var(--text-secondary);
}

.prose p {
	margin-bottom: 16px;
	color: var(--text-secondary);
	line-height: 1.8;
}

.prose ul, .prose ol {
	margin-bottom: 16px;
	padding-left: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.prose ol {
	counter-reset: ol-counter;
}

.prose ul > li {
	padding-left: 20px;
	position: relative;
	color: var(--text-secondary);
	line-height: 1.7;
}

.prose ul > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-gold);
	opacity: 0.5;
}

.prose ol > li {
	padding-left: 28px;
	position: relative;
	color: var(--text-secondary);
	line-height: 1.7;
	counter-increment: ol-counter;
}

.prose ol > li::before {
	content: counter(ol-counter) ".";
	position: absolute;
	left: 0;
	font-weight: 600;
	color: var(--accent-gold);
}

/* Headings inside list items — keep inline with the number/bullet */
.prose ol > li > h3,
.prose ol > li > h4 {
	display: inline;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
}

/* nested lists */
.prose ul ul, .prose ol ul, .prose ul ol, .prose ol ol {
	margin-top: 8px;
	margin-bottom: 0;
}

.prose em {
	color: var(--accent-gold);
	font-style: normal;
	font-weight: 500;
}

.prose i {
	font-style: italic;
}

.prose strong, .prose b {
	color: var(--text-primary);
	font-weight: 600;
}

.prose hr {
	border: none;
	border-top: 1px solid var(--border-color);
	margin: 48px 0;
}

.prose code {
	font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
	font-size: 0.875em;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 2px 6px;
	color: var(--accent-gold-light);
}

.prose pre {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 20px 24px;
	overflow-x: auto;
	margin: 16px 0;
}

.prose pre code {
	background: none;
	border: none;
	padding: 0;
	font-size: 0.875rem;
	color: var(--text-primary);
}

.prose blockquote {
	border-left: 3px solid var(--accent-gold);
	padding: 12px 20px;
	margin: 16px 0;
	background: var(--bg-card);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-secondary);
	font-style: italic;
}

.prose .image-fit {
	display: block;
	margin: 24px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.prose .image-fit img {
	width: 100%;
}

.prose .image-small {
	display: block;
	margin: 24px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border-color);
	max-width: 500px;
}

.prose .image-small img {
	width: 100%;
}

/* Callout boxes */
.prose .callout-warning {
	display: block;
	background: rgba(200, 146, 42, 0.08);
	border: 1px solid rgba(200, 146, 42, 0.3);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin: 16px 0;
	color: var(--accent-gold-light);
	font-size: 0.95rem;
}

.prose .callout-info {
	display: block;
	background: rgba(74, 143, 212, 0.08);
	border: 1px solid rgba(74, 143, 212, 0.25);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin: 16px 0;
	color: var(--accent-blue-light);
	font-size: 0.95rem;
}

.prose .callout-danger {
	display: block;
	background: rgba(224, 85, 85, 0.08);
	border: 1px solid rgba(224, 85, 85, 0.25);
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin: 16px 0;
	color: var(--accent-red);
	font-size: 0.95rem;
}

/* ===== Cards Grid ===== */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 32px;
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 28px;
	transition: all var(--transition);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
	border-color: var(--border-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.feature-card h4 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 14px;
	color: var(--text-primary);
}

.feature-card ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feature-card li {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
	padding-left: 16px;
	position: relative;
}

.feature-card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent-gold);
	opacity: 0.5;
}

/* ===== Tables ===== */
.pricing-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 24px 0;
}

.pricing-table thead {
	background: var(--bg-tertiary);
}

.pricing-table th {
	padding: 16px 20px;
	text-align: left;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid var(--border-color);
}

.pricing-table td {
	padding: 16px 20px;
	font-size: 0.9rem;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
	vertical-align: top;
	line-height: 1.6;
}

.pricing-table tr:last-child td {
	border-bottom: none;
}

.pricing-table td li {
	list-style: none;
	margin-bottom: 4px;
}

/* ===== Download Section ===== */
.download-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
}

/* ===== Collapsible Sections ===== */
.collapsible {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
}

.collapsible__toggle {
	width: 100%;
	padding: 18px 24px;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background var(--transition);
}

.collapsible__toggle:hover {
	background: var(--bg-tertiary);
}

.collapsible__toggle::after {
	content: '+';
	font-size: 1.3rem;
	font-weight: 300;
	color: var(--text-muted);
	transition: transform var(--transition);
}

.collapsible__toggle.active::after {
	content: '\2212';
}

.collapsible__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.collapsible__content.active {
	max-height: 5000px;
}

.collapsible__body {
	padding: 0 24px 20px;
}

.collapsible__body ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.collapsible__body li {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* ===== PayPal Container ===== */
.paypal-container {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 32px;
	margin: 24px 0;
}

.paypal-container p {
	color: var(--text-secondary);
}

.paypal-container strong {
	color: var(--text-primary);
}

.paypal-container select {
	width: 100%;
	max-width: 400px;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	font-size: 0.95rem;
	font-family: inherit;
	margin-bottom: 20px;
	cursor: pointer;
}

.paypal-container select:focus {
	outline: none;
	border-color: var(--accent-gold);
}

#paypal-button-container {
	max-width: 400px;
}

/* ===== Landing Page Specific ===== */
.landing-hero {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 60%);
	border-bottom: 1px solid var(--border-color);
	padding: 120px 24px 80px;
}

.landing-hero__logo {
	max-width: 180px;
	margin: 0 auto 32px;
	opacity: 0.9;
}

.landing-hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin-bottom: 12px;
}

.landing-hero h2 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 400;
	color: var(--text-secondary);
	margin-bottom: 40px;
}

.landing-section {
	padding: 80px 0;
}

.landing-section + .landing-section {
	border-top: 1px solid var(--border-color);
}

.landing-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

@media (max-width: 768px) {
	.landing-grid-3 {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.landing-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 32px;
}

.landing-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 14px;
}

.landing-card p {
	color: var(--text-secondary);
	line-height: 1.7;
}

/* ===== Content Section with Image Background ===== */
.content-section {
	padding: 80px 0;
	position: relative;
}

.content-section--alt {
	background: var(--bg-secondary);
}

/* ===== Footer ===== */
.footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 40px 0;
	text-align: center;
}

.footer__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.footer p {
	color: var(--text-muted);
	font-size: 0.85rem;
	margin-top: 8px;
}

.footer a {
	color: var(--text-secondary);
}

/* ===== Utility Classes ===== */
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
	section {
		padding: 48px 0;
	}

	.hero {
		padding: 72px 0 56px;
	}

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

	.pricing-table {
		display: block;
		overflow-x: auto;
	}

	.paypal-container {
		padding: 24px 16px;
	}

	.download-actions {
		flex-direction: column;
	}

	.download-actions .btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}

	.hero__actions {
		flex-direction: column;
		align-items: center;
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* Skip to content for accessibility */
.skip-link {
	position: absolute;
	top: -100%;
	left: 16px;
	padding: 12px 24px;
	background: var(--accent-gold);
	color: var(--bg-primary);
	border-radius: var(--radius-sm);
	font-weight: 600;
	z-index: 10000;
}

.skip-link:focus {
	top: 8px;
}

/* ===== Calculators ===== */
.calculator-container,
.storage-calculator-container {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: 28px 32px;
	max-width: 480px;
	margin: 24px 0;
}

.calculator-container h4,
.storage-calculator-container h4 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.calculator-container label,
.storage-calculator-container label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-muted);
	margin: 14px 0 4px;
}

.calculator-container input,
.calculator-container select,
.storage-calculator-container input,
.storage-calculator-container select {
	display: block;
	width: 100%;
	padding: 8px 12px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	font-size: 0.9rem;
	font-family: inherit;
	transition: border-color var(--transition);
	box-sizing: border-box;
}

.calculator-container input:focus,
.calculator-container select:focus,
.storage-calculator-container input:focus,
.storage-calculator-container select:focus {
	outline: none;
	border-color: var(--accent-blue);
}

.calculator-container .result,
.storage-calculator-container .result {
	margin-top: 20px;
	padding: 14px 16px;
	background: rgba(74, 143, 212, 0.1);
	border: 1px solid rgba(74, 143, 212, 0.3);
	border-radius: var(--radius-sm);
	color: var(--accent-blue-light);
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
}

/* Image containers for guide pages */
.image-2-container {
	display: flex;
	gap: 20px;
	margin: 24px 0;
}

.image-2-container .image-box {
	text-align: center;
}

.image-2-container .image-box img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.prose .image-med-sml {
	margin: 24px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border-color);
	max-width: 62.5%;
}

.prose .image-med-sml img {
	width: 100%;
}

.prose .image-tiny {
	margin: 24px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border-color);
	max-width: 35%;
}

.prose .image-tiny img {
	width: 100%;
}

/* Tables within prose */
.prose .table-wrapper {
	overflow-x: auto;
	margin: 24px 0;
}

/* Generic table styling for prose content */
.prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 24px 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.prose table thead {
	background: var(--bg-tertiary);
}

.prose table th {
	padding: 14px 18px;
	text-align: left;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid var(--border-color);
}

.prose table td {
	padding: 14px 18px;
	font-size: 0.9rem;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
	vertical-align: top;
	line-height: 1.6;
}

.prose table tr:last-child td {
	border-bottom: none;
}

.prose table tbody tr:hover td {
	background: var(--bg-card-hover);
}

@media (max-width: 768px) {
	.prose .image-med-sml,
	.prose .image-tiny {
		max-width: 100%;
	}

	.prose table {
		display: block;
		overflow-x: auto;
	}
}

@media (max-width: 600px) {
	.image-2-container {
		flex-direction: column;
	}
}

/* ===== Search ===== */
.nav__search-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 8px 12px;
	font-size: 0.95rem;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	display: flex;
	align-items: center;
	line-height: 1;
}

.nav__search-btn:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

.nav__theme-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 8px 12px;
	font-size: 0.95rem;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	display: flex;
	align-items: center;
	line-height: 1;
}

.nav__theme-btn:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

.search-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
}

.search-modal.active {
	display: block;
}

.search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.search-modal__panel {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 72px auto 0;
	padding: 0 16px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

/* Custom search input box */
.search-box {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 8px;
}

.search-box__icon {
	color: var(--text-muted);
	font-size: 1rem;
	flex-shrink: 0;
}

.search-box__input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	color: var(--text-primary);
	font-size: 1.05rem;
	font-family: inherit;
	caret-color: var(--accent-gold);
}

.search-box__input::placeholder {
	color: var(--text-muted);
}

/* Search results list */
.search-results {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: calc(100vh - 260px);
	overflow-y: auto;
}

.search-result {
	display: block;
	padding: 14px 18px;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: all var(--transition);
}

.search-result:hover,
.search-result:focus {
	border-color: var(--accent-gold);
	background: var(--bg-card-hover);
	outline: none;
}

.search-result__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 3px;
}

.search-result__title--match {
	color: var(--accent-gold);
}

.search-result__page {
	font-size: 0.78rem;
	color: var(--accent-gold);
	font-weight: 500;
	margin-bottom: 6px;
}

.search-result__excerpt {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

.search-result__excerpt mark {
	background: rgba(200, 146, 42, 0.18);
	color: var(--accent-gold-light);
	border-radius: 2px;
	padding: 0 2px;
}

.search-no-results,
.search-loading {
	text-align: center;
	color: var(--text-muted);
	padding: 28px;
	font-size: 0.9rem;
}
