/*
Theme Name: PlayVault
Theme URI: https://example.com/playvault
Author: PlayVault
Author URI: https://example.com
Description: A modern game & ROM download directory theme — spec tables, publisher/developer/collection taxonomies, star ratings, live download counters, configurable detail boxes, AJAX load-more and structured data. Original navy + cyan/violet design.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playvault
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
	--pv-bg:        #f5f7fb;
	--pv-bg-2:      #eef2f8;
	--pv-panel:     #ffffff;
	--pv-panel-2:   #eef2f7;
	--pv-border:    rgba(16,24,44,.09);
	--pv-border-2:  rgba(16,24,44,.16);
	--pv-text:      #2b3446;
	--pv-heading:   #101828;
	--pv-muted:     #58657f;
	--pv-faint:     #8a93ac;
	--pv-surface:       rgba(16,24,44,.04);
	--pv-surface-hover: rgba(16,24,44,.07);
	--pv-cyan:      #059669;
	--pv-violet:    #0d9488;
	--pv-on-accent: #ffffff;
	--pv-grad:      linear-gradient(135deg, #10b981 0%, #14b8a6 55%, #06b6d4 100%);
	--pv-grad-soft: linear-gradient(135deg, rgba(16,185,129,.14), rgba(6,182,212,.14));
	--pv-gold:      #f59e0b;
	--pv-green:     #10b981;
	--pv-shadow:    0 10px 30px -14px rgba(16,24,44,.18);
	--pv-shadow-lg: 0 24px 60px -22px rgba(16,24,44,.24);
	--pv-radius:    16px;
	--pv-radius-sm: 11px;
	--pv-maxw:      1200px;
	--pv-head-h:    66px;
	--pv-font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--pv-display:   'Space Grotesk', var(--pv-font);
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pv-head-h) + 16px); }

body {
	margin: 0;
	font-family: var(--pv-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--pv-text);
	background:
		radial-gradient(1100px 540px at 82% -8%, rgba(20,184,166,.10), transparent 60%),
		radial-gradient(900px 520px at 6% 2%, rgba(16,185,129,.10), transparent 55%),
		var(--pv-bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--pv-display); font-weight: 700; line-height: 1.2; color: var(--pv-heading); }

a { color: var(--pv-cyan); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--pv-violet); }

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

p { margin: 0 0 1.1em; }

.pv-wrap { max-width: var(--pv-maxw); margin-inline: auto; padding-inline: 20px; }

.pv-skip {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--pv-cyan); color: #042027; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.pv-skip:focus { left: 0; }

.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.pv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 12px 22px; border-radius: 999px; font-weight: 700; font-family: var(--pv-display);
	font-size: 15px; cursor: pointer; border: 1px solid transparent; line-height: 1; white-space: nowrap;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.pv-btn--download {
	background: var(--pv-grad); color: #fff;
	box-shadow: 0 10px 26px -10px rgba(16,185,129,.6);
}
.pv-btn--download:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(20,184,166,.7); }
.pv-btn--download svg { color: #fff; }
.pv-btn--ghost {
	background: var(--pv-surface); color: var(--pv-text); border-color: var(--pv-border-2);
}
.pv-btn--ghost:hover { color: var(--pv-heading); border-color: var(--pv-cyan); background: rgba(16,185,129,.08); transform: translateY(-2px); }
.pv-btn.is-loading { opacity: .7; pointer-events: none; }

/* Download countdown — see PlayVault → Download Button Timer. */
.pv-btn--download.is-counting {
	background: var(--pv-panel-2); color: var(--pv-muted); border-color: var(--pv-border-2);
	box-shadow: none; cursor: progress; font-variant-numeric: tabular-nums;
}
.pv-btn--download.is-counting:hover { color: var(--pv-muted); transform: none; box-shadow: none; }
.pv-btn--download.is-counting svg { color: var(--pv-muted); opacity: .55; }
.pv-btn--download.is-ready { animation: pv-btn-pulse 1.4s ease-out 3; }
@keyframes pv-btn-pulse {
	0%   { box-shadow: 0 10px 26px -10px rgba(16,185,129,.6), 0 0 0 0 rgba(16,185,129,.45); }
	70%  { box-shadow: 0 10px 26px -10px rgba(16,185,129,.6), 0 0 0 13px rgba(16,185,129,0); }
	100% { box-shadow: 0 10px 26px -10px rgba(16,185,129,.6), 0 0 0 0 rgba(16,185,129,0); }
}
@media (prefers-reduced-motion: reduce) {
	.pv-btn--download.is-ready { animation: none; }
}

/* =========================================================================
   Header
   ========================================================================= */
.pv-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.72);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease;
}
.pv-header.is-stuck {
	border-bottom-color: var(--pv-border);
	background: rgba(255,255,255,.9);
	box-shadow: 0 12px 30px -22px rgba(16,24,44,.4);
}
.pv-header__inner {
	display: flex; align-items: center; gap: 18px;
	max-width: var(--pv-maxw); margin-inline: auto; padding: 12px 20px;
	height: var(--pv-head-h);
}

