/*!
Theme Name: Potato Chat
Theme URI: https://potato.chat
Author: Potato Chat Team
Author URI: https://potato.chat
Description: Potato Chat — end-to-end encrypted chat for crypto enthusiasts and privacy users. Cyberpunk geek-tech aesthetic with glassmorphism, animated data flow and crypto node motifs.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: potato-chat
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark, one-column

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Potato Chat is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design tokens (CSS variables)
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Reset
	- Links
	- Forms / buttons
# Layout (grid containers)
# Components
	- Site header / nav
	- Hero
	- Features (E2E, security, protocols)
	- Nodes / data flow visual
	- Downloads
	- Community
	- Glass cards
	- Buttons
	- Footer
	- Posts / pages
	- Comments
	- Widgets
	- Media
# Plugins
	- Jetpack
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
	/* Color system — populated by get_theme_mod() from header.php */
	--color-primary: #00D1B2;
	--color-secondary: #0F172A;
	--color-accent: #38BDF8;
	--color-bg: #0B1220;
	--color-surface: rgba(255, 255, 255, 0.04);
	--color-surface-strong: rgba(255, 255, 255, 0.06);
	--color-text: #E6F1FF;
	--color-muted: #94A3B8;
	--color-border: rgba(0, 209, 178, 0.18);
	--color-success: #10B981;
	--color-danger: #EF4444;
	--color-glow: rgba(0, 209, 178, 0.35);

	/* Spacing scale — 8px rhythm */
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-5: 48px;
	--space-6: 64px;
	--space-7: 96px;

	/* Radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--radius-pill: 999px;

	/* Typography */
	--font-sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

	/* Shadow (soft) */
	--shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
	--shadow-card: 0 8px 24px rgba(0, 0, 0, 0.25);
	--shadow-glow: 0 0 24px var(--color-glow);

	/* Layout */
	--container-max: 1200px;
	--container-pad: 24px;
}

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize (kept) */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* Box sizing */
*, *::before, *::after { box-sizing: border-box; }
html { box-sizing: border-box; }

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
	background-color: var(--color-bg);
	background-image:
		radial-gradient(1200px 600px at 80% -10%, rgba(0, 209, 178, 0.12), transparent 60%),
		radial-gradient(900px 500px at -10% 20%, rgba(56, 189, 248, 0.10), transparent 55%),
		linear-gradient(180deg, #0B1220 0%, #0A1020 100%);
	background-attachment: fixed;
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

body, button, input, select, optgroup, textarea {
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
	color: var(--color-text);
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-2); }

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 200ms ease, opacity 200ms ease;
}
a:visited { color: var(--color-primary); }
a:hover, a:focus, a:active { color: var(--color-accent); }

ul, ol { padding-left: 1.25rem; }
ul { list-style: none; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.25rem; }
dt { font-weight: 700; }
dd { margin: 0 1.5em 1.5em; }

img, embed, iframe, object, svg { height: auto; max-width: 100%; }
figure { margin: 1em 0; }
table { margin: 0 0 1.5em; width: 100%; }
hr {
	background-color: var(--color-border);
	border: 0;
	height: 1px;
	margin: var(--space-4) 0;
}
pre {
	background: rgba(0, 0, 0, 0.4);
	font-family: var(--font-mono);
	line-height: 1.6;
	margin: 0 0 var(--space-3);
	max-width: 100%;
	overflow: auto;
	padding: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}
