/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://www.camleyopedia.com
 Description:  GeneratePress Child Theme for Camleyopedia
 Author:       Camley Photographic
 Author URI:   https://www.camleyopedia.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

/* ==========================================================================
   Camley Pedia Frontend Styles
   ========================================================================== */

/* Override theme constraints for pedia pages */
body.pedia-page .site-content,
body.pedia-page .content-area,
body.pedia-page .inside-article,
body.pedia-page .entry-content,
body.pedia-page #primary,
body.pedia-page .grid-container,
body.pedia-page .site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.pedia-page .site-content .content-area {
	width: 100% !important;
}

body.pedia-page .container.grid-container {
	max-width: 100% !important;
}

/* Hide theme's sidebar on pedia pages */
body.pedia-page .sidebar,
body.pedia-page #right-sidebar,
body.pedia-page .is-right-sidebar,
body.pedia-page #secondary {
	display: none !important;
}

/* Hide top bar, site header on pedia pages (NOT breadcrumb) */
body.pedia-page .top-bar,
body.pedia-page .site-top-bar,
body.pedia-page #top-bar,
body.pedia-page .top-bar-wrapper,
body.pedia-page .site-header,
body.pedia-page #masthead {
	display: none !important;
}

/* Page background */
body.pedia-page {
	background: var(--pedia-bg-light);
}

/* Variables */
:root {
	--pedia-primary: #740000;
	--pedia-secondary: #5a0000;
	--pedia-accent: #007474;
	--pedia-accent-hover: #005a5a;
	--pedia-gold: #8B7500;
	--pedia-text: #1d1d1f;
	--pedia-text-light: #86868b;
	--pedia-border: #d2d2d7;
	--pedia-bg-light: #f5f5f7;
	--pedia-radius: 12px;
	--pedia-sidebar-width: 280px;
	--pedia-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global typography */
body.pedia-page,
body.pedia-page * {
	font-family: var(--pedia-font-family);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.pedia-site-header {
	background: #fff;
	border-bottom: 1px solid var(--pedia-border);
	padding: 0 1rem;
}

.pedia-site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1800px;
	margin: 0 auto;
	height: 56px;
}

.pedia-logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
	line-height: 1;
}

.pedia-logo-img {
	height: 40px;
	width: auto;
}

.pedia-header-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.pedia-header-shop-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pedia-text-light);
	text-decoration: none;
	transition: color 0.2s;
}

.pedia-header-shop-link:hover {
	color: var(--pedia-accent);
}

/* Hamburger toggle — hidden on desktop */
.pedia-nav-toggle {
	display: none;
}

.pedia-nav-hamburger {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--pedia-text);
	line-height: 1;
	padding: 0.25rem;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.pedia-landing,
.pedia-browse,
.pedia-single-product {
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* ==========================================================================
   Product Type Filter Bar
   ========================================================================== */

.pedia-type-bar {
	text-align: center;
	margin-top: 0.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--pedia-border);
}

.pedia-type-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	gap: 1.5rem;
}

.pedia-type-item {
	padding: 0.25rem 0;
	cursor: pointer;
	background: transparent;
	transition: color 0.2s;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pedia-text-light);
	user-select: none;
	border-bottom: 2px solid transparent;
}

.pedia-type-item:hover {
	color: var(--pedia-primary);
}

.pedia-type-item--current {
	color: var(--pedia-primary);
	border-bottom-color: var(--pedia-primary);
}

.pedia-type-item--current:hover {
	color: var(--pedia-primary);
}

/* ==========================================================================
   A-Z Navigation Bar
   ========================================================================== */

.pedia-az-bar {
	margin-bottom: 0;
	padding: 1rem 0 0.5rem;
}

.pedia-az-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.pedia-az-item {
	margin: 0;
}

.pedia-az-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
}

.pedia-az-item:not(.pedia-az-item--disabled):not(.pedia-az-item--current) .pedia-az-link {
	color: var(--pedia-primary);
	background: var(--pedia-bg-light);
}

.pedia-az-item:not(.pedia-az-item--disabled):not(.pedia-az-item--current) .pedia-az-link:hover {
	background: var(--pedia-primary);
	color: #fff;
}

.pedia-az-item--disabled .pedia-az-link {
	color: #ccc;
	cursor: default;
}