.pv-brand { display: flex; align-items: center; }
.pv-brand__logo img { max-height: 40px; width: auto; }
.pv-brand__text, .custom-logo-link {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--pv-display); font-weight: 700; font-size: 22px; color: var(--pv-heading); letter-spacing: -.02em;
}
.pv-brand__text:hover { color: var(--pv-heading); }
.pv-brand__mark {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
	background: var(--pv-grad); color: #051018; font-size: 13px; box-shadow: 0 6px 16px -6px rgba(16,185,129,.7);
}

.pv-nav { margin-left: 8px; }
.pv-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.pv-menu li { position: relative; }
.pv-menu a {
	display: block; padding: 9px 14px; border-radius: 10px; color: var(--pv-muted);
	font-weight: 600; font-size: 14.5px;
}
.pv-menu a:hover, .pv-menu .current-menu-item > a, .pv-menu .current-cat > a {
	color: var(--pv-heading); background: var(--pv-surface-hover);
}
.pv-menu > li > a { display: flex; align-items: center; gap: 8px; }
.pv-menu > li > a::before {
	content: ''; width: 15px; height: 15px; flex: none; background-color: currentColor; opacity: .6;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4.8' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='10.8' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='16.8' width='12' height='2.4' rx='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4.8' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='10.8' width='18' height='2.4' rx='1.2'/%3E%3Crect x='3' y='16.8' width='12' height='2.4' rx='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pv-menu a:hover::before, .pv-menu .current-menu-item > a::before, .pv-menu .current-cat > a::before { opacity: .85; }
.pv-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; list-style: none; margin: 0; padding: 7px;
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: 12px;
	box-shadow: var(--pv-shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: .18s ease; z-index: 30;
}
.pv-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Dropdown caret on items that have a submenu */
.pv-menu .menu-item-has-children > a,
.pv-menu .cat-parent > a,
.pv-menu .page_item_has_children > a { display: flex; align-items: center; gap: 6px; }
.pv-menu .menu-item-has-children > a::after,
.pv-menu .cat-parent > a::after,
.pv-menu .page_item_has_children > a::after {
	content: ''; flex: none; width: 7px; height: 7px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease; opacity: .8;
}
.pv-menu .menu-item-has-children:hover > a::after,
.pv-menu .cat-parent:hover > a::after,
.pv-menu .page_item_has_children:hover > a::after { transform: rotate(-135deg); margin-top: 2px; }

/* Mobile submenu toggle button (injected by JS; hidden on desktop) */
.pv-subtoggle {
	display: none; position: absolute; top: 0; right: 0; width: 50px; height: 46px;
	place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--pv-text); z-index: 2;
}
.pv-subtoggle::before {
	content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; opacity: .75;
}
.pv-menu li.pv-sub-open > .pv-subtoggle::before { transform: rotate(-135deg); margin-top: 3px; }

.pv-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pv-search-toggle, .pv-burger {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
	background: var(--pv-surface); border: 1px solid var(--pv-border); color: var(--pv-text); cursor: pointer;
	transition: .15s ease;
}
.pv-search-toggle:hover { color: var(--pv-heading); border-color: var(--pv-cyan); }

/* Inline "Site search" box (desktop only; mobile keeps the toggle + dropdown) */
.pv-header-search { display: none; position: relative; align-items: center; }
.pv-header-search__input {
	width: 210px; padding: 9px 40px 9px 14px; border-radius: 10px;
	background: var(--pv-panel); border: 1px solid var(--pv-border-2); color: var(--pv-text);
	font-size: 14px; font-family: var(--pv-font);
}
.pv-header-search__input::placeholder { color: var(--pv-faint); }
.pv-header-search__input:focus { outline: none; border-color: var(--pv-cyan); box-shadow: 0 0 0 3px rgba(16,185,129,.14); width: 250px; }
.pv-header-search__btn {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
	border: 0; background: transparent; color: var(--pv-muted); cursor: pointer;
}
.pv-header-search__btn:hover { color: var(--pv-cyan); }
@media (min-width: 821px) {
	.pv-header-search { display: flex; }
	.pv-search-toggle { display: none; }
}

.pv-burger { display: none; flex-direction: column; gap: 4px; }
.pv-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .2s ease; }
.pv-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pv-burger.is-open span:nth-child(2) { opacity: 0; }
.pv-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.pv-searchbar {
	max-height: 0; overflow: hidden; background: rgba(255,255,255,.96);
	border-bottom: 1px solid transparent; transition: max-height .25s ease, border-color .25s ease;
}
.pv-searchbar.is-open { max-height: 90px; border-bottom-color: var(--pv-border); }
.pv-searchbar__inner { max-width: var(--pv-maxw); margin-inline: auto; padding: 14px 20px; }

/* Search form */
.pv-search { position: relative; display: flex; align-items: center; }
.pv-search__icon { position: absolute; left: 16px; color: var(--pv-muted); pointer-events: none; }
.pv-search__input {
	flex: 1; width: 100%; padding: 13px 110px 13px 44px; border-radius: 999px;
	background: var(--pv-panel); border: 1px solid var(--pv-border-2); color: var(--pv-text); font-size: 15px;
	font-family: var(--pv-font);
}
.pv-search__input::placeholder { color: var(--pv-faint); }
.pv-search__input:focus { outline: none; border-color: var(--pv-cyan); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.pv-search__submit {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
	padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--pv-grad); color: #fff; font-weight: 700; font-family: var(--pv-display); font-size: 14px;
}

