/*
Theme Name: ReportWire Press
Theme URI: https://reportwire.org/
Author: WarRoom for ReportWire
Author URI: https://reportwire.org/
Description: A lightweight, cache-friendly news theme built for ReportWire-style publishing sites. Designed for speed, readable archives, WordPress Automatic imports, and low database pressure.
Version: 1.0.1
Requires at least: 5.8
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: reportwire-press
Tags: blog, news, custom-logo, custom-menu, featured-images, right-sidebar, two-columns
*/

:root {
	--rw-bg: #ffffff;
	--rw-surface: #f6f7f8;
	--rw-text: #15171a;
	--rw-muted: #667085;
	--rw-border: #e4e7ec;
	--rw-link: #0b57d0;
	--rw-link-hover: #083b8f;
	--rw-accent: #111827;
	--rw-max: 1180px;
	--rw-radius: 12px;
	--rw-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--rw-bg);
	color: var(--rw-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--rw-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--rw-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--rw-link);
	outline-offset: 2px;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: #ffffff;
	color: #000000;
	border: 2px solid #000000;
}

.rw-container {
	max-width: var(--rw-max);
	margin: 0 auto;
	padding: 0 20px;
}

.site-header {
	border-bottom: 1px solid var(--rw-border);
	background: #ffffff;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 24px;
}

.site-title {
	margin: 0;
	font-size: clamp(1.45rem, 2vw, 2rem);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.site-title a {
	color: var(--rw-text);
	text-decoration: none;
}

.site-description {
	margin: 6px 0 0;
	color: var(--rw-muted);
	font-size: 0.92rem;
}

.custom-logo-link img {
	max-height: 58px;
	width: auto;
}

.main-navigation {
	display: flex;
	align-items: center;
}

.menu-toggle {
	display: none;
	border: 1px solid var(--rw-border);
	background: #ffffff;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
}

.primary-menu,
.primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.primary-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--rw-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
	background: var(--rw-surface);
}

.site-main-wrap {
	padding: 30px 0 44px;
}

.rw-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	align-items: start;
}

.no-sidebar .rw-layout {
	grid-template-columns: minmax(0, 1fr);
}

.page-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--rw-border);
}

.page-title,
.entry-title {
	margin: 0 0 10px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.page-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.entry-title {
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.entry-title a {
	color: var(--rw-text);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--rw-link);
}

.archive-description {
	color: var(--rw-muted);
	max-width: 760px;
}

.rw-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.rw-card {
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius);
	overflow: hidden;
	background: #ffffff;
	box-shadow: var(--rw-shadow);
}

.rw-card .post-thumbnail {
	aspect-ratio: 16 / 9;
	background: var(--rw-surface);
	overflow: hidden;
}

.rw-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rw-card-body {
	padding: 18px;
}

.rw-card .entry-title {
	font-size: 1.18rem;
	margin-bottom: 8px;
}

.entry-meta,
.entry-footer {
	color: var(--rw-muted);
	font-size: 0.9rem;
}

.entry-meta a,
.entry-footer a {
	color: inherit;
}

.entry-summary {
	color: #344054;
}

.read-more {
	display: inline-flex;
	margin-top: 8px;
	font-weight: 700;
	text-decoration: none;
}

.single .entry-header,
.page .entry-header {
	margin-bottom: 22px;
}

.single .post-thumbnail {
	margin: 0 0 24px;
	border-radius: var(--rw-radius);
	overflow: hidden;
	background: var(--rw-surface);
}

.entry-content {
	font-size: 1.05rem;
	max-width: 780px;
}

.entry-content p {
	margin: 0 0 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	line-height: 1.2;
	margin: 1.6em 0 0.6em;
	letter-spacing: -0.02em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1em 1.2em;
	border-left: 4px solid var(--rw-accent);
	background: var(--rw-surface);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--rw-border);
	padding: 10px;
	text-align: left;
}

.widget-area {
	position: sticky;
	top: 16px;
}

.widget {
	margin-bottom: 22px;
	padding: 18px;
	border: 1px solid var(--rw-border);
	border-radius: var(--rw-radius);
	background: #ffffff;
	box-shadow: var(--rw-shadow);
}

.widget-title,
.widget h2,
.widget h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	line-height: 1.2;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	margin: 0 0 10px;
}

.widget a {
	text-decoration: none;
}

.widget a:hover {
	text-decoration: underline;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rw-border);
	border-radius: 8px;
}

.search-submit,
.wp-block-search__button {
	border: 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--rw-accent);
	color: #ffffff;
	cursor: pointer;
}

.posts-navigation,
.post-navigation,
.pagination {
	margin-top: 30px;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.page-numbers {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid var(--rw-border);
	border-radius: 8px;
	text-decoration: none;
	margin: 0 4px 8px 0;
}

.page-numbers.current {
	background: var(--rw-accent);
	color: #ffffff;
	border-color: var(--rw-accent);
}

.site-footer {
	border-top: 1px solid var(--rw-border);
	background: var(--rw-surface);
	color: var(--rw-muted);
}

.footer-inner {
	padding: 24px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.92rem;
}

.footer-inner ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-inner a {
	color: inherit;
	text-decoration: none;
}

.footer-inner a:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 900px) {
	.header-inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px 0;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.primary-menu {
		display: none;
		width: 100%;
		flex-direction: column;
	}

	.main-navigation.toggled .primary-menu {
		display: flex;
	}

	.primary-menu a {
		padding: 10px 0;
	}

	.rw-layout {
		grid-template-columns: 1fr;
	}

	.widget-area {
		position: static;
	}
}

@media (max-width: 640px) {
	.rw-container {
		padding: 0 16px;
	}

	.rw-post-grid {
		grid-template-columns: 1fr;
	}

	.site-main-wrap {
		padding-top: 22px;
	}

	.entry-content {
		font-size: 1rem;
	}

	.footer-inner {
		display: block;
	}
}
