/**
 * RainmeterThemes Custom Design System & Stylesheet (v2.0.0)
 *
 * Inspired by Wallsflow (atmospheric dark glassmorphic grids & smooth card micro-interactions)
 * and VisualSkins (clean, high-clarity technical skin detail pages & download action rail).
 *
 * Features:
 * - Premium Dark UI default + full Light Mode support ([data-theme="light"])
 * - WCAG AA/AAA contrast ratios (>= 4.5:1 on all body and muted text)
 * - Zero third-party CSS framework dependencies
 * - Reserved min-height containers for optional Ad Slot Hooks (0.00 CLS)
 * - Full keyboard focus-visible indicators and prefers-reduced-motion support
 */

:root,
[data-theme="dark"] {
	--bg-primary: #0d0f14;
	--bg-secondary: #131720;
	--bg-surface: rgba(22, 27, 38, 0.82);
	--bg-surface-solid: #161b26;
	--bg-elevated: #1e2536;
	--bg-glass: rgba(19, 23, 32, 0.78);
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(124, 92, 255, 0.45);
	--text-primary: #f8fafc;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--accent-primary: #7c5cff;
	--accent-hover: #9175ff;
	--accent-cyan: #38bdf8;
	--accent-gradient: linear-gradient(135deg, #7c5cff 0%, #5b8def 100%);
	--shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
	--shadow-glow: 0 8px 26px -4px rgba(124, 92, 255, 0.38);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 9999px;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	--font-display: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	--container-max: 1280px;
	--header-height: 72px;
}

[data-theme="light"] {
	--bg-primary: #f8fafc;
	--bg-secondary: #f1f5f9;
	--bg-surface: rgba(255, 255, 255, 0.92);
	--bg-surface-solid: #ffffff;
	--bg-elevated: #f1f5f9;
	--bg-glass: rgba(255, 255, 255, 0.88);
	--border-subtle: rgba(15, 23, 42, 0.1);
	--border-strong: rgba(109, 76, 255, 0.45);
	--text-primary: #0f172a;
	--text-secondary: #334155;
	--text-muted: #475569;
	--accent-primary: #6344f5;
	--accent-hover: #5234e0;
	--accent-cyan: #0284c7;
	--shadow-card: 0 8px 24px -8px rgba(15, 23, 42, 0.1);
	--shadow-glow: 0 8px 22px -4px rgba(99, 68, 245, 0.28);
}

/* ==========================================================================
   1. Base Reset & Accessibility Foundations
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body.rmt-body {
	margin: 0;
	background-color: var(--bg-primary);
	color: var(--text-secondary);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

.rmt-main {
	flex: 1 0 auto;
	padding-bottom: 4rem;
}

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

a {
	color: var(--text-primary);
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

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

/* Visible Keyboard Focus Ring (WCAG 2.4.7 / 2.4.11) */
:focus-visible {
	outline: 2px solid var(--accent-cyan);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.rmt-skip-link:focus {
	clip: auto !important;
	clip-path: none;
	background: var(--accent-primary);
	color: #ffffff;
	font-weight: 600;
	height: auto;
	width: auto;
	padding: 0.75rem 1.25rem;
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-glow);
}

/* Layout Containers */
.rmt-container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.rmt-container--narrow {
	max-width: 880px;
}

/* ==========================================================================
   2. Sticky Glassmorphic Header & Navigation
   ========================================================================== */
.rmt-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--bg-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-subtle);
}

.rmt-header__inner {
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.rmt-header__brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
}

.rmt-header__logo img {
	max-height: 36px;
	width: auto;
}

.rmt-header__title-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--text-primary);
}

.rmt-header__brand-icon {
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	background: var(--accent-gradient);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-glow);
}

/* Primary Menu */
.rmt-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.rmt-nav__list > li {
	position: relative;
}

.rmt-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.rmt-nav__list > li > a:hover,
.rmt-nav__list > li.current-menu-item > a {
	color: var(--text-primary);
	background: var(--bg-elevated);
}