/* =========================================================================
   Hero
   ========================================================================= */
.pv-hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.pv-hero__bg {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(620px 320px at 78% 20%, rgba(6,182,212,.28), transparent 60%),
		radial-gradient(560px 300px at 12% 0%, rgba(16,185,129,.22), transparent 60%);
}
.pv-hero__inner {
	position: relative; z-index: 1; max-width: var(--pv-maxw); margin-inline: auto; padding-inline: 20px;
	display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.pv-hero__eyebrow {
	display: inline-block; font-family: var(--pv-display); font-weight: 600; font-size: 13px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--pv-cyan);
	padding: 6px 14px; border: 1px solid var(--pv-border-2); border-radius: 999px; background: rgba(16,185,129,.06);
}
.pv-hero__title { font-size: clamp(34px, 5vw, 56px); margin: 16px 0 10px; letter-spacing: -.02em; }
.pv-hero__tagline { font-size: 18px; color: var(--pv-muted); max-width: 46ch; margin-bottom: 22px; }
.pv-hero__search { max-width: 520px; margin-bottom: 18px; }

/* Spotlight card */
.pv-spotlight {
	display: block; border-radius: var(--pv-radius); overflow: hidden;
	background: var(--pv-panel); border: 1px solid var(--pv-border); box-shadow: var(--pv-shadow-lg);
	transition: transform .2s ease, border-color .2s ease;
}
.pv-spotlight:hover { transform: translateY(-4px); border-color: var(--pv-border-2); }
.pv-spotlight__media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.pv-spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.pv-spotlight__tag {
	position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px;
	background: var(--pv-grad); color: #fff; font-family: var(--pv-display); font-weight: 700; font-size: 12px;
	letter-spacing: .03em;
}
.pv-spotlight__body { padding: 18px 20px 20px; }
.pv-spotlight__title { font-size: 22px; margin: 0 0 10px; }
.pv-spotlight__meta { display: flex; align-items: center; gap: 16px; color: var(--pv-muted); font-size: 14px; }
.pv-spotlight__rate { display: inline-flex; align-items: center; gap: 7px; }
.pv-spotlight__rate b { color: var(--pv-gold); }

/* =========================================================================
   Sections
   ========================================================================= */
.pv-section { padding-block: 40px; }
.pv-section--alt {
	background:
		linear-gradient(180deg, rgba(16,24,44,.02), transparent),
		var(--pv-bg-2);
	border-block: 1px solid var(--pv-border);
}
.pv-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pv-section__title { display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 2.6vw, 28px); margin: 0; }
.pv-section__bar { width: 5px; height: 26px; border-radius: 4px; background: var(--pv-grad); display: inline-block; }
.pv-section__more { font-family: var(--pv-display); font-weight: 600; font-size: 14.5px; color: var(--pv-muted); }
.pv-section__more:hover { color: var(--pv-cyan); }

.pv-home-intro { padding: 36px 20px; }
.pv-home-intro__title { font-size: 26px; margin: 0 0 12px; }
.pv-home-intro__content { color: var(--pv-muted); max-width: 75ch; }

/* =========================================================================
   Card grid
   ========================================================================= */
.pv-grid {
	display: grid; gap: 22px;
	grid-template-columns: repeat(5, 1fr);
}
.pv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pv-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pv-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Archive toolbar: sort pills + grid/list view toggle */
.pv-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.pv-sortbar { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-sortbar__btn {
	padding: 9px 16px; border-radius: 8px; background: var(--pv-gold); color: var(--pv-heading);
	font-weight: 600; font-size: 13.5px; border: 1px solid transparent; transition: .15s ease;
}
.pv-sortbar__btn:hover { filter: brightness(.94); }
.pv-sortbar__btn.is-active { background: var(--pv-heading); color: #fff; }

.pv-viewtoggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--pv-heading); flex-shrink: 0; }
.pv-viewtoggle__btn {
	display: inline-grid; place-items: center; width: 36px; height: 32px; border-radius: 7px; border: 0;
	background: transparent; color: rgba(255,255,255,.55); cursor: pointer; transition: .15s ease;
}
.pv-viewtoggle__btn:hover { color: #fff; }
.pv-viewtoggle__btn.is-active { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 640px) { .pv-toolbar { flex-direction: column; align-items: stretch; } }

/* List view */
.pv-grid--list { grid-template-columns: 1fr !important; gap: 14px; }
.pv-grid--list .pv-card { flex-direction: row; }
.pv-grid--list .pv-card__media { width: 130px; flex: 0 0 130px; aspect-ratio: 3/4; }
.pv-grid--list .pv-card__body { flex: 1; }
.pv-grid--list .pv-card__play { display: none; }
@media (max-width: 480px) {
	.pv-grid--list .pv-card__media { width: 96px; flex-basis: 96px; }
}

.pv-card {
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pv-card:hover { transform: translateY(-5px); border-color: var(--pv-border-2); box-shadow: var(--pv-shadow-lg); }
.pv-card__media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--pv-panel-2); }
.pv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pv-card:hover .pv-card__media img { transform: scale(1.06); }
.pv-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
	font-family: var(--pv-display); font-weight: 600; color: var(--pv-faint);
	background: var(--pv-grad-soft);
}
.pv-card__ribbon {
	position: absolute; top: 0; left: 0; z-index: 2; padding: 5px 12px; border-radius: 0 0 8px 0;
	background: var(--pv-gold); color: var(--pv-heading); font-size: 10.5px; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase;
}
.pv-card__badge {
	position: absolute; top: 10px; left: 10px; padding: 5px 11px; border-radius: 8px;
	background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--pv-heading); font-size: 11.5px; font-weight: 600;
	border: 1px solid var(--pv-border-2);
}
.pv-card--badged .pv-card__badge, .pv-card--badged .pv-card__rate { top: 38px; }
.pv-card__rate {
	position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px;
	padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
	color: var(--pv-gold); font-weight: 700; font-size: 12px; border: 1px solid var(--pv-border-2);
}
.pv-card__play {
	position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center; background: var(--pv-grad); color: #fff;
	opacity: 0; transform: translateY(8px) scale(.9); transition: .22s ease; box-shadow: 0 10px 22px -8px rgba(16,185,129,.7);
}
.pv-card:hover .pv-card__play { opacity: 1; transform: translateY(0) scale(1); }
.pv-card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pv-card__cat {
	align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	color: var(--pv-cyan);
}
.pv-card__title { font-size: 15.5px; margin: 0; line-height: 1.3; }
.pv-card__title a { color: var(--pv-heading); }
.pv-card__title a:hover { color: var(--pv-cyan); }
.pv-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--pv-faint); margin-top: auto; }
.pv-card__meta span { position: relative; }
.pv-card__meta span + span::before { content: '\2022'; margin-right: 10px; color: var(--pv-faint); }
.pv-card__stats { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--pv-muted); }

