/*!
Theme Name: mwv3
Theme URI: https://www.youcanseethemilkyway.com/
Author: Milky Way Guide
Description: Dark sky guide theme - mw2026 design system.
Version: 1.0.0
Requires at least: 6.0
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: mwv3
Tags: custom-logo, custom-menu, featured-images, translation-ready, blog

mwv3 - Milky Way visibility guide WordPress theme.
Main styles: assets/css/mw2026.css
*/

/* WordPress alignment utilities (block editor) */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

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

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	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;
}

.posts-pagination {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.posts-pagination .nav-links {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
}

.posts-pagination a,
.posts-pagination span {
	color: var(--text-secondary, rgba(244, 246, 251, 0.68));
	text-decoration: none;
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-sm, 8px);
	border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.posts-pagination .page-numbers:not(.prev):not(.next):not(.dots) {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
}

.posts-pagination .page-numbers.current {
	color: var(--text-primary, #f4f6fb);
	background: rgba(107, 159, 255, 0.12);
	border-color: rgba(107, 159, 255, 0.35);
}

.posts-pagination a:hover {
	color: var(--text-primary, #f4f6fb);
	border-color: var(--border-strong, rgba(255, 255, 255, 0.14));
}

/* Single article & page layout */
:root {
  --site-header-offset: 96px;
  --site-header-gap: 16px;
}

body.single-article-page .article-hero {
	padding-top: 112px;
}

body.single-page .page-hero {
	padding-top: 148px;
}

body.error-404-page .error-404 {
	padding-top: 148px;
}

body.single-article-page .article-prose h2[id],
body.single-article-page .article-prose h3[id] {
	scroll-margin-top: calc(var(--site-header-offset, 96px) + var(--site-header-gap, 16px));
}

#milky-way-from-earth .article-prose h2[id],
#milky-way-from-earth .article-prose h3[id] {
	scroll-margin-top: calc(var(--site-header-offset, 96px) + var(--site-header-gap, 16px));
}

body.single-page .page-prose h2[id],
body.single-page .page-prose h3[id] {
	scroll-margin-top: calc(var(--site-header-offset, 96px) + var(--site-header-gap, 16px));
}

body.single-article-page .article-tags--empty {
	min-height: 0;
	padding-bottom: 32px;
}

.blog-archive {
	padding: 112px 24px 96px;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(107, 159, 255, 0.06), transparent 65%),
		color-mix(in srgb, var(--bg-deep, #070b14) 78%, transparent);
	border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.blog-archive .latest-articles-header h1 {
	font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
	font-weight: 600;
	letter-spacing: 5px;
	color: var(--text-primary, #f4f6fb);
}

.blog-archive .archive-empty {
	padding: 24px 0 8px;
}

.archive-empty-inner {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.archive-empty .eyebrow {
	margin-bottom: 14px;
}

.archive-empty-title {
	font-size: clamp(1.35rem, 1.5vw + 1rem, 1.75rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--text-primary, #f4f6fb);
	margin-bottom: 12px;
}

.archive-empty-lead {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text-secondary, rgba(244, 246, 251, 0.68));
	margin-bottom: 24px;
}

.archive-empty-lead a {
	color: var(--accent-hover, #8eb4ff);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.archive-empty-search {
	display: flex;
	gap: 10px;
	max-width: 420px;
	margin: 0 auto 20px;
}

.archive-empty-search-input {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	font-size: 0.9375rem;
	color: var(--text-primary, #f4f6fb);
	background: rgba(9, 14, 26, 0.92);
	border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-sm, 8px);
}

.archive-empty-search-input::placeholder {
	color: var(--text-muted, rgba(244, 246, 251, 0.45));
}

.archive-empty-search-input:focus {
	outline: none;
	border-color: rgba(107, 159, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(107, 159, 255, 0.12);
}

.archive-empty-search-submit {
	padding: 12px 18px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a1020;
	background: linear-gradient(135deg, var(--gold, #e8c872), #f0e2b8);
	border: 0;
	border-radius: var(--radius-sm, 8px);
	cursor: pointer;
	transition: filter 0.2s ease;
}

.archive-empty-search-submit:hover {
	filter: brightness(1.06);
}

.archive-empty-actions {
	margin-top: 8px;
}

.archive-empty-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent-hover, #8eb4ff);
	text-decoration: none;
}

.archive-empty-link:hover {
	color: var(--gold, #e8c872);
}