/* Dropdown Sub-Menu */
.rmt-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--bg-surface-solid);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 950;
}

.rmt-nav__list li:hover > .sub-menu,
.rmt-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rmt-nav__list .sub-menu li a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius-sm);
	font-size: 0.88rem;
	color: var(--text-secondary);
}

.rmt-nav__list .sub-menu li a:hover {
	color: var(--text-primary);
	background: var(--bg-elevated);
}

/* Header Search & Action Buttons */
.rmt-header__actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.rmt-header-search {
	position: relative;
}

.rmt-header-search__form {
	display: flex;
	align-items: center;
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	padding: 0.35rem 0.75rem;
	width: 250px;
	transition: border-color 0.2s ease, width 0.2s ease;
}

.rmt-header-search__form:focus-within {
	border-color: var(--accent-primary);
	width: 290px;
}

.rmt-header-search__icon {
	color: var(--text-muted);
	flex-shrink: 0;
}

.rmt-header-search__input {
	background: transparent;
	border: 0;
	color: var(--text-primary);
	font-size: 0.875rem;
	padding: 0.2rem 0.5rem;
	width: 100%;
	outline: none;
}

.rmt-header-search__input::placeholder {
	color: var(--text-muted);
}

.rmt-header-search__kbd {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-muted);
	background: var(--bg-elevated);
	border: 1px solid var(--border-subtle);
	border-radius: 4px;
	padding: 1px 6px;
}

/* Live Search Results Dropdown */
.rmt-live-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 380px;
	max-width: 92vw;
	background: var(--bg-surface-solid);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: 0.5rem;
	z-index: 999;
}

.rmt-live-search-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: var(--radius-sm);
	transition: background 0.15s ease;
}

.rmt-live-search-item:hover {
	background: var(--bg-elevated);
}

.rmt-live-search-item__thumb {
	width: 64px;
	height: 36px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--bg-secondary);
	flex-shrink: 0;
}

.rmt-live-search-item__title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-primary);
	display: block;
}

.rmt-live-search-item__meta {
	font-size: 0.75rem;
	color: var(--text-muted);
}

.rmt-live-search-footer {
	display: block;
	text-align: center;
	padding: 0.55rem;
	margin-top: 0.25rem;
	border-top: 1px solid var(--border-subtle);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--accent-hover);
}

/* Icon Buttons & Theme Toggle */
.rmt-icon-btn {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-subtle);
	background: var(--bg-secondary);
	color: var(--text-secondary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rmt-icon-btn:hover {
	color: var(--text-primary);
	border-color: var(--border-strong);
	background: var(--bg-elevated);
}

[data-theme="dark"] .rmt-icon-moon {
	display: none;
}

[data-theme="light"] .rmt-icon-sun {
	display: none;
}

.rmt-favorites-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background: var(--accent-primary);
	color: #ffffff;
	font-size: 0.68rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: var(--radius-pill);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.rmt-mobile-toggle {
	display: none;
}

/* Mobile Drawer */
.rmt-mobile-drawer {
	background: var(--bg-surface-solid);
	border-bottom: 1px solid var(--border-subtle);
	padding: 1rem 0;
}

.rmt-mobile-search {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.rmt-mobile-search input {
	flex: 1;
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	padding: 0.6rem 0.85rem;
}

.rmt-mobile-drawer__links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}

.rmt-mobile-drawer__links a {
	padding: 0.6rem 0.75rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
}

/* ==========================================================================
   3. Buttons, Badges & Pills
   ========================================================================== */
.rmt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rmt-btn--primary {
	background: var(--accent-gradient);
	color: #ffffff !important;
	box-shadow: var(--shadow-glow);
}

.rmt-btn--primary:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.rmt-btn--outline {
	background: var(--bg-surface);
	border-color: var(--border-subtle);
	color: var(--text-primary);
}

.rmt-btn--outline:hover {
	border-color: var(--accent-primary);
	background: var(--bg-elevated);
}

.rmt-btn--ghost {
	background: var(--bg-secondary);
	border-color: var(--border-subtle);
	color: var(--text-secondary);
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
}

.rmt-btn--ghost:hover,
.rmt-btn--ghost.is-saved {
	color: var(--text-primary);
	border-color: var(--accent-primary);
}

.rmt-btn--download {
	width: 100%;
	padding: 0.95rem 1.25rem;
	background: var(--accent-gradient);
	color: #ffffff !important;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-glow);
	text-align: left;
	justify-content: flex-start;
	gap: 0.85rem;
}

.rmt-btn--download:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.rmt-btn--download__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.rmt-btn--download__text strong {
	font-size: 1.05rem;
}

.rmt-btn--download__text small {
	font-size: 0.76rem;
	opacity: 0.9;
	font-family: var(--font-mono);
	margin-top: 2px;
	word-break: break-all;
}

.rmt-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-pill);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.rmt-badge--accent {
	background: rgba(124, 92, 255, 0.18);
	color: var(--accent-hover);
	border: 1px solid rgba(124, 92, 255, 0.35);
}