.pv-dlstat { display: inline-flex; align-items: center; gap: 5px; color: var(--pv-muted); }
.pv-dlstat__icon { color: var(--pv-cyan); }
.pv-dlstat__label { color: var(--pv-faint); }

/* Stars */
.pv-stars { --pv-rating: 0; position: relative; display: inline-block; font-size: 15px; line-height: 1; white-space: nowrap; }
.pv-stars::before { content: '\2605\2605\2605\2605\2605'; color: rgba(16,24,44,.16); letter-spacing: 2px; }
.pv-stars__fill { position: absolute; top: 0; left: 0; overflow: hidden; width: calc(var(--pv-rating) / 5 * 100%); }
.pv-stars__fill::before { content: '\2605\2605\2605\2605\2605'; color: var(--pv-gold); letter-spacing: 2px; }

/* Chips */
.pv-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.pv-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	background: var(--pv-surface); border: 1px solid var(--pv-border); color: var(--pv-text); font-size: 14px; font-weight: 600;
	transition: .15s ease;
}
.pv-chip:hover { color: var(--pv-heading); border-color: var(--pv-cyan); background: rgba(16,185,129,.08); transform: translateY(-2px); }
.pv-chip b { font-size: 12px; color: var(--pv-faint); font-weight: 700; }
.pv-chip:hover b { color: var(--pv-cyan); }

.pv-loadmore { display: flex; justify-content: center; margin-top: 30px; }

/* Taxonomy term cards (Browse by Badge etc.) */
.pv-termcard {
	position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--pv-radius);
	overflow: hidden; border: 1px solid var(--pv-border); background: var(--pv-panel-2);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pv-termcard:hover { transform: translateY(-4px); border-color: var(--pv-border-2); box-shadow: var(--pv-shadow-lg); }