code, kbd, tt, var { font-family: var(--font-mono); }
mark, ins {
	background: rgba(0, 209, 178, 0.18);
	color: var(--color-text);
	text-decoration: none;
	padding: 0 6px;
	border-radius: 4px;
}
abbr, acronym {
	border-bottom: 1px dotted var(--color-muted);
	cursor: help;
}

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="range"],
input[type="date"], input[type="month"], input[type="week"], input[type="time"],
input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea {
	color: var(--color-text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
input:focus, textarea:focus, select:focus {
	color: var(--color-text);
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-glow);
	outline: 0;
	background: rgba(255, 255, 255, 0.06);
}
select { border: 1px solid var(--color-border); }
textarea { width: 100%; resize: vertical; }

/* Buttons (also handled by .wm-btn classes) */
button, input[type="button"], input[type="reset"], input[type="submit"] {
	cursor: pointer;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.wm-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
	width: 100%;
}
.wm-section {
	padding: var(--space-6) 0;
	position: relative;
}
@media (min-width: 1024px) {
	.wm-section { padding: var(--space-7) 0; }
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Skip link */
.skip-link.screen-reader-text:focus {
	background: var(--color-primary);
	color: var(--color-secondary);
}

/* ===== Header / Nav ===== */
.wm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 18, 32, 0.65);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--color-border);
}
.wm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	min-height: 64px;
	padding: 12px 0;
}
.wm-header__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--color-text);
	font-weight: 700;
}
.wm-header__brand .custom-logo-link { display: inline-flex; }
.wm-header__brand img { max-height: 36px; width: auto; }
.wm-header__title { font-size: 1.05rem; margin: 0; color: var(--color-text); }
.wm-header__title a { color: inherit; text-decoration: none; }
.wm-header__desc { display: none; }

.wm-nav { display: flex; align-items: center; gap: var(--space-2); }
.wm-nav__toggle {
	background: transparent;
	border: 1px solid var(--color-border);
	color: var(--color-text);
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.wm-nav__toggle svg { width: 20px; height: 20px; }
.wm-nav__toggle:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.wm-nav__list {
	display: flex;
	flex-direction: row;
	gap: var(--space-3);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wm-nav__list a {
	color: var(--color-muted);
	font-size: 0.95rem;
	font-weight: 500;
	padding: 8px 4px;
	position: relative;
}
.wm-nav__list a:hover, .wm-nav__list .current-menu-item a { color: var(--color-text); }
.wm-nav__list .current-menu-item a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 2px;
}

@media (max-width: 767px) {
	.wm-nav__toggle { display: inline-flex; }
	.wm-nav__list {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: rgba(11, 18, 32, 0.96);
		backdrop-filter: blur(14px);
		padding: var(--space-2);
		border-bottom: 1px solid var(--color-border);
		display: none;
	}
	.wm-nav__list li { width: 100%; }
	.wm-nav__list a {
		display: block;
		padding: 14px var(--space-1);
		border-radius: var(--radius-sm);
	}
	.wm-nav.is-open .wm-nav__list { display: flex; }
}

/* ===== Hero ===== */
.wm-hero {
	position: relative;
	padding: var(--space-7) 0 var(--space-6);
	overflow: hidden;
	isolation: isolate;
}
.wm-hero__grid {
	display: grid;
	gap: var(--space-5);
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 1024px) {
	.wm-hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: var(--space-6);
	}
}
.wm-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: rgba(0, 209, 178, 0.10);
	border: 1px solid var(--color-border);
	color: var(--color-primary);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.wm-hero__eyebrow .dot {
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--color-primary);
	animation: wm-pulse 2s ease-in-out infinite;
}
.wm-hero__title {
	font-size: clamp(2.25rem, 6vw, 4rem);
	line-height: 1.05;
	margin: var(--space-2) 0;
	letter-spacing: -0.02em;
}
.wm-hero__title .wm-hero__accent {
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wm-hero__lead {
	color: var(--color-muted);
	font-size: 1.075rem;
	line-height: 1.65;
	max-width: 56ch;
}
.wm-hero__cta {
	margin-top: var(--space-3);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}
.wm-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	color: var(--color-muted);
	font-size: 0.85rem;
	margin-top: var(--space-3);
}
.wm-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Data flow / node visual */
.wm-hero__visual {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wm-hero__canvas {
	position: relative;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	background: radial-gradient(closest-side, rgba(0, 209, 178, 0.12), transparent 70%);
}
.wm-hero__canvas svg { width: 100%; height: 100%; display: block; }
@keyframes wm-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.4; } }
@keyframes wm-flow { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }
.wm-hero__node {
	fill: var(--color-secondary);
	stroke: var(--color-primary);
	stroke-width: 2;
	filter: drop-shadow(0 0 6px var(--color-glow));
}
.wm-hero__link {
	stroke: var(--color-primary);
	stroke-width: 1.4;
	fill: none;
	opacity: 0.55;
	stroke-dasharray: 6 6;
	animation: wm-flow 4s linear infinite;
}
.wm-hero__packet {
	fill: var(--color-primary);
	filter: drop-shadow(0 0 6px var(--color-primary));
}
@keyframes wm-spin { to { transform: rotate(360deg); } }
.wm-hero__orbit { transform-origin: center; animation: wm-spin 22s linear infinite; }