.pedia-az-item--current .pedia-az-link {
	background: var(--pedia-primary);
	color: #fff;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */

.pedia-breadcrumb {
	font-size: 0.875rem;
	color: var(--pedia-text-light);
	margin-bottom: 1rem;
}

.pedia-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pedia-breadcrumb-item {
	display: flex;
	align-items: center;
}

.pedia-breadcrumb-sep {
	margin: 0 0.5rem;
	color: #ccc;
}

.pedia-breadcrumb a {
	color: var(--pedia-text-light);
	text-decoration: none;
}

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

.pedia-breadcrumb-current {
	color: var(--pedia-text);
	font-weight: 500;
}

/* ==========================================================================
   Landing Page
   ========================================================================== */

.pedia-landing-header {
	text-align: center;
	margin-bottom: 3rem;
}

.pedia-landing-logo {
	display: block;
	max-width: 360px;
	height: auto;
	margin: 0 auto 0.75rem;
}

.pedia-landing-intro {
	color: var(--pedia-text-light);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

.pedia-landing-stats {
	display: flex;
	justify-content: center;
	gap: 3rem;
	margin-top: 2rem;
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	padding: 2rem;
}

.pedia-stat {
	text-align: center;
}

.pedia-stat-value {
	display: block;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--pedia-primary);
	line-height: 1;
}

.pedia-stat-label {
	display: block;
	font-size: 0.875rem;
	color: var(--pedia-text-light);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 0.5rem;
}

.pedia-landing-nav {
	text-align: center;
}

.pedia-landing-nav h2 {
	font-size: 1.25rem;
	color: var(--pedia-text-light);
	margin-bottom: 1rem;
}

.pedia-landing-cta {
	text-align: center;
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--pedia-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pedia-landing-cta h2 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.pedia-landing-cta p {
	color: var(--pedia-text-light);
	font-size: 0.95rem;
	margin: 0;
}

.pedia-landing-cta a {
	color: var(--pedia-accent);
	text-decoration: none;
	font-weight: 600;
}

.pedia-landing-cta a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Browse Layout (Letter + Brand pages with sidebar)
   ========================================================================== */

.pedia-browse-layout {
	display: grid;
	grid-template-columns: var(--pedia-sidebar-width) 1fr;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 768px) {
	.pedia-browse-layout {
		grid-template-columns: 1fr;
	}
}

/* 3-column layout with eBay sidebar */
.pedia-browse-layout--with-ebay {
	grid-template-columns: var(--pedia-sidebar-width) 1fr 280px;
	align-items: stretch;
	min-height: calc(100vh - 200px);
}

@media (max-width: 1200px) {
	.pedia-browse-layout--with-ebay {
		grid-template-columns: var(--pedia-sidebar-width) 1fr;
	}
	/* Show eBay sidebar below main content on smaller screens */
	.pedia-ebay-sidebar {
		grid-column: 1 / -1;
		position: static !important;
		height: auto !important;
		max-height: 400px;
	}
}

@media (max-width: 768px) {
	.pedia-browse-layout--with-ebay {
		grid-template-columns: 1fr;
	}

	/* On mobile, move brand sidebar above main content so it's accessible */
	.pedia-browse-layout--with-ebay > .pedia-sidebar {
		order: -1;
	}
}

/* 2-column layout for single product pages (no left sidebar) */
.pedia-browse-layout--product {
	grid-template-columns: 1fr 280px;
	gap: 2rem;
	align-items: stretch;
	min-height: calc(100vh - 200px);
}

@media (max-width: 1200px) {
	.pedia-browse-layout--product {
		grid-template-columns: 1fr;
	}
	.pedia-browse-layout--product .pedia-ebay-sidebar {
		grid-column: 1 / -1;
		position: static !important;
		height: auto !important;
		max-height: 400px;
	}
}

/* Mobile-only brand back-link — hidden on desktop */
.pedia-mobile-brand-nav {
	display: none;
}

.pedia-mobile-brand-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--pedia-accent, #007474);
	text-decoration: none;
}

.pedia-mobile-brand-nav a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.pedia-mobile-brand-nav {
		display: block;
		margin-bottom: 1rem;
	}
}

/* On desktop, hide the accordion toggle — groups are opened via JS */
@media (min-width: 769px) {
	.pedia-product-group-header {
		pointer-events: none;
	}
	.pedia-product-group-header::marker,
	.pedia-product-group-header::-webkit-details-marker {
		display: none;
	}
}

/* Product group count badge */
.pedia-group-count {
	font-weight: 400;
	color: var(--pedia-text-light, #86868b);
	font-size: 0.85em;
	margin-left: 0.3em;
}

/* Sidebar */
.pedia-sidebar {
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	padding: 1rem;
	position: sticky;
	top: 2rem;
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
}

.pedia-sidebar-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--pedia-border);
}

.pedia-sidebar-header h2 {
	margin: 0;
	font-size: 1.5rem;
	color: var(--pedia-primary);
}

.pedia-sidebar-brand-link {
	color: inherit;
	text-decoration: none;
}

.pedia-sidebar-brand-link:hover {
	color: var(--pedia-accent);
}

.pedia-sidebar-count {
	font-size: 0.75rem;
	color: var(--pedia-text-light);
}

.pedia-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pedia-sidebar-item {
	margin: 0;
}

.pedia-sidebar-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0.75rem;
	margin: 0 -0.75rem;
	color: var(--pedia-text);
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	font-size: 0.875rem;
}

.pedia-sidebar-link:hover {
	background: var(--pedia-bg-light);
	color: var(--pedia-accent);
}

.pedia-sidebar-link--current {
	background: var(--pedia-primary);
	color: #fff;
}

.pedia-sidebar-link--current:hover {
	background: var(--pedia-primary);
	color: #fff;
}