.pv-termcard__media { position: absolute; inset: 0; }
.pv-termcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pv-termcard:hover .pv-termcard__media img { transform: scale(1.06); }
.pv-termcard__media--ph { background: var(--pv-grad); }
.pv-termcard__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 14px 16px;
	background: linear-gradient(to top, rgba(8,12,24,.85) 0%, rgba(8,12,24,.4) 45%, transparent 78%);
}
.pv-termcard__name { font-family: var(--pv-display); font-weight: 700; font-size: 17px; color: #fff; line-height: 1.2; }
.pv-termcard__count { font-size: 12.5px; color: rgba(255,255,255,.82); }

/* =========================================================================
   Layout (with sidebar)
   ========================================================================= */
.pv-layout { padding-block: 34px; }
.pv-layout--sidebar { display: grid; grid-template-columns: 1fr 312px; gap: 34px; align-items: start; }

.pv-archive-head { margin-bottom: 24px; }
.pv-archive-head__kicker {
	display: inline-block; font-family: var(--pv-display); font-weight: 600; font-size: 12px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--pv-cyan); margin-bottom: 8px;
}
.pv-archive-head__title { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.pv-archive-head__title span { color: var(--pv-cyan); }
.pv-archive-head__desc { color: var(--pv-muted); margin-top: 10px; max-width: 70ch; }
.pv-archive-head__count { color: var(--pv-faint); font-size: 14px; margin-top: 6px; }
.pv-archive-head__searchform, .pv-archive-head__search { margin-top: 16px; max-width: 520px; }

.pv-empty {
	padding: 50px 20px; text-align: center; color: var(--pv-muted);
	background: var(--pv-panel); border: 1px dashed var(--pv-border-2); border-radius: var(--pv-radius);
}

/* Breadcrumb sits above the two-column layout grid, spanning both columns */
.pv-layout--sidebar > .pv-breadcrumb { grid-column: 1 / -1; margin-bottom: 6px; }

/* FAQ (used by the "Games Library" page template) */
.pv-faq { margin-top: 28px; }
.pv-faq .pv-section__title { font-size: 20px; margin: 0 0 14px; }
.pv-faq__item {
	border: 1px solid var(--pv-border); border-radius: var(--pv-radius-sm); padding: 14px 18px; margin-bottom: 10px;
	background: var(--pv-panel);
}
.pv-faq__q { cursor: pointer; font-weight: 600; color: var(--pv-heading); list-style: none; }
.pv-faq__q::-webkit-details-marker { display: none; }
.pv-faq__q::before { content: '+'; display: inline-block; width: 16px; color: var(--pv-cyan); }
.pv-faq__item[open] .pv-faq__q::before { content: '\2212'; }
.pv-faq__a { margin-top: 10px; color: var(--pv-muted); }
.pv-faq__a p { margin: 0 0 1em; }
.pv-faq__a p:last-child { margin-bottom: 0; }

/* Sidebar */
.pv-layout__side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--pv-head-h) + 18px); }
.pv-widget, .widget {
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 18px;
}
.widget-title { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.widget-title::before { content: ''; width: 4px; height: 16px; border-radius: 3px; background: var(--pv-grad); }
.pv-widget ul, .widget ul { list-style: none; margin: 0; padding: 0; }
.pv-widget > ul li, .widget > ul li { padding: 7px 0; border-bottom: 1px solid var(--pv-border); }
.pv-widget > ul li:last-child, .widget > ul li:last-child { border-bottom: 0; }
.pv-widget a, .widget a { color: var(--pv-text); }
.pv-widget a:hover, .widget a:hover { color: var(--pv-cyan); }

.pv-minilist { display: flex; flex-direction: column; gap: 12px; }
.pv-minilist__item { display: flex; gap: 12px; align-items: center; }
.pv-minilist__thumb { flex: 0 0 64px; width: 64px; height: 48px; border-radius: 9px; overflow: hidden; background: var(--pv-panel-2); }
.pv-minilist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-minilist__body { min-width: 0; }
.pv-minilist__title { display: block; font-weight: 600; font-size: 14px; color: var(--pv-heading); line-height: 1.3; }
.pv-minilist__title:hover { color: var(--pv-cyan); }
.pv-minilist__meta { font-size: 12px; color: var(--pv-muted); }

/* =========================================================================
   Single post
   ========================================================================= */
.pv-single { padding-block: 26px 50px; }
.pv-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--pv-faint); margin-bottom: 20px; }
.pv-breadcrumb a { color: var(--pv-muted); }
.pv-breadcrumb a:hover { color: var(--pv-cyan); }
.pv-breadcrumb__current { color: var(--pv-text); }

.pv-single__grid {
	display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: stretch;
	grid-template-areas: "hero rail" "main rail";
}
.pv-article__hero { grid-area: hero; }
.pv-single__main { grid-area: main; min-width: 0; }
.pv-single__rail { grid-area: rail; }

.pv-article__header { margin-bottom: 20px; }
.pv-article__cat {
	display: inline-block; font-family: var(--pv-display); font-weight: 700; font-size: 12px; letter-spacing: .06em;
	text-transform: uppercase; color: var(--pv-cyan); margin-bottom: 10px;
}
.pv-article__title { font-size: clamp(27px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.02em; }

.pv-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--pv-faint); font-size: 13.5px; }
.pv-entry-meta .pv-dot { color: var(--pv-faint); }

.pv-article__cover { margin: 0 0 26px; border-radius: var(--pv-radius); overflow: hidden; border: 1px solid var(--pv-border); }
.pv-article__cover img { width: 100%; }

/* Hero: cover thumbnail + title/version/genre/rating beside it */
.pv-article__hero { display: flex; align-items: stretch; gap: 20px; margin: 0 0 26px; }
.pv-article__hero .pv-article__cover { flex: 0 0 150px; width: 150px; margin: 0; }
.pv-article__hero .pv-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-article__heroBody { flex: 1 1 auto; min-width: 0; padding-top: 4px; display: flex; flex-direction: column; justify-content: center; }
.pv-article__heroBody .pv-article__title { font-size: 30px; margin: 0 0 10px; }
.pv-article__metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--pv-muted); font-size: 14px; }
.pv-article__metarow .pv-dot { color: var(--pv-faint); }
.pv-article__heroBody .pv-article__cat { display: inline-block; margin: 0; }
.pv-article__version { color: var(--pv-muted); font-size: 14px; }
.pv-article__rate { display: inline-flex; align-items: center; gap: 8px; color: var(--pv-muted); font-size: 14px; }
@media (max-width: 480px) {
	.pv-article__hero { gap: 14px; }
	.pv-article__hero .pv-article__cover { flex-basis: 96px; width: 96px; }
	.pv-article__heroBody .pv-article__title { font-size: 22px; }
}

/* Content typography */
.entry-content { font-size: 16.5px; color: var(--pv-text); }
.entry-content h2 { font-size: 25px; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.entry-content a { color: var(--pv-cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--pv-violet); }
.entry-content img { border-radius: var(--pv-radius-sm); margin: 1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote {
	margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--pv-cyan);
	background: rgba(16,185,129,.05); border-radius: 0 12px 12px 0; color: var(--pv-text);
}
.entry-content code { background: var(--pv-surface-hover); padding: 2px 7px; border-radius: 6px; font-size: .92em; }
.entry-content pre { background: var(--pv-panel-2); border: 1px solid var(--pv-border); padding: 16px; border-radius: 12px; overflow: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--pv-border); padding: 10px 12px; text-align: left; }