.rmt-badge--subtle {
	background: var(--bg-elevated);
	color: var(--text-secondary);
	border: 1px solid var(--border-subtle);
}

.rmt-badge--mono {
	background: rgba(56, 189, 248, 0.14);
	color: var(--accent-cyan);
	border: 1px solid rgba(56, 189, 248, 0.3);
	font-family: var(--font-mono);
}

.rmt-badge--outline {
	border: 1px solid var(--border-subtle);
	color: var(--text-muted);
}

.rmt-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.85rem;
	border-radius: var(--radius-pill);
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-size: 0.84rem;
	font-weight: 500;
	white-space: nowrap;
	transition: all 0.18s ease;
}

.rmt-pill:hover,
.rmt-pill.is-active {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

/* ==========================================================================
   4. Homepage Hero & Discovery Sections
   ========================================================================== */
.rmt-hero {
	position: relative;
	padding: 4rem 0 3.25rem;
	background:
		radial-gradient(circle at 20% 10%, rgba(124, 92, 255, 0.18) 0%, transparent 45%),
		radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%);
	border-bottom: 1px solid var(--border-subtle);
	text-align: center;
}

.rmt-hero__inner {
	max-width: 860px;
}

.rmt-hero__badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.rmt-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.2vw, 3.15rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--text-primary);
	margin: 0 0 1rem;
}

.rmt-hero__subtitle {
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	color: var(--text-secondary);
	max-width: 700px;
	margin: 0 auto 2rem;
}

.rmt-hero-search {
	display: flex;
	align-items: center;
	background: var(--bg-surface-solid);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-pill);
	padding: 0.4rem 0.45rem 0.4rem 1.25rem;
	box-shadow: var(--shadow-card);
	max-width: 720px;
	margin: 0 auto 1.25rem;
}

.rmt-hero-search__icon {
	color: var(--text-muted);
	flex-shrink: 0;
}

.rmt-hero-search__input {
	flex: 1;
	background: transparent;
	border: 0;
	color: var(--text-primary);
	font-size: 0.98rem;
	padding: 0.55rem 0.85rem;
	outline: none;
}

.rmt-hero-search__btn {
	border-radius: var(--radius-pill);
	padding: 0.65rem 1.5rem;
}

.rmt-hero__quick-tags {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rmt-hero__quick-label {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin-right: 0.25rem;
}

/* Home Sections */
.rmt-home-section {
	margin-top: 3.5rem;
}

.rmt-home-section--highlight {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 2.25rem;
}

.rmt-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rmt-section-header__title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
	letter-spacing: -0.015em;
}

.rmt-section-header__subtitle {
	margin: 0.3rem 0 0;
	font-size: 0.94rem;
	color: var(--text-muted);
}