.pedia-sidebar-item--alias {
	padding: 0.5rem 0.75rem;
	margin: 0 -0.75rem;
}

.pedia-sidebar-alias {
	font-style: italic;
	color: var(--pedia-text-light);
	font-size: 0.875rem;
}

.pedia-sidebar-alias-ref {
	font-style: normal;
	font-size: 0.75rem;
}

.pedia-sidebar-alias-ref a {
	color: var(--pedia-accent);
	text-decoration: none;
}

.pedia-sidebar-alias-ref a:hover {
	text-decoration: underline;
}

.pedia-sidebar-empty {
	color: var(--pedia-text-light);
	font-size: 0.875rem;
	padding: 1rem 0;
}

/* Sidebar back button */
.pedia-sidebar-back {
	display: block;
	padding: 0.625rem 0.75rem;
	margin: -1rem -1rem 1rem -1rem;
	background: var(--pedia-primary);
	color: #fff;
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: var(--pedia-radius) var(--pedia-radius) 0 0;
	transition: background 0.15s;
}

.pedia-sidebar-back:hover {
	background: var(--pedia-secondary);
	color: #fff;
}

/* Sidebar sales count badge */
.pedia-sidebar-sales {
	font-size: 0.6875rem;
	color: var(--pedia-text-light);
	background: var(--pedia-bg-light);
	padding: 0.125rem 0.375rem;
	border-radius: 3px;
	min-width: 1.25rem;
	text-align: center;
}

.pedia-sidebar-link--current .pedia-sidebar-sales {
	background: rgba(255,255,255,0.2);
	color: #fff;
}

/* Sidebar list truncation (CSS-only expand/collapse) */
.pedia-sidebar-toggle {
	display: none;
}

.pedia-sidebar-list--truncated {
	max-height: 560px;
	overflow: hidden;
	position: relative;
}

/* Fade gradient at bottom of truncated list */
.pedia-sidebar-list--truncated::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

/* Expanded state */
.pedia-sidebar-toggle:checked + .pedia-sidebar-list--truncated {
	max-height: none;
	overflow: visible;
}

.pedia-sidebar-toggle:checked + .pedia-sidebar-list--truncated::after {
	display: none;
}

/* "Show all / Show fewer" toggle label */
.pedia-sidebar-show-all {
	display: block;
	text-align: center;
	padding: 0.625rem 0.75rem;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--pedia-accent);
	cursor: pointer;
	border-top: 1px solid var(--pedia-border);
	transition: color 0.15s;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.pedia-sidebar-show-all:hover {
	color: var(--pedia-accent-hover);
}

.pedia-sidebar-show-all-less {
	display: none;
}

.pedia-sidebar-toggle:checked ~ .pedia-sidebar-show-all .pedia-sidebar-show-all-more {
	display: none;
}

.pedia-sidebar-toggle:checked ~ .pedia-sidebar-show-all .pedia-sidebar-show-all-less {
	display: inline;
}

/* Main content area */
.pedia-browse-main {
	min-width: 0;
}

.pedia-browse-header {
	margin-bottom: 1.5rem;
}

.pedia-browse-header h1 {
	font-size: 1.75rem;
	margin: 0 0 0.25rem;
	color: var(--pedia-primary);
}

.pedia-browse-meta {
	color: var(--pedia-text-light);
	margin: 0;
	font-size: 0.875rem;
}

/* Brand-specific header modifier */
.pedia-browse-header--brand {
	text-align: center;
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	padding: 2.5rem 2rem;
	animation: pedia-fade-in-up 0.6s ease both;
}

.pedia-browse-header--brand h1 {
	font-size: 2.75rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.pedia-browse-header--brand .pedia-browse-meta {
	font-size: 1rem;
	text-align: center;
}

.pedia-browse-product-count {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pedia-text-light);
}

/* Merged product card (header + description + sales) */
.pedia-product-card {
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	overflow: hidden;
	animation: pedia-fade-in-up 0.6s ease both;
}

/* Product-specific header modifier (inside merged card) */
.pedia-browse-header--product {
	text-align: center;
	padding: 2rem 2rem 0.75rem;
	margin-bottom: 0;
}