/* Spec / details box */
.pv-details {
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius);
	padding: 18px 20px; margin: 22px 0;
}
.pv-details__title { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.pv-details__title::before { content: ''; width: 4px; height: 18px; border-radius: 3px; background: var(--pv-grad); }
.pv-details__table { width: 100%; border-collapse: collapse; }
.pv-details__table th, .pv-details__table td { padding: 9px 4px; text-align: left; vertical-align: top; font-size: 14.5px; border-bottom: 1px solid var(--pv-border); }
.pv-details__table tr:last-child th, .pv-details__table tr:last-child td { border-bottom: 0; }
.pv-details__table th { color: var(--pv-muted); font-weight: 600; width: 42%; }
.pv-details__table td { color: var(--pv-heading); font-weight: 500; }
.pv-details__table a { color: var(--pv-cyan); }

/* Download box */
.pv-downloads {
	background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(6,182,212,.04)), var(--pv-panel);
	border: 1px solid var(--pv-border-2); border-radius: var(--pv-radius); padding: 22px; margin: 26px 0;
}
.pv-downloads__title { font-size: 20px; margin: 0 0 16px; }
.pv-downloads__stats { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 16px; }
.pv-rate { display: flex; align-items: center; gap: 10px; }
.pv-rate__val { font-family: var(--pv-display); font-weight: 700; font-size: 22px; color: var(--pv-gold); }
.pv-rate__count { color: var(--pv-faint); font-size: 13px; }
.pv-dlbig { display: flex; align-items: center; font-family: var(--pv-display); font-weight: 700; font-size: 18px; }
.pv-downloads__table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.pv-downloads__table th, .pv-downloads__table td { padding: 8px 4px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--pv-border); }
.pv-downloads__table th { color: var(--pv-muted); font-weight: 600; width: 40%; }
.pv-downloads__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-downloads__note { margin: 14px 0 0; font-size: 12.5px; color: var(--pv-faint); }

/* Rating box (shortcode) */
.pv-ratingbox {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0; padding: 16px 20px;
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius);
}
.pv-ratingbox__item { display: flex; align-items: center; gap: 9px; }
.pv-ratingbox__val { font-family: var(--pv-display); font-weight: 700; font-size: 19px; color: var(--pv-gold); }
.pv-ratingbox__val small { color: var(--pv-faint); font-size: 13px; font-weight: 500; }
.pv-ratingbox__btn { margin-left: auto; }

/* Taxonomy chips + tags */
.pv-taxo { display: flex; flex-wrap: wrap; gap: 22px; margin: 26px 0; padding-top: 18px; border-top: 1px solid var(--pv-border); }
.pv-taxo__item { font-size: 14px; }
.pv-taxo__label { display: block; color: var(--pv-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.pv-taxo__item a {
	display: inline-block; padding: 4px 11px; border-radius: 8px; background: var(--pv-surface);
	border: 1px solid var(--pv-border); color: var(--pv-text); margin-right: 4px;
}
.pv-taxo__item a:hover { border-color: var(--pv-cyan); color: var(--pv-cyan); }
.pv-article__tags { margin: 22px 0; font-size: 14px; color: var(--pv-muted); }
.pv-article__tags span { color: var(--pv-faint); margin-right: 8px; }
.pv-article__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 11px; border-radius: 8px; background: var(--pv-surface); border: 1px solid var(--pv-border); color: var(--pv-muted); }
.pv-article__tags a:hover { color: var(--pv-cyan); border-color: var(--pv-cyan); }

.pv-related { margin-top: 40px; margin-bottom: 48px; }
.pv-related .pv-section__title { margin-bottom: 16px; }
.pv-related__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pv-related__item {
	display: flex; gap: 14px; align-items: center; padding: 10px;
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-sm);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pv-related__item:hover { transform: translateY(-2px); border-color: var(--pv-border-2); box-shadow: var(--pv-shadow); }
.pv-related__thumb { flex: 0 0 86px; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--pv-panel-2); }
.pv-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-related__ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--pv-display); font-weight: 700; font-size: 24px; color: var(--pv-faint); background: var(--pv-grad-soft); }
.pv-related__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pv-related__cat { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pv-cyan); }
.pv-related__title {
	font-family: var(--pv-display); font-weight: 600; font-size: 15px; color: var(--pv-heading); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pv-related__item:hover .pv-related__title { color: var(--pv-cyan); }
.pv-related__meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--pv-muted); }
.pv-related__rate { color: var(--pv-gold); font-weight: 700; }
@media (max-width: 620px) { .pv-related__list { grid-template-columns: 1fr; } }

