/*
Theme Name: Padel Angle
Theme URI: https://padelangle.com
Author: Eliud
Author URI: https://padelangle.com
Description: A fast, lightweight theme for padel guides and gear reviews. Court-blue and ball-yellow styling, angled section edges inspired by wall rebounds, and a full set of Customizer options for the homepage, blog, header, footer, widgets, menus and logo. No jQuery, no web fonts, one small stylesheet.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: padelangle
Tags: blog, news, sports, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, left-sidebar, grid-layout, accessibility-ready
*/

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

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

body {
	margin: 0;
	background: var(--pa-bg, #fff);
	color: var(--pa-text, #0F1B2D);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--pa-link, #1747B8); text-underline-offset: 0.18em; }
a:hover { color: var(--pa-link-hover, #0E2A6B); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-family: var(--pa-font-head, "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--pa-text, #0F1B2D);
}

p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }

:focus-visible {
	outline: 3px solid var(--pa-link, #1747B8);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 8px;
	top: 8px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--pa-accent, #D8F244);
	color: var(--pa-on-accent, #0F1B2D);
	font-weight: 700;
	text-decoration: none;
}

.pa-container {
	width: 100%;
	max-width: var(--pa-container, 1200px);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* ---------- Buttons ---------- */
.pa-btn {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--pa-radius, 6px);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pa-btn--small { padding: 0.55rem 1rem; font-size: 0.9rem; }
.pa-btn--accent { background: var(--pa-accent, #D8F244); color: var(--pa-on-accent, #0F1B2D); }
.pa-btn--accent:hover { background: #fff; color: var(--pa-primary-dark, #0E2A6B); }
.pa-btn--primary { background: var(--pa-primary, #1747B8); color: var(--pa-on-primary, #fff); }
.pa-btn--primary:hover { background: var(--pa-primary-dark, #0E2A6B); color: var(--pa-on-primary, #fff); }
.pa-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.pa-btn--ghost:hover { background: #fff; color: var(--pa-primary-dark, #0E2A6B); }

/* ---------- Top bar and header ---------- */
.pa-topbar {
	background: var(--pa-band-bg, var(--pa-ink, #0F1B2D));
	color: #fff;
	font-size: 0.875rem;
	text-align: center;
	padding: 0.45rem 0;
}
.pa-topbar a { color: var(--pa-accent, #D8F244); }

.pa-header {
	background: var(--pa-bg, #fff);
	border-bottom: 1px solid var(--pa-line, #dde3ea);
	z-index: 50;
}
.pa-sticky .pa-header { position: sticky; top: 0; }
.admin-bar.pa-sticky .pa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.pa-sticky .pa-header { top: 46px; } }

.pa-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 68px;
}

.pa-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--pa-text, #0F1B2D);
	text-decoration: none;
}
.pa-brand:hover { color: var(--pa-text, #0F1B2D); }
.pa-brand__logo { width: auto; max-height: 48px; }
.pa-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.pa-brand__name {
	font-family: var(--pa-font-head, sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.pa-brand__tag { font-size: 0.75rem; color: var(--pa-muted, #5b6b7d); margin-top: 0.15rem; }

/* Brand mark colors follow the Customizer. */
.pa-mark { flex: none; }
.pa-mark__bg { fill: var(--pa-primary, #1747B8); }
.pa-mark__wall { stroke: #fff; stroke-width: 4; stroke-linecap: round; fill: none; }
.pa-mark__in { stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 6; fill: none; }
.pa-mark__out { stroke: #fff; stroke-width: 3; stroke-linecap: round; fill: none; }
.pa-mark__ball { fill: var(--pa-accent, #D8F244); }
.pa-mark__seam { stroke: var(--pa-ink, #0F1B2D); stroke-width: 1.4; stroke-linecap: round; fill: none; }

/* Navigation */
.pa-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--pa-line, #dde3ea);
	border-radius: var(--pa-radius, 6px);
	background: var(--pa-bg, #fff);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.pa-burger,
.pa-burger::before,
.pa-burger::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--pa-text, #0F1B2D);
	content: "";
	position: relative;
}
.pa-burger::before { position: absolute; top: -6px; }
.pa-burger::after { position: absolute; top: 6px; }

.pa-nav { display: flex; align-items: center; gap: 1.5rem; }
.pa-menu, .pa-menu ul { list-style: none; margin: 0; padding: 0; }
.pa-menu { display: flex; align-items: center; gap: 0.25rem; }
.pa-menu li { position: relative; }
.pa-menu a {
	display: block;
	padding: 0.6rem 0.8rem;
	color: var(--pa-text, #0F1B2D);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--pa-radius, 6px);
}
.pa-menu a:hover,
.pa-menu .current-menu-item > a,
.pa-menu .current-menu-ancestor > a { color: var(--pa-link, #1747B8); background: var(--pa-primary-soft, #e8eefb); }

.pa-menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	padding: 0.4rem;
	background: var(--pa-bg, #fff);
	border: 1px solid var(--pa-line, #dde3ea);
	border-radius: var(--pa-radius, 6px);
	box-shadow: 0 10px 30px rgba(15, 27, 45, 0.12);
	z-index: 60;
}
.pa-menu li:hover > .sub-menu,
.pa-menu li:focus-within > .sub-menu { display: block; }

.pa-nav__actions { display: flex; align-items: center; gap: 0.9rem; }
.pa-search-link { color: var(--pa-text, #0F1B2D); font-weight: 600; text-decoration: none; }
.pa-search-link:hover { color: var(--pa-link, #1747B8); text-decoration: underline; }

@media (max-width: 860px) {
	.pa-nav-toggle { display: inline-flex; }
	.pa-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.75rem 1.25rem 1.25rem;
		background: var(--pa-bg, #fff);
		border-bottom: 1px solid var(--pa-line, #dde3ea);
		box-shadow: 0 14px 24px rgba(15, 27, 45, 0.1);
	}
	.pa-nav.is-open { display: flex; }
	.pa-header { position: relative; }
	.pa-sticky .pa-header { position: sticky; }
	.pa-menu { flex-direction: column; align-items: stretch; }
	.pa-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.pa-nav__actions { margin-top: 0.75rem; justify-content: space-between; }
}

/* ---------- Angled edges ---------- */
.pa-angled {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pa-cut, 44px)), 0 100%);
	padding-bottom: calc(var(--pa-cut, 44px) + 3.5rem);
}

/* ---------- Hero ---------- */
.pa-hero {
	position: relative;
	background-color: var(--pa-link, #1747B8);
	/* Court markings: a service line and a center line. */
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
		linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14));
	background-repeat: no-repeat;
	background-size: 2px 100%, 100% 2px;
	background-position: 58% 0, 0 70%;
	color: var(--pa-on-primary, #fff);
	padding-top: clamp(2.5rem, 7vw, 5.5rem);
}
.pa-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 2rem;
}
.pa-hero__title {
	max-width: 14em;
	margin-bottom: 0.5em;
	color: inherit;
	font-size: clamp(2.2rem, 5.2vw, 3.9rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}
.pa-hero__text { max-width: 34em; margin-bottom: 1.6rem; font-size: 1.15rem; opacity: 0.92; }
.pa-hero__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pa-hero__visual { justify-self: end; width: 100%; max-width: 440px; }
.pa-hero__art { width: 100%; }

.pa-art__wall { fill: rgba(255, 255, 255, 0.18); stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.pa-art__shine { stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; stroke-linecap: round; fill: none; }
.pa-art__floor { stroke: rgba(255, 255, 255, 0.5); stroke-width: 3; stroke-linecap: round; fill: none; }
.pa-art__in { stroke: rgba(255, 255, 255, 0.7); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; fill: none; }
.pa-art__out { stroke: #fff; stroke-width: 4; stroke-linecap: round; fill: none; }
.pa-art__arc { stroke: var(--pa-accent, #D8F244); stroke-width: 3; stroke-linecap: round; fill: none; }
.pa-art__ball { fill: var(--pa-accent, #D8F244); }
.pa-art__seam { stroke: var(--pa-ink, #0F1B2D); stroke-width: 2.5; stroke-linecap: round; fill: none; }

@media (max-width: 860px) {
	.pa-hero__grid { grid-template-columns: 1fr; }
	.pa-hero__visual { display: none; }
}

/* ---------- Topic tiles ---------- */
.pa-topics { position: relative; z-index: 2; margin-top: -3.2rem; }
.pa-hero:not(.pa-angled) + .pa-topics { margin-top: 1.5rem; }
.pa-topics__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pa-tile {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	height: 100%;
	padding: 1.1rem 1.2rem 1.2rem;
	background: var(--pa-card, #fff);
	border: 1px solid var(--pa-line, #dde3ea);
	border-left: 6px solid var(--pa-accent, #D8F244);
	border-radius: var(--pa-radius, 6px);
	color: var(--pa-text, #0F1B2D);
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(15, 27, 45, 0.08);
}
a.pa-tile:hover { border-left-color: var(--pa-link, #1747B8); color: var(--pa-text, #0F1B2D); }
.pa-tile__title { font-family: var(--pa-font-head, sans-serif); font-size: 1.1rem; font-weight: 800; }
.pa-tile__text { font-size: 0.92rem; color: var(--pa-muted, #5b6b7d); line-height: 1.45; }

@media (max-width: 960px) { .pa-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pa-topics__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.pa-section { padding: 3.5rem 0; }
.pa-section--tint { background: var(--pa-surface, #F1F6FA); }
.pa-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.pa-section__title { margin-bottom: 1.2rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.pa-section__head .pa-section__title { margin-bottom: 0; }
.pa-more { font-weight: 700; }

.pa-band { background: var(--pa-band-bg, var(--pa-ink, #0F1B2D)); color: #fff; padding: 2.5rem 0; }
.pa-band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.pa-band__text { margin: 0; max-width: 36em; font-family: var(--pa-font-head, sans-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.3; }

/* ---------- Page heading (archives, search, blog) ---------- */
.pa-pagehead { background: var(--pa-surface, #F1F6FA); border-bottom: 1px solid var(--pa-line, #dde3ea); padding: 2.2rem 0 1.8rem; }
.pa-pagehead__title { margin-bottom: 0.3em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pa-pagehead__desc { max-width: 40em; color: var(--pa-muted, #5b6b7d); }
.pa-pagehead .pa-search { max-width: 480px; margin-top: 1rem; }

/* ---------- Layout with sidebar ---------- */
.pa-layout { display: grid; gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
.pa-layout--right { grid-template-columns: minmax(0, 1fr) 300px; }
.pa-layout--left { grid-template-columns: 300px minmax(0, 1fr); }
.pa-layout--left .pa-sidebar { order: -1; }
.pa-layout--none { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
	.pa-layout--right, .pa-layout--left { grid-template-columns: minmax(0, 1fr); }
	.pa-layout--left .pa-sidebar { order: 0; }
}
.pa-page { max-width: 820px; padding-block: 2.5rem 3.5rem; }

/* ---------- Post cards ---------- */
.pa-posts { display: grid; gap: 1.75rem; }
.pa-posts--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pa-layout--right .pa-posts--grid,
.pa-layout--left .pa-posts--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pa-posts--list { grid-template-columns: minmax(0, 1fr); }

.pa-card { display: flex; flex-direction: column; background: var(--pa-card, #fff); border-radius: var(--pa-radius, 6px); overflow: hidden; border: 1px solid var(--pa-line, #dde3ea); }
.pa-card__media { display: block; aspect-ratio: 8 / 5; background: var(--pa-primary-soft, #e8eefb); overflow: hidden; }
.pa-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pa-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--pa-link, #1747B8);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
		linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
	background-repeat: no-repeat;
	background-size: 2px 100%, 100% 2px;
	background-position: 62% 0, 0 68%;
}
.pa-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.2rem 1.25rem; }
.pa-card__title { margin-bottom: 0.45rem; font-size: 1.2rem; line-height: 1.25; }
.pa-card__title a { color: var(--pa-text, #0F1B2D); text-decoration: none; }
.pa-card__title a:hover { color: var(--pa-link, #1747B8); text-decoration: underline; }
.pa-card__excerpt { margin-bottom: 0.8rem; color: var(--pa-muted, #5b6b7d); font-size: 0.95rem; line-height: 1.55; }
.pa-card .pa-meta { margin: auto 0 0; }

.pa-posts--list .pa-card { flex-direction: row; }
.pa-posts--list .pa-card__media { flex: 0 0 260px; aspect-ratio: auto; }
@media (max-width: 640px) {
	.pa-posts--list .pa-card { flex-direction: column; }
	.pa-posts--list .pa-card__media { flex: none; aspect-ratio: 8 / 5; }
}

.pa-cat {
	align-self: flex-start;
	margin-bottom: 0.55rem;
	padding: 0.15rem 0.55rem;
	background: var(--pa-accent, #D8F244);
	border-radius: 3px;
	color: var(--pa-on-accent, #0F1B2D);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}
.pa-cat:hover { background: var(--pa-ink, #0F1B2D); color: #fff; }

.pa-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0; margin: 0 0 1rem; color: var(--pa-muted, #5b6b7d); font-size: 0.85rem; }
.pa-meta__item + .pa-meta__item::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.9em;
	margin: 0 0.6rem;
	background: currentColor;
	opacity: 0.4;
	vertical-align: -0.1em;
}

/* Pagination */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers {
	min-width: 42px;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--pa-line, #dde3ea);
	border-radius: var(--pa-radius, 6px);
	color: var(--pa-text, #0F1B2D);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--pa-primary, #1747B8); border-color: var(--pa-link, #1747B8); color: var(--pa-on-primary, #fff); }

/* ---------- Single posts and pages ---------- */
.pa-article__head { margin-bottom: 1.5rem; }
.pa-article__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; }
.pa-article__image { margin: 0 0 2rem; border-radius: var(--pa-radius, 6px); overflow: hidden; }
.pa-article__image img { width: 100%; }

.pa-disclosure {
	margin-bottom: 1.5rem;
	padding: 0.7rem 1rem;
	background: var(--pa-surface, #F1F6FA);
	border-left: 4px solid var(--pa-primary, #1747B8);
	color: var(--pa-muted, #5b6b7d);
	font-size: 0.9rem;
}

.pa-prose { font-size: 1.0625rem; line-height: 1.75; max-width: 46rem; }
.pa-prose--wide { max-width: none; }
.pa-prose h2 { margin-top: 2.2em; font-size: 1.7rem; }
.pa-prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.pa-prose img { border-radius: var(--pa-radius, 6px); }
.pa-prose blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.2rem;
	border-left: 5px solid var(--pa-accent, #D8F244);
	font-size: 1.1em;
}
.pa-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.pa-prose th, .pa-prose td { padding: 0.6rem 0.8rem; border: 1px solid var(--pa-line, #dde3ea); text-align: left; }
.pa-prose th { background: var(--pa-surface, #F1F6FA); }
.pa-prose pre { overflow-x: auto; padding: 1rem; background: var(--pa-surface, #F1F6FA); border-radius: var(--pa-radius, 6px); }
.pa-prose code { font-size: 0.92em; }
.pa-prose figure { margin: 1.6em 0; }
.pa-prose figcaption, .wp-caption-text { margin-top: 0.4rem; color: var(--pa-muted, #5b6b7d); font-size: 0.85rem; }

.pa-tags { margin-top: 2rem; font-size: 0.9rem; }
.pa-tags a { display: inline-block; margin: 0 0.35rem 0.35rem 0; padding: 0.2rem 0.6rem; border: 1px solid var(--pa-line, #dde3ea); border-radius: 999px; color: var(--pa-text, #0F1B2D); text-decoration: none; }
.pa-tags a:hover { background: var(--pa-primary-soft, #e8eefb); }

.pa-authorbox { display: flex; gap: 1rem; margin: 2.5rem 0; padding: 1.25rem; background: var(--pa-surface, #F1F6FA); border-radius: var(--pa-radius, 6px); }
.pa-authorbox img { border-radius: 50%; }
.pa-authorbox__name { margin: 0 0 0.2rem; font-weight: 800; }
.pa-authorbox p:last-child { margin: 0; font-size: 0.95rem; color: var(--pa-muted, #5b6b7d); }

.post-navigation { margin: 2.5rem 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 0.9rem 1rem; border: 1px solid var(--pa-line, #dde3ea); border-radius: var(--pa-radius, 6px); color: var(--pa-text, #0F1B2D); font-weight: 700; text-decoration: none; line-height: 1.35; }
.post-navigation a:hover { border-color: var(--pa-link, #1747B8); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.pa-nav-label { display: block; color: var(--pa-muted, #5b6b7d); font-size: 0.8rem; font-weight: 600; }
@media (max-width: 560px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.pa-related { margin-top: 3rem; }

/* ---------- Sidebar and widgets ---------- */
.pa-sidebar .widget,
.pa-footer .widget { margin-bottom: 2rem; }
.widget-title { margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 3px solid var(--pa-accent, #D8F244); font-size: 1.05rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid var(--pa-line, #dde3ea); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.widget select { max-width: 100%; }

/* ---------- Search form ---------- */
.pa-search { display: flex; gap: 0.5rem; }
.pa-search__field {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.85rem;
	border: 2px solid var(--pa-line, #dde3ea);
	border-radius: var(--pa-radius, 6px);
	background: var(--pa-card, #fff);
	color: var(--pa-text, #0F1B2D);
	font: inherit;
}
.pa-search__field:focus { border-color: var(--pa-link, #1747B8); outline: none; }

.pa-empty { padding: 1.5rem 0; }
.pa-404 .pa-search { max-width: 460px; margin-bottom: 1.5rem; }

/* ---------- Ad slots ---------- */
.pa-ad { margin: 1.5rem 0; text-align: center; }
.pa-ad__label { display: block; margin-bottom: 0.3rem; color: var(--pa-muted, #5b6b7d); font-size: 0.7rem; letter-spacing: 0.04em; }
.pa-ad__inner { min-height: 100px; overflow: hidden; }
.pa-ad .widget { margin: 0; }

/* ---------- Comments ---------- */
.pa-comments { margin-top: 3rem; }
.pa-comments__list { padding: 0; list-style: none; }
.pa-comments__list .comment-body { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--pa-line, #dde3ea); }
.pa-comments__list .children { list-style: none; padding-left: 1.25rem; }
.comment-author img { float: left; margin-right: 0.75rem; border-radius: 50%; }
.comment-metadata, .comment-metadata a { color: var(--pa-muted, #5b6b7d); font-size: 0.85rem; }
.comment-form label { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 0.6rem 0.8rem; border: 2px solid var(--pa-line, #dde3ea); border-radius: var(--pa-radius, 6px); font: inherit; }
.comment-form .submit { padding: 0.8rem 1.4rem; border: 0; border-radius: var(--pa-radius, 6px); background: var(--pa-primary, #1747B8); color: var(--pa-on-primary, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--pa-primary-dark, #0E2A6B); }

/* ---------- Footer ---------- */
.pa-footer {
	margin-top: 0;
	padding: 3rem 0 1.5rem;
	background: var(--pa-primary-dark, #0E2A6B);
	color: rgba(255, 255, 255, 0.85);
}
.pa-footer a { color: #fff; }
.pa-footer a:hover { color: var(--pa-accent, #D8F244); }
.pa-footer .widget-title { color: #fff; border-bottom-color: var(--pa-accent, #D8F244); }
.pa-footer .widget li { border-bottom-color: rgba(255, 255, 255, 0.15); }
.pa-footer__name { margin-bottom: 0.4rem; color: #fff; font-family: var(--pa-font-head, sans-serif); font-size: 1.4rem; font-weight: 800; }
.pa-footer__note { max-width: 38em; margin-bottom: 1rem; }
.pa-footer__widgets { display: grid; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.pa-cols-1 { grid-template-columns: minmax(0, 1fr); }
.pa-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pa-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pa-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .pa-cols-3, .pa-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pa-cols-2, .pa-cols-3, .pa-cols-4 { grid-template-columns: minmax(0, 1fr); } }

.pa-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin: 0; padding: 0; list-style: none; font-weight: 600; }

.pa-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.9rem; }
.pa-footer__copy { margin: 0; }
.pa-footer__menu { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor { display: block; }
.gallery { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.wp-block-image img { height: auto; }
.wp-block-button__link { border-radius: var(--pa-radius, 6px); }
.entry-content::after { content: ""; display: table; clear: both; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
@media print {
	.pa-header, .pa-topbar, .pa-footer, .pa-sidebar, .pa-ad, .pa-nav-toggle, .pa-related, .post-navigation, .pa-comments { display: none !important; }
	body { font-size: 12pt; }
}


/* ---------- Dark mode ---------- */
.pa-header__tools { display: flex; align-items: center; gap: 0.5rem; }
.pa-nav { margin-left: auto; }

.pa-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--pa-line, #dde3ea);
	border-radius: var(--pa-radius, 6px);
	background: var(--pa-bg, #fff);
	color: var(--pa-text, #0F1B2D);
	cursor: pointer;
}
.pa-theme-toggle:hover { border-color: var(--pa-link, #1747B8); color: var(--pa-link, #1747B8); }
.pa-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-ico--sun { display: none; }
:root[data-theme="dark"] .pa-ico--sun { display: block; }
:root[data-theme="dark"] .pa-ico--moon { display: none; }

/* Separate logo for dark backgrounds (optional upload in the Customizer). */
.pa-logo-dark { display: none; }
:root[data-theme="dark"] .pa-brand--duo .pa-logo-dark { display: block; }
:root[data-theme="dark"] .pa-brand--duo .pa-logo-light { display: none; }

:root[data-theme="dark"] .pa-prose img,
:root[data-theme="dark"] .pa-card__media img,
:root[data-theme="dark"] .pa-article__image img { filter: brightness(0.92); }
:root[data-theme="dark"] .pa-hero,
:root[data-theme="dark"] .pa-footer { color: #fff; }
:root[data-theme="dark"] .pa-btn--accent:hover { background: #fff; color: #0E2A6B; }

@media (max-width: 860px) {
	.pa-header__tools { margin-left: auto; }
	.pa-nav { margin-left: 0; }
}