.pedia-browse-header--product h1 {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

/* Description inside merged card — remove own card styling */
.pedia-product-card .pedia-product-description {
	background: transparent;
	border: none;
	border-radius: 0;
	margin-bottom: 0;
	padding: 0.75rem 2rem;
	animation: none;
}

/* Sales history inside merged card — remove own card styling */
.pedia-product-card .pedia-sales-history {
	background: transparent;
	border: none;
	border-radius: 0;
	margin-bottom: 0;
	padding: 0.75rem 2rem 1.5rem;
	animation: none;
}

.pedia-browse-welcome {
	text-align: center;
	padding: 4rem 2rem;
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
}

.pedia-browse-welcome h2 {
	margin: 0 0 0.5rem;
	color: var(--pedia-primary);
}

.pedia-browse-welcome p {
	margin: 0;
	color: var(--pedia-text-light);
}

/* Letter page: mobile brand list (full, no truncation) */
.pedia-brand-list-mobile {
	display: none;
}

.pedia-brand-list-mobile h2 {
	margin: 0 0 1rem;
	color: var(--pedia-primary);
}

.pedia-brand-list-full {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pedia-brand-list-full li {
	border-bottom: 1px solid var(--pedia-border);
}

.pedia-brand-list-full li:last-child {
	border-bottom: none;
}

.pedia-brand-list-full a {
	display: block;
	padding: 0.75rem 0.5rem;
	color: var(--pedia-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.pedia-brand-list-full a:hover {
	color: var(--pedia-accent);
}

@media (max-width: 768px) {
	/* On mobile: show full brand list, hide sidebar and desktop welcome */
	.pedia-brand-list-mobile {
		display: block;
		background: #fff;
		border: 1px solid var(--pedia-border);
		border-radius: var(--pedia-radius);
		padding: 1.5rem;
	}

	.pedia-browse-welcome--desktop {
		display: none;
	}

	/* Only hide sidebar on letter pages (no --with-ebay modifier) */
	.pedia-browse-layout:not(.pedia-browse-layout--with-ebay) > .pedia-sidebar {
		display: none;
	}
}

/* ==========================================================================
   Product Groups (collapsible)
   ========================================================================== */

.pedia-product-group {
	margin-bottom: 0.5rem;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	overflow: hidden;
	background: #fff;
	animation: pedia-fade-in-up 0.5s ease both;
	animation-delay: calc(var(--group-index, 0) * 0.08s);
}

.pedia-product-group[open] {
	margin-bottom: 1rem;
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pedia-product-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.25rem;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--pedia-primary);
	background: #fff;
	cursor: pointer;
	list-style: none;
	transition: background 0.15s;
}

.pedia-product-group-header:hover {
	background: var(--pedia-bg-light);
}

.pedia-product-group-header::-webkit-details-marker {
	display: none;
}

.pedia-product-group-header::after {
	content: '+';
	font-size: 1rem;
	font-weight: 300;
	color: var(--pedia-text-light);
}

.pedia-product-group[open] .pedia-product-group-header::after {
	content: '\2212';
	color: var(--pedia-primary);
}

.pedia-product-group-header .count {
	font-weight: 400;
	color: var(--pedia-text-light);
	font-size: 0.8125rem;
	margin-left: 0.5rem;
}

/* ==========================================================================
   Product List (table)
   ========================================================================== */

.pedia-product-list {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.pedia-product-list th,
.pedia-product-list td {
	padding: 0.75rem 1.25rem;
	text-align: left;
	border-bottom: 1px solid #ebebef;
}

.pedia-product-list th {
	background: #fff;
	font-weight: 500;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pedia-text-light);
}

.pedia-product-list tbody tr {
	transition: background 0.2s;
	animation: pedia-fade-in 0.4s ease both;
	animation-delay: calc(var(--row-index, 0) * 30ms);
}

.pedia-product-list tbody tr:last-child td {
	border-bottom: none;
}

.pedia-product-list tbody tr:hover {
	background: var(--pedia-bg-light);
}

.pedia-product-list td a {
	color: var(--pedia-text);
	text-decoration: none;
	font-weight: 500;
}

.pedia-product-list td a:hover {
	color: var(--pedia-primary);
}

.pedia-product-type {
	color: var(--pedia-text-light);
	text-transform: capitalize;
	width: 80px;
}

.pedia-product-avg-price {
	text-align: right !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.pedia-avg-price-count {
	color: var(--pedia-text-light);
	font-size: 0.75em;
	margin-left: 0.25em;
	opacity: 0.7;
}

.pedia-no-data {
	color: var(--pedia-text-light);
}

.pedia-price-signin {
	color: var(--pedia-accent);
	font-size: 0.85em;
	text-decoration: none;
	white-space: nowrap;
}

.pedia-price-signin:hover {
	text-decoration: underline;
	color: var(--pedia-accent-hover);
}

/* Login/Register Page
   ========================================================================== */

.pedia-login {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.pedia-login-intro {
	color: var(--pedia-text-light);
	margin-bottom: 2rem;
}

.pedia-login-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.pedia-login-section {
	padding: 2rem;
	background: var(--pedia-bg-light);
	border-radius: 8px;
}

.pedia-login-section h2 {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-size: 1.25rem;
}

.pedia-login-section label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.pedia-login-section .input,
.pedia-login-section input[type="text"],
.pedia-login-section input[type="email"],
.pedia-login-section input[type="password"] {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--pedia-border);
	border-radius: 4px;
	font-size: 0.95rem;
	box-sizing: border-box;
}

.pedia-login-section .input:focus,
.pedia-login-section input[type="text"]:focus,
.pedia-login-section input[type="email"]:focus,
.pedia-login-section input[type="password"]:focus {
	border-color: var(--pedia-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 116, 116, 0.15);
}

.pedia-login-section .button,
.pedia-login-section input[type="submit"] {
	display: inline-block;
	padding: 0.6rem 1.5rem;
	background: var(--pedia-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s;
}

.pedia-login-section .button:hover,
.pedia-login-section input[type="submit"]:hover {
	background: var(--pedia-accent-hover);
	color: #fff;
}

.pedia-login-section p {
	margin-bottom: 1rem;
}

.pedia-login-section .login-remember {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.pedia-login-section .login-remember input[type="checkbox"] {
	width: auto;
}

.pedia-login-forgot {
	margin-top: 1rem;
}

.pedia-login-forgot a {
	color: var(--pedia-text-light);
	font-size: 0.85rem;
	text-decoration: none;
}

.pedia-login-forgot a:hover {
	color: var(--pedia-accent);
	text-decoration: underline;
}

.pedia-login-register-intro {
	color: var(--pedia-text-light);
	font-size: 0.9rem;
}

.pedia-login-register-note {
	color: var(--pedia-text-light);
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

.pedia-login-notice {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.pedia-login-notice--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.pedia-login-notice--error {
	background: #fce4ec;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
	.pedia-login-columns {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.pedia-product-sales-count {
	color: var(--pedia-text-light);
	text-align: right !important;
	width: 80px;
	font-variant-numeric: tabular-nums;
}

.pedia-product-verify-count {
	color: var(--pedia-text-light);
	text-align: right !important;
	width: 80px;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Table Overflow Wrappers
   ========================================================================== */

.pedia-product-list-wrapper,
.pedia-sales-table-wrapper,
.pedia-leaderboard-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.pedia-product-header {
	margin-bottom: 2rem;
}

.pedia-product-header h1 {
	font-size: 2rem;
	margin: 0;
	color: var(--pedia-primary);
}

/* Product type badge */
.pedia-type-badges {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.pedia-type-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.2rem 0.625rem;
	border-radius: 999px;
	line-height: 1.4;
}

.pedia-type-badge--camera {
	background: rgba(116, 0, 0, 0.08);
	color: var(--pedia-primary);
}

.pedia-type-badge--lens {
	background: rgba(0, 116, 116, 0.08);
	color: var(--pedia-accent);
}

.pedia-product-description {
	margin-bottom: 2rem;
	line-height: 1.7;
	color: var(--pedia-text);
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	padding: 1.5rem;
	animation: pedia-fade-in-up 0.5s ease both;
	animation-delay: 0.1s;
}

.pedia-product-description p {
	margin: 0 0 1rem;
}

.pedia-product-description p:last-child {
	margin-bottom: 0;
}

/* Hide empty description box on mobile */
@media (max-width: 768px) {
	.pedia-product-description--empty {
		display: none;
	}
}

/* Sales History */
.pedia-sales-history {
	margin-bottom: 2rem;
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	padding: 2rem;
	animation: pedia-fade-in-up 0.5s ease both;
	animation-delay: 0.2s;
}

.pedia-sales-history h2 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 0.75rem;
	color: var(--pedia-primary);
}

.pedia-sales-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.pedia-sales-table th,
.pedia-sales-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #ebebef;
}

.pedia-sales-table th {
	background: #fff;
	font-weight: 500;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pedia-text-light);
	position: sticky;
	top: 0;
	z-index: 2;
}

.pedia-sales-row {
	transition: background 0.2s;
	animation: pedia-fade-in 0.4s ease both;
	animation-delay: calc(var(--row-index, 0) * 30ms);
}

.pedia-sales-row:hover {
	background: var(--pedia-bg-light);
}

.pedia-sales-table tbody tr:last-child td {
	border-bottom: none;
}

.pedia-sales-table a {
	color: var(--pedia-accent);
	text-decoration: none;
}

.pedia-sales-table a:hover {
	text-decoration: underline;
}

/* Expandable sales rows */
.pedia-sales-expand-col {
	width: 2rem;
	padding-left: 0.5rem !important;
	padding-right: 0 !important;
}

.pedia-sales-expand-cell {
	padding-left: 0.5rem !important;
	padding-right: 0 !important;
}

.pedia-sales-expand-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--pedia-text-light);
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 0.2s, color 0.2s;
}

.pedia-sales-expand-btn:hover {
	color: var(--pedia-primary);
}

.pedia-sales-expand-btn[aria-expanded="true"] .pedia-expand-icon {
	transform: rotate(90deg);
}

.pedia-expand-icon {
	display: inline-block;
	transition: transform 0.2s;
}

.pedia-sales-row--expandable {
	cursor: pointer;
}

.pedia-sales-row--expandable:hover {
	background: rgba(0, 0, 0, 0.02);
}

.pedia-sales-details {
	background: var(--pedia-bg-light);
}

.pedia-sales-details td {
	padding: 0 !important;
}

/* Animated expand/collapse for detail rows */
.pedia-sales-details .pedia-lot-details {
	overflow: hidden;
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.pedia-sales-details.pedia-details-open .pedia-lot-details {
	max-height: 600px;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.pedia-lot-details {
	padding: 0 1.5rem;
	font-size: 0.875rem;
	line-height: 1.6;
}

.pedia-lot-details p {
	margin: 0 0 0.5rem;
}

.pedia-lot-details p:last-child {
	margin-bottom: 0;
}

.pedia-lot-auction {
	color: var(--pedia-text-light);
}

.pedia-lot-title {
	color: var(--pedia-text);
}

.pedia-lot-description {
	margin: 0.75rem 0;
	padding: 0.75rem;
	background: var(--pedia-bg-light);
	border-radius: 4px;
}

.pedia-lot-description p {
	margin: 0.5rem 0;
}

.pedia-lot-description p:first-of-type {
	margin-top: 0.25rem;
}

.pedia-lot-estimate {
	color: var(--pedia-text-light);
}

/* No description fallback */
.pedia-no-description {
	text-align: center;
	padding: 2rem 1rem;
	border: 2px dashed var(--pedia-border);
	border-radius: 8px;
	color: var(--pedia-text-light);
	font-style: normal;
}

.pedia-no-description-icon {
	display: block;
	margin-bottom: 0.5rem;
	opacity: 0.4;
}

/* ==========================================================================
   eBay Listings
   ========================================================================== */

.pedia-ebay-listings {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: var(--pedia-bg-light);
	border-radius: var(--pedia-radius);
}

.pedia-ebay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.pedia-ebay-header h2 {
	margin: 0;
	font-size: 1.25rem;
	color: var(--pedia-primary);
}

.pedia-ebay-view-all {
	font-size: 0.875rem;
	color: var(--pedia-accent);
	text-decoration: none;
	font-weight: 500;
}

.pedia-ebay-view-all:hover {
	text-decoration: underline;
}

.pedia-ebay-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.pedia-ebay-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.pedia-ebay-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pedia-border);
	border-radius: var(--pedia-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pedia-ebay-card:hover {
	border-color: var(--pedia-accent);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

.pedia-ebay-card-image {
	aspect-ratio: 1;
	background: #f5f5f5;
	overflow: hidden;
}

.pedia-ebay-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pedia-ebay-card-content {
	flex: 1;
	padding: 0.75rem;
}

.pedia-ebay-card-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--pedia-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pedia-ebay-card-price {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--pedia-primary);
}

.pedia-ebay-card-condition {
	margin: 0.25rem 0 0;
	font-size: 0.6875rem;
	color: var(--pedia-text-light);
	text-transform: capitalize;
}

.pedia-ebay-card-button {
	display: block;
	padding: 0.5rem 0.75rem;
	background: var(--pedia-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s;
}

.pedia-ebay-card:hover .pedia-ebay-card-button {
	background: var(--pedia-accent-hover);
}

/* ==========================================================================
   eBay Sidebar (Right Column - Full Height)
   ========================================================================== */

.pedia-ebay-sidebar {
	background: #fff;
	border-radius: var(--pedia-radius);
	padding: 1rem;
	border: 1px solid var(--pedia-border);
	border-top: 3px solid var(--pedia-accent);
	align-self: start;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	min-height: 300px;
	overflow-y: auto;
}

.pedia-ebay-sidebar-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--pedia-border);
}

.pedia-ebay-sidebar-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--pedia-text);
}

.pedia-ebay-sidebar-viewall {
	font-size: 0.75rem;
	color: var(--pedia-accent);
	text-decoration: none;
}

.pedia-ebay-sidebar-viewall:hover {
	text-decoration: underline;
}

.pedia-ebay-sidebar-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.pedia-ebay-sidebar-item {
	display: flex;
	gap: 0.75rem;
	padding: 0.5rem;
	background: #fff;
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.2s;
	border: 1px solid var(--pedia-border);
}

.pedia-ebay-sidebar-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transform: translateY(-1px);
}

.pedia-ebay-sidebar-image {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
	background: #f5f5f5;
}

.pedia-ebay-sidebar-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pedia-ebay-sidebar-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pedia-ebay-sidebar-title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--pedia-text);
	line-height: 1.3;
	margin-bottom: 0.25rem;
}

.pedia-ebay-sidebar-price {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--pedia-accent);
}

.pedia-ebay-sidebar-empty {
	font-size: 0.875rem;
	color: var(--pedia-text-light);
	text-align: center;
	padding: 1rem 0;
}

.pedia-ebay-sidebar-empty a {
	color: var(--pedia-accent);
	text-decoration: none;
}

.pedia-ebay-sidebar-empty a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.pedia-no-results {
	text-align: center;
	padding: 3rem;
	color: var(--pedia-text-light);
	background: var(--pedia-bg-light);
	border-radius: var(--pedia-radius);
}

/* ==========================================================================
   Leaderboard
   ========================================================================== */

.pedia-leaderboard {
	max-width: 700px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.pedia-leaderboard .pedia-browse-header {
	text-align: center;
	margin-bottom: 2rem;
}

.pedia-leaderboard-intro {
	color: var(--pedia-text-light);
	font-size: 0.95rem;
	max-width: 500px;
	margin: 0.5rem auto 0;
}

.pedia-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--pedia-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pedia-leaderboard-table thead th {
	background: var(--pedia-bg-light);
	padding: 10px 16px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pedia-text-light);
	border-bottom: 1px solid var(--pedia-border);
	text-align: left;
}

.pedia-lb-rank-col { width: 60px; text-align: center !important; }
.pedia-lb-points-col { width: 80px; text-align: right !important; }

.pedia-lb-row td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--pedia-border);
	vertical-align: middle;
}