/* ===== Buttons ===== */
.wm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 180ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
	white-space: nowrap;
}
.wm-btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}
.wm-btn svg { width: 18px; height: 18px; }
.wm-btn--primary {
	background: var(--color-primary);
	color: var(--color-secondary);
	box-shadow: var(--shadow-glow);
}
.wm-btn--primary:hover { transform: translateY(-1px); background: #14e0c1; }
.wm-btn--secondary {
	background: rgba(255,255,255,0.04);
	color: var(--color-text);
	border-color: var(--color-border);
}
.wm-btn--secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--color-primary); }
.wm-btn--ghost {
	background: transparent;
	color: var(--color-muted);
	padding: 10px 14px;
}
.wm-btn--ghost:hover { color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
	.wm-hero__link { animation: none; }
	.wm-hero__orbit { animation: none; }
	.wm-hero__eyebrow .dot { animation: none; }
}

/* ===== Section title ===== */
.wm-section__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto var(--space-5);
}
.wm-section__eyebrow {
	color: var(--color-primary);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: var(--space-1);
}
.wm-section__title { margin: 0 0 var(--space-2); }
.wm-section__lead { color: var(--color-muted); font-size: 1.05rem; margin: 0; }

/* ===== Glass card / feature ===== */
.wm-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--shadow-card);
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
	position: relative;
	overflow: hidden;
}
.wm-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 209, 178, 0.06), transparent 60%);
	pointer-events: none;
}
.wm-card:hover { transform: translateY(-3px); border-color: rgba(0, 209, 178, 0.45); }
.wm-card__icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	background: rgba(0, 209, 178, 0.10);
	color: var(--color-primary);
	margin-bottom: var(--space-2);
}
.wm-card__icon svg { width: 22px; height: 22px; }
.wm-card__title { margin: 0 0 8px; font-size: 1.15rem; }
.wm-card__text { color: var(--color-muted); margin: 0; font-size: 0.95rem; }