.rmt-section-header__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-hover);
	white-space: nowrap;
}

.rmt-section-footer {
	margin-top: 1.5rem;
	text-align: center;
}

/* Category Cards Grid */
.rmt-category-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
	gap: 1rem;
}

.rmt-category-card {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.15rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rmt-category-card:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
	background: var(--bg-elevated);
}

.rmt-category-card__icon {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
	background: rgba(124, 92, 255, 0.14);
	color: var(--accent-hover);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rmt-category-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.2rem;
}

.rmt-category-card__desc {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.45;
}

/* ==========================================================================
   5. Wallsflow-Inspired Skin Cards & Responsive Grids
   ========================================================================== */
.rmt-skin-grid {
	display: grid;
	gap: 1.35rem;
}

.rmt-skin-grid--3col {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.rmt-skin-grid--4col {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rmt-skin-card {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-card);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.rmt-skin-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
}

.rmt-skin-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--bg-secondary);
	overflow: hidden;
}

.rmt-skin-card__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.rmt-skin-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rmt-skin-card:hover .rmt-skin-card__img {
	transform: scale(1.04);
}

.rmt-skin-card__badges {
	position: absolute;
	top: 0.65rem;
	left: 0.65rem;
	right: 0.65rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.rmt-skin-card__tag,
.rmt-skin-card__fav-btn {
	pointer-events: auto;
}

.rmt-skin-card__tag {
	background: rgba(13, 15, 20, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #f8fafc;
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 0.22rem 0.65rem;
	border-radius: var(--radius-pill);
	font-size: 0.74rem;
	font-weight: 600;
}

.rmt-skin-card__fav-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(13, 15, 20, 0.75);
	backdrop-filter: blur(8px);
	color: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rmt-skin-card__fav-btn:hover,
.rmt-skin-card__fav-btn.is-saved {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

.rmt-skin-card__fav-btn.is-saved svg {
	fill: currentColor;
}

.rmt-skin-card__body {
	padding: 0.95rem 1.1rem 1.05rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
	gap: 0.55rem;
}

.rmt-skin-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.38;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rmt-skin-card__title-link {
	color: var(--text-primary);
}

.rmt-skin-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border-subtle);
	padding-top: 0.55rem;
}

.rmt-skin-card__author {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.rmt-skin-card__spec {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--accent-cyan);
}

/* ==========================================================================
   6. Tabs, Filter Bar & Info Banner
   ========================================================================== */
.rmt-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.25rem;
}

.rmt-tab-btn {
	padding: 0.55rem 1rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-subtle);
	background: var(--bg-surface);
	color: var(--text-secondary);
	font-family: var(--font-sans);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rmt-tab-btn:hover {
	color: var(--text-primary);
	background: var(--bg-elevated);
}

.rmt-tab-btn.is-active {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

.rmt-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1rem 1.15rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	margin-bottom: 1.75rem;
}

.rmt-filter-bar__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rmt-sort-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rmt-sort-form__label {
	font-size: 0.84rem;
	color: var(--text-muted);
	white-space: nowrap;
}

.rmt-sort-form__select {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	padding: 0.45rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 500;
}

/* Getting Started Info Banner */
.rmt-info-banner {
	background: var(--bg-surface);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	padding: 2.25rem;
}

.rmt-info-banner__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.rmt-info-banner__title {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.5vw, 1.85rem);
	color: var(--text-primary);
	margin: 0.65rem 0;
}

.rmt-info-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.rmt-info-banner__steps {
	display: grid;
	gap: 0.85rem;
}

.rmt-step-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1rem 1.15rem;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.85rem;
	align-items: baseline;
}

.rmt-step-card__num {
	font-family: var(--font-mono);
	font-weight: 700;
	color: var(--accent-cyan);
	font-size: 0.9rem;
	grid-row: span 2;
}

.rmt-step-card h3 {
	margin: 0 0 0.2rem;
	font-size: 0.96rem;
	color: var(--text-primary);
}