.pedia-lb-row:last-child td {
	border-bottom: none;
}

.pedia-lb-row--top1 td { background: rgba(255, 215, 0, 0.06); }
.pedia-lb-row--top2 td { background: rgba(192, 192, 192, 0.06); }
.pedia-lb-row--top3 td { background: rgba(205, 127, 50, 0.06); }

.pedia-lb-rank {
	text-align: center;
	font-weight: 600;
	color: var(--pedia-text-light);
}

.pedia-lb-medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}

.pedia-lb-medal--gold { background: #C9A800; }
.pedia-lb-medal--silver { background: #8E8E93; }
.pedia-lb-medal--bronze { background: #A0522D; }

.pedia-lb-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pedia-lb-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}

.pedia-lb-name {
	display: block;
	font-weight: 600;
	color: var(--pedia-text);
	font-size: 0.95rem;
}

.pedia-lb-bio {
	display: block;
	color: var(--pedia-text-light);
	font-size: 0.8rem;
	margin-top: 2px;
}

.pedia-lb-points {
	text-align: right;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--pedia-accent);
}

.pedia-lb-points--lifetime {
	color: var(--pedia-text-light);
	font-weight: 600;
	font-size: 0.95rem;
}

.pedia-leaderboard-optout {
	margin-top: 2rem;
	text-align: center;
}

.pedia-leaderboard-optout-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pedia-text-light);
	font-size: 0.85rem;
	cursor: pointer;
}