/* ===== Features grid ===== */
.wm-features {
	display: grid;
	gap: var(--space-3);
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.wm-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.wm-features { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Protocol / security ===== */
.wm-protocol {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: 1fr;
	align-items: center;
}
@media (min-width: 1024px) {
	.wm-protocol { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.wm-protocol__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--space-2);
}
.wm-protocol__item {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}
.wm-protocol__item .check {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 209, 178, 0.12);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wm-protocol__item strong { color: var(--color-text); display: block; margin-bottom: 4px; }
.wm-protocol__item span { color: var(--color-muted); font-size: 0.95rem; }
.wm-protocol__panel {
	background: var(--color-secondary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-3);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--color-muted);
	white-space: pre-wrap;
	overflow-x: auto;
}

/* ===== Downloads ===== */
.wm-downloads__list {
	display: grid;
	gap: var(--space-2);
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.wm-downloads__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.wm-downloads__list { grid-template-columns: repeat(4, 1fr); }
}
.wm-download {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	padding: var(--space-3);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	text-decoration: none;
	color: var(--color-text);
	transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.wm-download:hover { transform: translateY(-2px); border-color: var(--color-primary); background: var(--color-surface-strong); }
.wm-download svg { width: 28px; height: 28px; color: var(--color-primary); }
.wm-download strong { font-size: 1rem; }
.wm-download small { color: var(--color-muted); font-size: 0.8rem; }

/* ===== Community ===== */
.wm-community {
	display: grid;
	gap: var(--space-2);
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
	.wm-community { grid-template-columns: repeat(4, 1fr); }
}
.wm-community a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: var(--space-3);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
	text-align: center;
	text-decoration: none;
	transition: transform 200ms ease, border-color 200ms ease;
}
.wm-community a:hover { transform: translateY(-2px); border-color: var(--color-primary); }
.wm-community svg { width: 26px; height: 26px; color: var(--color-primary); }
.wm-community span { font-size: 0.9rem; font-weight: 500; }

/* ===== Stats ===== */
.wm-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-2);
	text-align: center;
}
@media (min-width: 768px) { .wm-stats { grid-template-columns: repeat(4, 1fr); } }
.wm-stat__num {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wm-stat__label { color: var(--color-muted); font-size: 0.85rem; }

/* ===== Footer ===== */
.wm-footer {
	margin-top: var(--space-6);
	padding: var(--space-5) 0;
	border-top: 1px solid var(--color-border);
	background: rgba(0, 0, 0, 0.25);
}
.wm-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	color: var(--color-muted);
	font-size: 0.9rem;
}
@media (min-width: 768px) {
	.wm-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
.wm-footer a { color: var(--color-muted); }
.wm-footer a:hover { color: var(--color-primary); }

/* ===== Posts & pages (archive) ===== */
.site-main { padding-bottom: var(--space-6); }
.page-header, .entry-header { margin-bottom: var(--space-3); }
.page-title, .entry-title {
	color: var(--color-text);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 var(--space-2);
}
.entry-title a { color: inherit; }
.entry-content, .entry-summary { color: var(--color-text); margin: var(--space-2) 0; }
.entry-content a, .entry-summary a { color: var(--color-primary); }
.post, .page, .type-page, .type-post {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	margin: 0 0 var(--space-3);
}
.post-thumbnail img, .entry-content img, .wp-post-image {
	border-radius: var(--radius-md);
	display: block;
	margin: var(--space-2) 0;
}
.entry-meta, .entry-footer { color: var(--color-muted); font-size: 0.85rem; }
.entry-meta a, .entry-footer a { color: var(--color-muted); }
.entry-meta a:hover, .entry-footer a:hover { color: var(--color-primary); }

/* Pagination */
.navigation.posts-navigation, .navigation.post-navigation, .comment-navigation {
	margin: var(--space-4) 0;
}
.nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	flex-wrap: wrap;
}
.nav-links a {
	padding: 12px 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-text);
	background: var(--color-surface);
}
.nav-links a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-numbers {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}
.page-numbers a, .page-numbers span {
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
}
.page-numbers .current { background: var(--color-primary); color: var(--color-secondary); border-color: var(--color-primary); }

/* ===== Comments ===== */
.comments-area { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.comments-title { color: var(--color-text); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { padding: var(--space-2); border-bottom: 1px solid var(--color-border); }
.bypostauthor { display: block; }
.comment-content a { word-wrap: break-word; }

/* ===== Widgets ===== */
.widget { margin: 0 0 var(--space-3); }
.widget select { max-width: 100%; }
.widget-area .widget, .wp-block-group {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-3);
}

/* ===== Media ===== */
.page-content .wp-smiley, .entry-content .wp-smiley, .comment-content .wp-smiley {
	border: none;
	margin: 0;
	padding: 0;
}
.custom-logo-link { display: inline-block; }

/* ===== Captions / galleries ===== */
.wp-caption { margin-bottom: var(--space-2); max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; border-radius: var(--radius-sm); }
.wp-caption .wp-caption-text { margin: 8px 0; color: var(--color-muted); font-size: 0.9rem; text-align: center; }
.gallery { margin-bottom: var(--space-2); display: grid; gap: var(--space-2); }
.gallery-item { display: inline-block; text-align: center; }
.gallery-caption { display: block; color: var(--color-muted); font-size: 0.85rem; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer { display: none; }
.infinity-end.neverending .site-footer { display: block; }

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--color-bg);
	border-radius: var(--radius-sm);
	box-shadow: 0 0 2px 2px var(--color-primary);
	clip: auto !important;
	clip-path: none;
	color: var(--color-primary);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
#primary[tabindex="-1"]:focus { outline: 0; }

.alignleft { float: left; margin-right: var(--space-2); margin-bottom: var(--space-2); }
.alignright { float: right; margin-left: var(--space-2); margin-bottom: var(--space-2); }
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-2);
}