.rmt-step-card p {
	margin: 0;
	font-size: 0.83rem;
	color: var(--text-muted);
}

/* ==========================================================================
   7. Single Skin Detail Page (VisualSkins-Inspired Layout)
   ========================================================================== */
.rmt-breadcrumbs {
	padding: 1.25rem 0 0.75rem;
}

.rmt-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.84rem;
	color: var(--text-muted);
}

.rmt-breadcrumbs__link {
	color: var(--text-secondary);
}

.rmt-breadcrumbs__current {
	color: var(--text-primary);
	font-weight: 500;
}

.rmt-single-skin__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rmt-single-skin__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.55rem;
}

.rmt-single-skin__title {
	font-family: var(--font-display);
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 800;
	color: var(--text-primary);
	margin: 0;
	line-height: 1.2;
}

.rmt-single-skin__quick-actions {
	display: flex;
	gap: 0.5rem;
}

.rmt-single-skin__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 2rem;
	align-items: start;
}

.rmt-showcase-stage {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 0.75rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-card);
}

.rmt-showcase-stage__primary {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-secondary);
}

.rmt-showcase-stage__img {
	width: 100%;
	height: auto;
	cursor: zoom-in;
}

.rmt-showcase-stage__zoom {
	position: absolute;
	bottom: 0.85rem;
	right: 0.85rem;
	background: rgba(13, 15, 20, 0.82);
	backdrop-filter: blur(8px);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-sm);
	padding: 0.45rem 0.8rem;
	font-size: 0.8rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.rmt-showcase-stage__thumbs {
	display: flex;
	gap: 0.65rem;
	margin-top: 0.75rem;
	overflow-x: auto;
}

.rmt-showcase-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-secondary);
	cursor: pointer;
	width: 120px;
	flex-shrink: 0;
	opacity: 0.7;
	transition: opacity 0.18s ease, border-color 0.18s ease;
}

.rmt-showcase-thumb.is-active,
.rmt-showcase-thumb:hover {
	opacity: 1;
	border-color: var(--accent-primary);
}

.rmt-card-section {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1.65rem;
	margin-bottom: 1.5rem;
}

.rmt-section-heading {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 1rem;
	padding-left: 0.75rem;
	border-left: 4px solid var(--accent-primary);
}

/* Prose Content Formatting */
.rmt-prose h2,
.rmt-prose h3 {
	font-family: var(--font-display);
	color: var(--text-primary);
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	padding-left: 0.75rem;
	border-left: 4px solid var(--accent-primary);
	font-size: 1.2rem;
}

.rmt-prose p {
	margin-top: 0;
	margin-bottom: 1rem;
}

.rmt-prose ul,
.rmt-prose ol {
	padding-left: 1.35rem;
	margin-bottom: 1rem;
}

.rmt-prose li {
	margin-bottom: 0.55rem;
}