/* Screenshots gallery */
.pv-shots { margin: 30px 0; }
.pv-shots .pv-section__title { font-size: 20px; margin: 0 0 16px; }
.pv-shots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pv-shots__item {
	display: block; border-radius: var(--pv-radius-sm); overflow: hidden; position: relative;
	border: 1px solid var(--pv-border); aspect-ratio: 16/9; background: var(--pv-panel-2); cursor: zoom-in;
}
.pv-shots__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pv-shots__item:hover img { transform: scale(1.05); }
.pv-shots__item::after {
	content: ''; position: absolute; inset: 0; background: rgba(16,24,44,.12); opacity: 0; transition: opacity .2s ease;
}
.pv-shots__item:hover::after { opacity: 1; }
@media (max-width: 560px) { .pv-shots__grid { grid-template-columns: 1fr; } }

/* Lightbox */
.pv-lightbox {
	position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 26px;
	background: rgba(8,12,24,.88); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.pv-lightbox.is-open { display: flex; }
.pv-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--pv-shadow-lg); }
.pv-lightbox__btn {
	position: absolute; display: grid; place-items: center; background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.24); color: #fff; cursor: pointer; transition: background .15s ease;
}
.pv-lightbox__btn:hover { background: rgba(255,255,255,.26); }
.pv-lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; font-size: 26px; line-height: 1; }
.pv-lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; font-size: 30px; line-height: 1; }
.pv-lightbox__prev { left: 18px; }
.pv-lightbox__next { right: 18px; }
.pv-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(255,255,255,.12); padding: 5px 14px; border-radius: 999px; }
@media (max-width: 560px) { .pv-lightbox__nav { width: 42px; height: 42px; font-size: 24px; } }