/* ==========================================================================
   Community Description Form
   ========================================================================== */

.pedia-description-add-btn {
	display: inline-block;
	padding: 8px 20px;
	background: var(--pedia-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.pedia-description-add-btn:hover {
	background: var(--pedia-accent-hover);
}

.pedia-description-hint {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--pedia-text-light);
	font-style: normal;
}

.pedia-description-form {
	padding: 0;
}

.pedia-description-form textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px;
	border: 1px solid var(--pedia-border);
	border-radius: 8px;
	font-family: var(--pedia-font-family);
	font-size: 0.9375rem;
	line-height: 1.6;
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.pedia-description-form textarea:focus {
	border-color: var(--pedia-accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 116, 116, 0.15);
}

.pedia-description-char-count {
	text-align: right;
	font-size: 0.75rem;
	color: var(--pedia-text-light);
	margin-top: 4px;
}

.pedia-description-form-buttons {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.pedia-description-cancel-btn {
	padding: 8px 18px;
	background: #e9ecef;
	color: #495057;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.2s;
}

.pedia-description-cancel-btn:hover {
	background: #dee2e6;
}

.pedia-description-submit-btn {
	padding: 8px 18px;
	background: var(--pedia-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.pedia-description-submit-btn:hover {
	background: var(--pedia-accent-hover);
}

.pedia-description-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.pedia-description-message {
	margin-top: 10px;
	font-size: 0.8125rem;
}

.pedia-description-message.error {
	color: #dc3545;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes pedia-fade-in-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes pedia-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ==========================================================================
   Responsive — Tablet & Below (768px)
   ========================================================================== */

@media (max-width: 768px) {

	/* ── Header: hamburger collapse ── */
	.pedia-nav-hamburger {
		display: block;
	}

	.pedia-header-nav {
		display: none;
		position: absolute;
		top: 56px;
		right: 0;
		left: 0;
		background: #fff;
		border-bottom: 1px solid var(--pedia-border);
		flex-direction: column;
		padding: 0.5rem 1rem 1rem;
		gap: 0;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		z-index: 100;
	}

	.pedia-nav-toggle:checked ~ .pedia-header-nav {
		display: flex;
	}

	.pedia-header-nav .pedia-header-shop-link {
		padding: 0.75rem 0;
		font-size: 1rem;
		border-bottom: 1px solid var(--pedia-bg-light);
	}

	.pedia-header-nav .pedia-header-shop-link:last-child {
		border-bottom: none;
	}

	.pedia-site-header {
		position: relative;
	}

	/* ── Landing page stats: 2×2 grid ── */
	.pedia-landing-stats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.pedia-stat-value {
		font-size: 1.75rem;
	}

	/* ── Type filter bar: wrap ── */
	.pedia-type-list {
		flex-wrap: wrap;
		gap: 0.75rem;
		justify-content: center;
	}

	/* ── A-Z nav: smaller buttons ── */
	.pedia-az-list {
		gap: 3px;
	}

	.pedia-az-link {
		width: 1.75rem;
		height: 1.75rem;
		font-size: 0.7rem;
		border-radius: 4px;
	}

	/* ── Sidebar: unsticky ── */
	.pedia-sidebar {
		position: static;
		max-height: none;
	}

	/* ── eBay sidebar: unsticky ── */
	.pedia-ebay-sidebar {
		position: static !important;
		max-height: none;
	}

	/* ── Brand header ── */
	.pedia-browse-header--brand {
		padding: 1.5rem 1rem;
	}

	.pedia-browse-header--brand h1 {
		font-size: 2rem;
	}

	/* ── Product header ── */
	.pedia-browse-header--product {
		padding: 1.5rem 1rem 1rem;
	}

	.pedia-browse-header--product h1 {
		font-size: 1.75rem;
	}

	/* ── Product list table ── */
	.pedia-product-list {
		font-size: 0.8125rem;
	}

	.pedia-product-list th,
	.pedia-product-list td {
		padding: 0.5rem 0.75rem;
	}

	/* ── Sales table ── */
	.pedia-sales-table {
		font-size: 0.8125rem;
	}

	.pedia-sales-table th,
	.pedia-sales-table td {
		padding: 0.5rem 0.625rem;
	}

	.pedia-sales-history {
		padding: 1.25rem;
	}

	/* ── Product card merged sections ── */
	.pedia-product-card .pedia-product-description,
	.pedia-product-card .pedia-sales-history {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	/* ── Leaderboard: compact ── */
	.pedia-lb-avatar {
		display: none;
	}

	.pedia-lb-user-info {
		gap: 0;
	}

	.pedia-leaderboard-table thead th {
		padding: 8px 10px;
		font-size: 0.7rem;
	}

	.pedia-lb-row td {
		padding: 10px;
	}

	.pedia-lb-name {
		font-size: 0.85rem;
	}

	.pedia-lb-bio {
		font-size: 0.75rem;
	}

	.pedia-lb-points {
		font-size: 0.95rem;
	}

	.pedia-lb-points--lifetime {
		font-size: 0.85rem;
	}

	.pedia-lb-rank-col {
		width: 40px;
	}

	.pedia-lb-points-col {
		width: 60px;
	}

	/* ── Landing page layout ── */
	.pedia-landing,
	.pedia-browse,
	.pedia-single-product {
		padding: 1rem 0.75rem;
	}

	.pedia-landing-logo {
		max-width: 240px;
	}

	.pedia-landing-intro {
		font-size: 1rem;
	}

	.pedia-landing-header {
		margin-bottom: 2rem;
	}

	/* ── Login forms ── */
	.pedia-login-section .button,
	.pedia-login-section input[type="submit"] {
		width: 100%;
		text-align: center;
	}

	/* ── Leaderboard container ── */
	.pedia-leaderboard {
		padding: 1.5rem 0.5rem;
	}
}

/* ==========================================================================
   Responsive — Small Phones (480px)
   ========================================================================== */

@media (max-width: 480px) {

	/* ── Landing stats: single column ── */
	.pedia-landing-stats {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 1.25rem;
	}

	.pedia-stat-value {
		font-size: 1.5rem;
	}

	/* ── Type bar: tighter ── */
	.pedia-type-list {
		gap: 0.5rem;
	}

	.pedia-type-item {
		font-size: 0.8rem;
	}

	/* ── A-Z nav: even smaller ── */
	.pedia-az-link {
		width: 1.5rem;
		height: 1.5rem;
		font-size: 0.6rem;
	}

	/* ── Brand header ── */
	.pedia-browse-header--brand h1 {
		font-size: 1.5rem;
	}

	.pedia-browse-header--product h1 {
		font-size: 1.375rem;
	}

	/* ── Product list table: tighter ── */
	.pedia-product-list th,
	.pedia-product-list td {
		padding: 0.4rem 0.5rem;
		font-size: 0.75rem;
	}

	/* ── Sales table: tighter ── */
	.pedia-sales-table th,
	.pedia-sales-table td {
		padding: 0.4rem 0.5rem;
		font-size: 0.75rem;
	}

	/* ── Leaderboard: even more compact ── */
	.pedia-leaderboard-table thead th {
		padding: 6px 8px;
	}

	.pedia-lb-row td {
		padding: 8px;
	}

	.pedia-lb-medal {
		width: 22px;
		height: 22px;
		font-size: 11px;
	}

	/* ── Layout padding ── */
	.pedia-landing,
	.pedia-browse,
	.pedia-single-product {
		padding: 0.75rem 0.5rem;
	}

	/* ── Sell CTA: full width ── */
	.pedia-sell-cta {
		text-align: center;
	}

	.pedia-sell-cta-link {
		font-size: 0.8rem;
	}
}

/* ==========================================================================
   Accessibility — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.pedia-browse-header--brand,
	.pedia-product-card,
	.pedia-product-group,
	.pedia-product-list tbody tr,
	.pedia-product-description,
	.pedia-sales-history,
	.pedia-sales-row {
		animation: none;
	}
}

/* Footer copyright */
.site-info {
	font-size: 9px !important;
}