.rmt-prose a {
	color: var(--accent-cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rmt-install-steps {
	margin: 0;
	padding-left: 1.25rem;
}

.rmt-install-steps li {
	margin-bottom: 0.75rem;
}

.rmt-single-skin__tags-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.rmt-tag-group,
.rmt-share-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rmt-tag-group__label,
.rmt-share-bar__label {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--text-muted);
}

.rmt-tag-group__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.rmt-share-btn {
	padding: 0.35rem 0.75rem;
	border-radius: var(--radius-sm);
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.rmt-share-btn:hover {
	color: var(--text-primary);
	border-color: var(--accent-primary);
}

/* Sticky Right Sidebar & Specs List */
.rmt-single-skin__sidebar {
	position: sticky;
	top: calc(var(--header-height) + 1.25rem);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.rmt-download-card,
.rmt-sidebar-widget {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1.35rem;
	box-shadow: var(--shadow-card);
}

.rmt-download-card__heading {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 1rem;
}

.rmt-spec-list {
	margin: 1.25rem 0 0;
	padding: 0;
}

.rmt-spec-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0;
	border-bottom: 1px dashed var(--border-subtle);
	font-size: 0.88rem;
}

.rmt-spec-list__row dt {
	color: var(--text-muted);
	font-weight: 500;
}

.rmt-spec-list__row dd {
	margin: 0;
	color: var(--text-primary);
	font-weight: 600;
	text-align: right;
}

/* Star Rating Widget */
.rmt-rating-box {
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-subtle);
}

.rmt-rating-box__header {
	display: flex;
	justify-content: space-between;
	font-size: 0.82rem;
	margin-bottom: 0.4rem;
}

.rmt-rating-stars {
	display: flex;
	gap: 0.25rem;
}

.rmt-star-btn {
	background: transparent;
	border: 0;
	font-size: 1.3rem;
	color: var(--text-muted);
	cursor: pointer;
	padding: 0 2px;
	transition: color 0.15s ease, transform 0.15s ease;
}

.rmt-star-btn:hover,
.rmt-star-btn.is-filled {
	color: #fbbf24;
	transform: scale(1.1);
}

/* Sidebar Mini Skin List */
.rmt-mini-skin-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.rmt-mini-skin {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.45rem;
	border-radius: var(--radius-sm);
	transition: background 0.15s ease;
}

.rmt-mini-skin:hover {
	background: var(--bg-elevated);
}

.rmt-mini-skin__img {
	width: 96px;
	height: 54px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--bg-secondary);
	flex-shrink: 0;
}

.rmt-mini-skin__title {
	margin: 0 0 0.2rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rmt-mini-skin__tag {
	font-size: 0.72rem;
	color: var(--accent-cyan);
}

/* Post Prev / Next Nav */
.rmt-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}

.rmt-post-nav__item {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
}

.rmt-post-nav__item--next {
	text-align: right;
}

.rmt-post-nav__label {
	display: block;
	font-size: 0.76rem;
	color: var(--text-muted);
	margin-bottom: 0.25rem;
}

.rmt-post-nav__link {
	font-weight: 600;
	font-size: 0.94rem;
}

.rmt-related-section {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   8. Archive Headers, Pagination, Pages, Forms & Download Confirm
   ========================================================================== */
.rmt-archive-header {
	padding: 1.5rem 0;
	margin-bottom: 1rem;
}

.rmt-archive-header__top {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.6rem;
}

.rmt-archive-header__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 0.65rem;
}

.rmt-archive-header__desc {
	max-width: 780px;
	color: var(--text-secondary);
}

.rmt-pagination {
	margin-top: 2.5rem;
}

.rmt-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rmt-pagination .page-numbers a,
.rmt-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.85rem;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.9rem;
}

.rmt-pagination .page-numbers .current,
.rmt-pagination .page-numbers a:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #ffffff;
}

/* Static Pages & Contact Form */
.rmt-page-card,
.rmt-download-confirm__card,
.rmt-empty-state {
	background: var(--bg-surface);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 2.25rem;
	margin-top: 1rem;
	box-shadow: var(--shadow-card);
}

.rmt-empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
}

.rmt-empty-state__tags,
.rmt-empty-state__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.rmt-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.rmt-form-group {
	margin-bottom: 1.15rem;
}

.rmt-form-group label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-primary);
	margin-bottom: 0.4rem;
}

.rmt-form-group input,
.rmt-form-group textarea {
	width: 100%;
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	padding: 0.7rem 0.9rem;
	font-family: var(--font-sans);
	font-size: 0.95rem;
}

.rmt-alert {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1.5rem;
}

.rmt-alert--success {
	background: rgba(16, 185, 129, 0.15);
	border: 1px solid rgba(16, 185, 129, 0.4);
	color: #34d399;
}

.rmt-alert--error {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #f87171;
}

/* Download Confirmation State */
.rmt-download-confirm__summary {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 1.75rem;
	align-items: center;
	margin: 1.5rem 0;
	padding: 1.25rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
}

