/* RevaPress — minimal, performance-first layout */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--rp-body-font);
	font-size: var(--rp-font-size);
	line-height: 1.65;
	color: var(--rp-text);
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--rp-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus {
	color: var(--rp-link-hover);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rp-heading-font);
	line-height: 1.25;
	font-weight: 700;
}

.rp-container {
	width: min(100% - 2rem, var(--rp-container));
	margin-inline: auto;
}

.site-content {
	padding-block: 2rem 3rem;
}

.site-content-inner {
	display: grid;
	gap: 2rem;
	align-items: start;
}

/* Grid avoids flex % + gap wrapping sidebar under content (layout "shift") */
.layout-right-sidebar .site-content-inner {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.layout-left-sidebar .site-content-inner {
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.layout-left-sidebar .site-content-inner > .content-area {
	grid-column: 2;
	grid-row: 1;
}

.layout-left-sidebar .site-content-inner > .sidebar-primary {
	grid-column: 1;
	grid-row: 1;
}

.layout-no-sidebar .site-content-inner {
	grid-template-columns: minmax(0, 1fr);
}

.layout-both-sidebars .site-content-inner {
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 260px);
}

.content-area {
	min-width: 0;
}

@media (max-width: 767px) {
	.layout-right-sidebar .site-content-inner,
	.layout-left-sidebar .site-content-inner,
	.layout-both-sidebars .site-content-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.layout-left-sidebar .site-content-inner > .content-area,
	.layout-left-sidebar .site-content-inner > .sidebar-primary {
		grid-column: auto;
		grid-row: auto;
	}
}

/* Header */
.site-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	position: relative;
	z-index: 100;
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
}

.header-centered .site-header-inner {
	flex-direction: column;
	text-align: center;
}

.header-stacked .site-header-inner {
	flex-direction: column;
	align-items: stretch;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	opacity: 0.85;
}

.main-navigation {
	margin-left: auto;
}

.header-centered .main-navigation,
.header-stacked .main-navigation {
	margin-left: 0;
	width: 100%;
}

.menu-toggle {
	display: none;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	padding: 0.5rem 0.85rem;
	border-radius: 4px;
	cursor: pointer;
	font: inherit;
}

.primary-menu,
.secondary-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.primary-menu a,
.secondary-menu a,
.footer-menu a {
	text-decoration: none;
	color: inherit;
	font-weight: 500;
}

.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0 1rem;
}

.secondary-navigation-wrap {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.92rem;
}

.secondary-navigation-wrap .secondary-menu {
	padding-block: 0.5rem;
}

/* Mobile nav breakpoint is injected from Customizer via inline CSS */

/* Entries */
.entry {
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.entry:last-child {
	border-bottom: 0;
}

.entry-title {
	margin-top: 0;
}

.entry-meta {
	font-size: 0.88rem;
	opacity: 0.85;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.post-thumbnail {
	margin-bottom: 1rem;
	border-radius: 4px;
	overflow: hidden;
}

.entry-content > *:first-child,
.entry-summary > *:first-child {
	margin-top: 0;
}

.entry-footer {
	font-size: 0.88rem;
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.page-header {
	margin-bottom: 2rem;
}

.page-links,
.posts-navigation,
.post-navigation {
	margin-top: 2rem;
}

/* Widgets */
.widget {
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

/* Footer */
.footer-widgets {
	background: #f6f7f8;
	padding: 2.5rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-widgets-inner {
	display: grid;
	gap: 2rem;
}

.footer-widgets-inner.cols-1 { grid-template-columns: 1fr; }
.footer-widgets-inner.cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-widgets-inner.cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-widgets-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.footer-widgets-inner.cols-2,
	.footer-widgets-inner.cols-3,
	.footer-widgets-inner.cols-4 {
		grid-template-columns: 1fr;
	}
}

.site-info {
	padding: 1.25rem 0 2rem;
	font-size: 0.9rem;
}

.site-info-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.copyright {
	margin: 0;
}

.copyright a {
	color: inherit;
}

/* Forms & comments */
.search-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.search-field {
	flex: 1 1 200px;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	font: inherit;
}

.search-submit,
button,
input[type="submit"] {
	font: inherit;
	cursor: pointer;
}

.comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

/* Accessibility */
.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;
}

.skip-link:focus {
	clip: auto;
	height: auto;
	width: auto;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 100001;
	padding: 0.75rem 1rem;
	background: #fff;
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: var(--rp-primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	z-index: 90;
}

.back-to-top::before {
	content: "↑";
	font-size: 1.25rem;
	line-height: 1;
}

.back-to-top[hidden] {
	display: none;
}

/* Blocks */
.alignwide,
.alignfull {
	max-width: none;
}

.wp-block-button__link {
	background: var(--rp-primary);
}