/* Single right rail */
.pv-rail__sticky { position: sticky; top: calc(var(--pv-head-h) + 18px); display: flex; flex-direction: column; gap: 18px; }
.pv-rail__card {
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 18px; text-align: center;
}
.pv-rail__cover { border-radius: var(--pv-radius-sm); overflow: hidden; margin-bottom: 16px; aspect-ratio: 3/4; }
.pv-rail__cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-rail__name { font-size: 18px; margin: 0 0 14px; }
.pv-rail__stats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pv-rail__stat { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pv-rail__stat b { color: var(--pv-gold); }
.pv-rail__stat small { color: var(--pv-faint); width: 100%; }
.pv-rail__btn { width: 100%; }
.pv-rail__spec .pv-details { margin: 0; }

/* Rail download box (download section moved into the side rail) */
.pv-single__rail .pv-downloads { margin: 0; }
.pv-single__rail .pv-downloads__buttons { flex-direction: column; }
.pv-single__rail .pv-downloads__buttons .pv-btn { width: 100%; }

/* Installation Instructions */
.pv-install { margin: 32px 0; }
.pv-install .pv-section__title { font-size: 20px; margin: 0 0 14px; }
.pv-install__body {
	background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 18px 20px;
}
.pv-install__body > :last-child { margin-bottom: 0; }
.pv-install__body ol, .pv-install__body ul { margin: 0 0 1em; padding-left: 1.35em; }
.pv-install__body li { margin-bottom: .5em; }
.pv-install__body a { color: var(--pv-cyan); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.pv-install__body a:hover { color: var(--pv-violet); }

/* Request help box */
.pv-helpbox {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
	margin: 26px 0; padding: 20px 22px; background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius);
}
.pv-helpbox__text { margin: 0; font-size: 15px; color: var(--pv-text); }
.pv-helpbox__btn { flex-shrink: 0; background: var(--pv-heading); color: #fff; border-color: transparent; }
.pv-helpbox__btn:hover { background: #000; color: #fff; transform: translateY(-2px); }

/* =========================================================================
   Page, A–Z list, 404
   ========================================================================= */
.pv-page { padding-block: 36px 50px; max-width: 860px; }
.pv-article--page .entry-content { font-size: 17px; }

.pv-aznav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.pv-aznav a {
	display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px;
	background: var(--pv-panel); border: 1px solid var(--pv-border); color: var(--pv-text); font-family: var(--pv-display); font-weight: 700;
}
.pv-aznav a:hover { border-color: var(--pv-cyan); color: var(--pv-cyan); }
.pv-azgroup { margin-bottom: 30px; }
.pv-azgroup__letter { font-size: 24px; color: var(--pv-cyan); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--pv-border); }
.pv-azgroup__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 22px; }
.pv-azgroup__list a { color: var(--pv-text); }
.pv-azgroup__list a:hover { color: var(--pv-cyan); }

.pv-404 { padding: 70px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pv-404__code { font-family: var(--pv-display); font-weight: 700; font-size: clamp(80px, 16vw, 150px); line-height: 1; background: var(--pv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-404__title { font-size: clamp(22px, 4vw, 32px); margin: 8px 0 12px; }
.pv-404__text { color: var(--pv-muted); max-width: 50ch; margin-bottom: 20px; }
.pv-404__search { width: 100%; max-width: 480px; margin-bottom: 18px; }

/* =========================================================================
   Pagination
   ========================================================================= */
.pagination, .pv-pagination { display: flex; justify-content: center; margin-top: 36px; }
.pagination .nav-links, .pv-pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
	background: var(--pv-panel); border: 1px solid var(--pv-border); color: var(--pv-text); font-weight: 600;
}
.page-numbers:hover { border-color: var(--pv-cyan); color: var(--pv-cyan); }
.page-numbers.current { background: var(--pv-grad); color: #051018; border-color: transparent; }
.page-numbers.dots { background: transparent; border-color: transparent; }

/* =========================================================================
   Comments
   ========================================================================= */
.comments-area { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--pv-border); }
.comments-title, .comment-reply-title { font-size: 22px; margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .comment-body { background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 16px 18px; margin-bottom: 14px; }
.comment-list .children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.comment-author { font-weight: 600; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-metadata, .comment-metadata a { color: var(--pv-faint); font-size: 12.5px; }
.comment-respond { background: var(--pv-panel); border: 1px solid var(--pv-border); border-radius: var(--pv-radius); padding: 22px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; background: var(--pv-bg-2); border: 1px solid var(--pv-border-2); border-radius: 11px; padding: 11px 14px; color: var(--pv-text); font-family: var(--pv-font); font-size: 15px; margin-top: 5px;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--pv-cyan); }
.comment-form .form-submit input, .form-submit .submit {
	background: var(--pv-grad); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-family: var(--pv-display); cursor: pointer; font-size: 15px;
}

/* =========================================================================
   Footer
   ========================================================================= */
.pv-footer { margin-top: 50px; background: var(--pv-bg-2); border-top: 1px solid var(--pv-border); }
.pv-footer__inner {
	max-width: var(--pv-maxw); margin-inline: auto; padding: 48px 20px 34px;
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px;
}
.pv-footer__text { color: var(--pv-muted); font-size: 14.5px; margin: 14px 0 16px; max-width: 38ch; }
.pv-footer__title { font-size: 15px; margin: 0 0 14px; color: var(--pv-heading); }
.pv-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pv-footer__list a { color: var(--pv-muted); font-size: 14.5px; }
.pv-footer__list a:hover { color: var(--pv-cyan); }
.pv-socials { display: flex; gap: 10px; }
.pv-social { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--pv-surface); border: 1px solid var(--pv-border); color: var(--pv-muted); }
.pv-social:hover { color: var(--pv-heading); border-color: var(--pv-cyan); background: rgba(16,185,129,.08); }
.pv-footer__bar {
	max-width: var(--pv-maxw); margin-inline: auto; padding: 18px 20px; border-top: 1px solid var(--pv-border);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--pv-faint); font-size: 13px;
}

/* Back to top */
.pv-totop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 13px;
	display: grid; place-items: center; background: var(--pv-grad); color: #fff; border: 0; cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: .22s ease; box-shadow: var(--pv-shadow);
}
.pv-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
	.pv-grid, .pv-grid--5 { grid-template-columns: repeat(4, 1fr); }
	.pv-hero__inner { grid-template-columns: 1fr; }
	.pv-spotlight { max-width: 560px; }
}
@media (max-width: 980px) {
	.pv-layout--sidebar { grid-template-columns: 1fr; }
	.pv-layout__side { position: static; flex-direction: row; flex-wrap: wrap; }
	.pv-layout__side > * { flex: 1 1 280px; }
	.pv-single__grid { grid-template-columns: 1fr; grid-template-areas: "hero" "rail" "main"; }
	.pv-rail__sticky { position: static; }
	.pv-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.pv-burger { display: flex; align-items: center; justify-content: center; }
	.pv-nav {
		position: fixed; inset: var(--pv-head-h) 0 auto 0; margin: 0; background: rgba(255,255,255,.98);
		border-bottom: 1px solid var(--pv-border); max-height: 0; overflow: hidden; transition: max-height .28s ease;
		box-shadow: 0 22px 34px -22px rgba(16,24,44,.4);
	}
	.pv-nav.is-open { max-height: calc(100vh - var(--pv-head-h)); overflow-y: auto; }
	.pv-menu { flex-direction: column; padding: 10px; gap: 2px; }
	.pv-menu a { padding: 13px 14px; border-radius: 10px; font-size: 15px; }
	.pv-menu .menu-item-has-children,
	.pv-menu .cat-parent,
	.pv-menu .page_item_has_children { position: relative; }
	.pv-menu .menu-item-has-children > a::after,
	.pv-menu .cat-parent > a::after,
	.pv-menu .page_item_has_children > a::after { display: none; }
	.pv-subtoggle { display: grid; }
	/* Child menu: indented, collapsed until its arrow is tapped */
	.pv-menu .sub-menu,
	.pv-menu .children {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		background: transparent; border: 0; border-left: 2px solid var(--pv-border);
		margin: 2px 0 6px 16px; padding: 0 0 0 12px; min-width: 0; max-width: none; display: none;
	}
	.pv-menu li.pv-sub-open > .sub-menu,
	.pv-menu li.pv-sub-open > .children { display: block; }
	.pv-menu .sub-menu a,
	.pv-menu .children a { padding: 10px 12px; font-size: 14px; color: var(--pv-muted); font-weight: 500; }
	.pv-menu .sub-menu a:hover,
	.pv-menu .children a:hover { color: var(--pv-cyan); background: var(--pv-surface); }
	.pv-grid, .pv-grid--3, .pv-grid--4, .pv-grid--5 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 620px) {
	.pv-grid, .pv-grid--3, .pv-grid--4, .pv-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.pv-footer__inner { grid-template-columns: 1fr; gap: 26px; }
	.pv-section__head { flex-direction: row; }
	.pv-card__title { font-size: 14.5px; }
}
@media (max-width: 380px) {
	.pv-grid, .pv-grid--3, .pv-grid--4, .pv-grid--5 { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