.rmt-download-confirm__thumb {
	border-radius: var(--radius-sm);
	width: 100%;
}

.rmt-download-confirm__specs {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: 0.92rem;
}

.rmt-download-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ==========================================================================
   9. Non-CLS Ad Slot Hooks (Zero Layout Shift)
   ========================================================================== */
.rmt-ad-slot {
	margin: 1.5rem 0;
	background: var(--bg-secondary);
	border: 1px dashed var(--border-subtle);
	border-radius: var(--radius-md);
	padding: 0.5rem;
	text-align: center;
	contain: layout;
}

.rmt-ad-slot--leaderboard {
	min-height: 110px;
}

.rmt-ad-slot--rectangle {
	min-height: 270px;
}

.rmt-ad-slot__label {
	display: block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 0.25rem;
}

/* ==========================================================================
   10. Footer, Modals, Lightbox, Toast & Back-to-Top
   ========================================================================== */
.rmt-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-subtle);
	padding: 3.5rem 0 2rem;
	margin-top: auto;
}

.rmt-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--border-subtle);
}

.rmt-footer__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.rmt-footer__desc {
	font-size: 0.88rem;
	color: var(--text-muted);
	margin: 0 0 1rem;
}

.rmt-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.rmt-footer__heading {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 0.85rem;
}

.rmt-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: 0.88rem;
}

.rmt-footer__links a {
	color: var(--text-muted);
}

.rmt-footer__links a:hover {
	color: var(--text-primary);
}

.rmt-footer__bottom {
	padding-top: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.82rem;
	color: var(--text-muted);
}

.rmt-footer__bottom-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}

/* Modal & Lightbox */
.rmt-modal,
.rmt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.rmt-modal[hidden],
.rmt-lightbox[hidden] {
	display: none !important;
}

.rmt-modal__backdrop,
.rmt-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 15, 0.82);
	backdrop-filter: blur(8px);
}

.rmt-modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 82vh;
	background: var(--bg-surface-solid);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1;
}

.rmt-modal__header {
	padding: 1.15rem 1.35rem;
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rmt-modal__title {
	margin: 0;
	font-size: 1.1rem;
	color: var(--text-primary);
}

.rmt-modal__body {
	padding: 1.25rem;
	overflow-y: auto;
}

.rmt-lightbox__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	text-align: center;
}

.rmt-lightbox__img {
	max-width: 100%;
	max-height: 82vh;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
}

.rmt-lightbox__caption {
	margin-top: 0.65rem;
	color: #f8fafc;
	font-size: 0.9rem;
}

.rmt-lightbox__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(13, 15, 20, 0.8);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rmt-back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 850;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--border-strong);
	background: var(--bg-surface-solid);
	color: var(--text-primary);
	box-shadow: var(--shadow-card);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rmt-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2500;
	background: var(--accent-primary);
	color: #ffffff;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.65rem 1.25rem;
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   11. Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 1024px) {
	.rmt-nav,
	.rmt-header-search {
		display: none;
	}

	.rmt-mobile-toggle {
		display: inline-flex;
	}

	.rmt-single-skin__grid,
	.rmt-info-banner__grid {
		grid-template-columns: 1fr;
	}

	.rmt-single-skin__sidebar {
		position: static;
	}

	.rmt-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.rmt-hero {
		padding: 2.5rem 0 2rem;
	}

	.rmt-hero-search {
		flex-direction: column;
		border-radius: var(--radius-md);
		padding: 0.65rem;
		gap: 0.5rem;
	}

	.rmt-hero-search__icon {
		display: none;
	}

	.rmt-hero-search__input,
	.rmt-hero-search__btn {
		width: 100%;
	}

	.rmt-skin-grid--3col,
	.rmt-skin-grid--4col,
	.rmt-post-nav,
	.rmt-form-grid,
	.rmt-download-confirm__summary,
	.rmt-footer__grid {
		grid-template-columns: 1fr;
	}
}

@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;
	}
}
