/**
 * Lyra Theme - Main Stylesheet
 *
 * Table of Contents:
 * 1. Reset & Base
 * 2. Layout
 * 3. Header & Navigation
 * 4. Content & Cards
 * 5. Sidebar & Widgets
 * 6. Footer
 * 7. Forms & Buttons
 * 8. Comments
 * 9. Pagination
 * 10. Utilities
 * 11. Print
 */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background-color: var(--wp--preset--color--background, #fff);
	color: var(--wp--preset--color--text-primary, #363940);
	font-family: var(--wp--preset--font-family--body, 'Libre Franklin', Arial, Helvetica, sans-serif);
	font-size: 1rem;
	line-height: 1.7;
	overflow-x: hidden;
}

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

a {
	color: var(--wp--preset--color--accent, #0f5f9f);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--wp--preset--color--primary, #363940);
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #0f5f9f);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading, 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--primary, #363940);
	margin-top: 0;
}

h1 { font-size: 2rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.125rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 4px solid var(--wp--preset--color--primary, #363940);
	font-style: italic;
	line-height: 1.8;
}

@media (min-width: 768px) {
	blockquote {
		margin-left: 2rem;
		margin-right: 2rem;
		padding-left: 2rem;
	}
}

blockquote cite {
	font-weight: 700;
	font-style: normal;
	font-size: 0.875rem;
}

ul, ol {
	margin: 0 0 1.5rem 1.25rem;
	padding-left: 0;
	line-height: 1.6;
}

@media (min-width: 768px) {
	ul, ol {
		padding-left: 1.25rem;
	}
}

li {
	margin-bottom: 0.5rem;
}

hr {
	border: 0;
	height: 1px;
	background-color: var(--wp--preset--color--border, #e8e8eb);
	margin: 2rem 0;
}

pre {
	background: var(--wp--preset--color--surface, #f7f7f8);
	font-family: monospace;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: 1.5rem;
	max-width: 100%;
	overflow: auto;
	padding: 1.5rem;
	border-radius: 3px;
}

code, kbd, tt, var {
	font-family: monospace;
	font-size: 0.9375rem;
}

table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
}

th, td {
	padding: 0.625rem;
	border: 1px solid var(--wp--preset--color--border, #e8e8eb);
	text-align: left;
}

th {
	font-weight: 700;
	background-color: var(--wp--preset--color--surface, #f7f7f8);
}

/* ==========================================================================
   2. Layout
   ========================================================================== */

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

.site-content {
	flex: 1;
	max-width: 1280px;
	width: 100%;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

@media (min-width: 960px) {
	.site-content {
		padding: 2.5rem 2.5rem;
		display: flex;
		gap: 2.5rem;
	}
}

@media (min-width: 1360px) {
	.site-content {
		padding-left: 0;
		padding-right: 0;
	}
}

.content-area {
	width: 100%;
	min-width: 0;
}

@media (min-width: 960px) {
	.content-area {
		flex: 1;
	}

	.no-sidebar .content-area {
		max-width: 100%;
	}
}

/* Full-width layout */
.full-width .site-content {
	display: block;
}

body.home .site-content {
	display: block;
}

.full-width .content-area {
	max-width: 100%;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */

.site-header {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 70px;
}

@media (min-width: 960px) {
	.header-inner {
		padding: 0 2.5rem;
		min-height: 90px;
	}
}

@media (min-width: 1360px) {
	.header-inner {
		padding: 0;
	}
}

/* --- Site branding --- */

.site-branding {
	text-align: center;
}

.site-branding img {
	width: auto;
	max-width: 160px;
	max-height: 60px;
}

@media (min-width: 768px) {
	.site-branding img {
		max-width: 240px;
		max-height: 80px;
	}
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1;
}

.site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--primary, #363940);
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--secondary, #818592);
}

/* --- Menu toggle (hamburger) --- */

.menu-toggle {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--primary, #363940);
	z-index: 10;
}

@media (min-width: 960px) {
	.menu-toggle {
		left: 2.5rem;
	}
}

@media (min-width: 1200px) {
	.menu-toggle {
		display: none;
	}
}

@media (min-width: 1360px) {
	.menu-toggle {
		left: 0;
	}
}

.hamburger-box {
	width: 28px;
	height: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hamburger-line {
	display: block;
	width: 100%;
	height: 3px;
	background-color: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	display: none;
}

@media (min-width: 768px) {
	.menu-toggle-label {
		display: inline;
	}
}

/* Active hamburger animation */
.site-header.nav-open .hamburger-line:nth-child(1) {
	transform: translateY(8.5px) rotate(45deg);
}
.site-header.nav-open .hamburger-line:nth-child(2) {
	opacity: 0;
}
.site-header.nav-open .hamburger-line:nth-child(3) {
	transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Search toggle --- */

.search-toggle-wrapper {
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	z-index: 10;
}

@media (min-width: 960px) {
	.search-toggle-wrapper {
		right: 2.5rem;
	}
}

@media (min-width: 1360px) {
	.search-toggle-wrapper {
		right: 0;
	}
}

.search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--primary, #363940);
	transition: opacity 0.2s ease;
}

.search-toggle:hover {
	opacity: 0.7;
}

.search-toggle .icon-close {
	display: none;
}

.search-toggle[aria-expanded="true"] .icon-search {
	display: none;
}

.search-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.search-overlay {
	position: absolute;
	right: 0;
	top: 100%;
	width: calc(100vw - 2.5rem);
	max-width: 320px;
	padding: 1rem;
	background: var(--wp--preset--color--background, #fff);
	border: 1px solid var(--wp--preset--color--border, #e8e8eb);
	border-radius: 3px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	transition: all 0.2s ease;
	z-index: 100;
}

.search-toggle[aria-expanded="true"] + .search-overlay {
	opacity: 1;
	visibility: visible;
	transform: translateY(0.5rem);
}

/* --- Main navigation --- */

.main-navigation {
	display: none;
	background-color: var(--wp--preset--color--background, #fff);
	border-top: 1px solid var(--wp--preset--color--border, #e8e8eb);
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.site-header.nav-open .main-navigation {
	display: block;
}

@media (min-width: 1200px) {
	.main-navigation {
		display: block;
	}
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1200px) {
	.nav-menu {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		padding: 0.75rem 0;
	}
}

.nav-menu li {
	position: relative;
	margin-bottom: 0;
}

.nav-menu > li {
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

@media (min-width: 1200px) {
	.nav-menu > li {
		border-bottom: 0;
	}
}

.nav-menu a {
	display: block;
	padding: 0.75rem 1.25rem;
	color: var(--wp--preset--color--primary, #363940);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: var(--wp--preset--color--secondary, #818592);
}

@media (min-width: 960px) {
	.nav-menu a {
		padding-left: 2.5rem;
	}
}

@media (min-width: 1200px) {
	.nav-menu a {
		padding: 0.5rem 1rem;
	}
}

/* Submenu toggle button */
.submenu-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--primary, #363940);
	transition: transform 0.2s ease;
	padding: 0;
}

@media (min-width: 1200px) {
	.submenu-toggle {
		display: none;
	}
}

.submenu-toggle[aria-expanded="true"] .icon-chevron {
	transform: rotate(180deg);
}

/* Sub-menus */
.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.25rem;
	display: none;
}

.sub-menu.is-open {
	display: block;
}

@media (min-width: 1200px) {
	.sub-menu {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 999;
		min-width: 200px;
		padding: 0.5rem 0;
		background: var(--wp--preset--color--background, #fff);
		border: 1px solid var(--wp--preset--color--border, #e8e8eb);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		border-radius: 3px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-0.25rem);
		transition: all 0.2s ease;
	}

	.nav-menu li:hover > .sub-menu,
	.nav-menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.sub-menu a {
		padding: 0.5rem 1.25rem;
		text-transform: none;
		font-size: 0.9375rem;
		white-space: nowrap;
	}

	.sub-menu li:hover,
	.sub-menu li:focus-within {
		background-color: var(--wp--preset--color--surface, #f7f7f8);
	}
}

/* ==========================================================================
   4. Content & Cards
   ========================================================================== */

.page-header {
	margin-bottom: 2rem;
	text-align: center;
}

.page-title {
	margin-bottom: 0.5rem;
}

/* --- Article cards (archive/blog listing) --- */

.posts-grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.article-card {
	margin-bottom: 0;
}

.article-card .post-thumbnail {
	margin-bottom: 1rem;
	overflow: hidden;
	border-radius: 3px;
}

.article-card .post-thumbnail img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.article-card .post-thumbnail:hover img {
	opacity: 0.85;
}

.article-card .entry-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.article-card .entry-title a {
	color: var(--wp--preset--color--primary, #363940);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.article-card .entry-title a:hover {
	opacity: 0.7;
}

.article-card .entry-meta {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-secondary, #565656);
	margin-bottom: 0.75rem;
	letter-spacing: 0.02em;
}

.article-card .entry-meta a {
	color: inherit;
	text-decoration: none;
}

.article-card .entry-meta a:hover {
	color: var(--wp--preset--color--accent, #0f5f9f);
}

.meta-sep {
	margin: 0 0.4rem;
	font-size: 0.5rem;
	vertical-align: middle;
}

.article-card .entry-excerpt p {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.entry-actions {
	text-align: center;
}

@media (min-width: 768px) {
	.entry-actions {
		text-align: left;
	}
}

/* --- Single post content --- */

.entry-title {
	text-align: center;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

.entry-meta {
	text-align: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary, #565656);
	margin-bottom: 1.5rem;
	letter-spacing: 0.02em;
}

.entry-content {
	margin-top: 1.5rem;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--border, #e8e8eb);
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary, #565656);
}

/* --- Post thumbnail (single) --- */

.single .post-thumbnail {
	margin-bottom: 2rem;
	text-align: center;
}

.single .post-thumbnail img {
	border-radius: 3px;
}

/* --- Author card --- */

.author-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin: 2rem 0;
	padding: 1.5rem 0;
	border-top: 2px solid var(--wp--preset--color--border, #e8e8eb);
	border-bottom: 2px solid var(--wp--preset--color--border, #e8e8eb);
	text-align: center;
}

@media (min-width: 768px) {
	.author-card {
		flex-direction: row;
		text-align: left;
	}
}

.author-avatar img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.author-name {
	margin-bottom: 0.25rem;
	font-size: 1.125rem;
}

.author-name a {
	color: var(--wp--preset--color--primary, #363940);
	text-decoration: none;
}

.author-bio {
	margin-bottom: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ==========================================================================
   5. Sidebar & Widgets
   ========================================================================== */

.widget-area {
	width: 100%;
	margin-top: 2rem;
}

@media (min-width: 960px) {
	.widget-area {
		width: 300px;
		flex-shrink: 0;
		margin-top: 0;
		padding-left: 2.5rem;
		border-left: 2px solid var(--wp--preset--color--border, #e8e8eb);
	}
}

.widget {
	margin-bottom: 2rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	text-align: center;
	margin-top: 0;
	margin-bottom: 1.25rem;
	padding: 0.4em 0;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--background, #fff);
	background-color: var(--wp--preset--color--primary, #363940);
}

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

.widget li {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.widget li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.widget p {
	line-height: 1.5;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer {
	border-top: 2px solid var(--wp--preset--color--border, #e8e8eb);
	padding: 2rem 0;
	text-align: center;
}

.footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

@media (min-width: 960px) {
	.footer-inner {
		padding: 0 2.5rem;
	}
}

@media (min-width: 1360px) {
	.footer-inner {
		padding: 0;
	}
}

/* Footer columns layout */
.footer-columns {
	display: grid;
	gap: 2rem;
	text-align: left;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.footer-columns {
		grid-template-columns: repeat(4, 1fr);
	}
}

.footer-column .widget-title {
	text-align: left;
	background: none;
	color: var(--wp--preset--color--primary, #363940);
	padding: 0;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
}

.footer-branding img {
	max-width: 160px;
}

.footer-divider {
	margin: 0 0 1.5rem;
	background-color: var(--wp--preset--color--border, #e8e8eb);
}

/* Footer navigation */
.footer-navigation {
	margin-bottom: 1rem;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
}

.footer-menu li {
	margin-bottom: 0;
}

.footer-menu a {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary, #565656);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-menu a:hover {
	color: var(--wp--preset--color--primary, #363940);
}

/* Site info / copyright */
.site-info {
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary, #565656);
}

/* ==========================================================================
   7. Forms & Buttons
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 3px;
	background-color: var(--wp--preset--color--primary, #363940);
	color: var(--wp--preset--color--background, #fff);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary, #818592);
	color: var(--wp--preset--color--background, #fff);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="submit"]:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #0f5f9f);
	outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border, #e8e8eb);
	border-radius: 3px;
	background: var(--wp--preset--color--background, #fff);
	color: var(--wp--preset--color--text-primary, #363940);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
	border-color: var(--wp--preset--color--accent, #0f5f9f);
	outline: none;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0;
}

.search-field {
	flex: 1;
	border-radius: 3px 0 0 3px;
	border-right: 0;
}

.search-submit {
	border-radius: 0 3px 3px 0;
	padding: 0.5rem 0.75rem;
	display: flex;
	align-items: center;
}

/* ==========================================================================
   8. Comments
   ========================================================================== */

.comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 2px solid var(--wp--preset--color--border, #e8e8eb);
}

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

.comment-list .children {
	list-style: none;
	margin-left: 1.5rem;
	padding: 0;
}

.comment-body {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.25rem;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 700;
}

.comment-metadata {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-secondary, #565656);
	margin-bottom: 0.5rem;
}

.comment-metadata a {
	color: inherit;
	text-decoration: none;
}

.comment-content p {
	margin-bottom: 0.75rem;
}

.comment-content a {
	word-wrap: break-word;
}

.reply {
	font-size: 0.8125rem;
}

/* Comment form */
.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
	font-size: 0.875rem;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email {
	margin-bottom: 1rem;
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* ==========================================================================
   9. Pagination
   ========================================================================== */

.pagination {
	text-align: center;
	padding: 2rem 0;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	margin: 0 0.125rem;
	border: 1px solid transparent;
	border-radius: 3px;
	text-decoration: none;
	color: var(--wp--preset--color--text-secondary, #565656);
	transition: all 0.2s ease;
	line-height: 1;
}

.pagination .page-numbers:hover {
	border-color: var(--wp--preset--color--primary, #363940);
	color: var(--wp--preset--color--primary, #363940);
}

.pagination .page-numbers.current {
	border-color: var(--wp--preset--color--secondary, #818592);
	font-weight: 700;
}

.pagination .page-numbers.dots {
	border: none;
}

/* ==========================================================================
   10. 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(--wp--preset--color--surface, #f7f7f8);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--accent, #0f5f9f);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	z-index: 999999;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.sticky {
	display: block;
}

embed,
iframe,
object {
	max-width: 100%;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.wp-caption-text,
.figcaption {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--secondary, #818592);
	margin-top: 0.5rem;
}

/* Gutenberg block alignment */
.entry-content .alignwide {
	margin-left: -1.25rem;
	margin-right: -1.25rem;
	max-width: calc(100% + 2.5rem);
}

@media (min-width: 960px) {
	.entry-content .alignwide {
		margin-left: -2.5rem;
		margin-right: -2.5rem;
		max-width: calc(100% + 5rem);
	}
}

.entry-content .alignfull {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	max-width: 100vw;
	width: 100vw;
}

/* ==========================================================================
   11. Front Page
   ========================================================================== */

/* --- Hero Section --- */

.hero-section {
	position: relative;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	margin-bottom: 2.5rem;
	border-radius: 3px;
	overflow: hidden;
}

.hero-section .hero-mobile {
	display: none;
}

@media (max-width: 767px) {
	.hero-section {
		background-image: none !important;
	}

	.hero-section .hero-mobile {
		display: block;
		position: absolute;
		inset: 0;
		background-repeat: no-repeat;
		background-size: cover;
		background-position: center;
	}
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem;
	max-width: 800px;
}

.hero-heading {
	color: #fff;
	font-size: 2rem;
	margin-bottom: 1.25rem;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
	.hero-heading {
		font-size: 2.5rem;
	}
}

.hero-text {
	color: #fff;
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-button {
	font-size: 1.125rem;
	padding: 0.75rem 2rem;
}

/* --- Featured Tiles --- */

.tiles-grid {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.tiles-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.tiles-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tile-card {
	position: relative;
	height: 260px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border-radius: 3px;
	overflow: hidden;
}

.tile-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background 0.2s ease;
}

.tile-card:hover::before {
	background: rgba(255, 255, 255, 0.15);
}

.tile-link {
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100%;
	text-decoration: none;
	position: relative;
}

.tile-title {
	width: 100%;
	margin: 0;
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	background-color: rgba(54, 57, 64, 0.85);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tile-card:hover .tile-title {
	background-color: rgba(255, 255, 255, 0.95);
	color: var(--wp--preset--color--primary, #363940);
}

/* --- Section Heading --- */

.section-heading {
	text-align: center;
	text-transform: uppercase;
	font-size: 1.125rem;
	letter-spacing: 0.05em;
	padding: 0.4em 0;
	margin-bottom: 2rem;
	color: var(--wp--preset--color--background, #fff);
	background-color: var(--wp--preset--color--primary, #363940);
	line-height: 1.2;
}

/* --- Front page content --- */

.front-page .content-area {
	max-width: 100%;
}

.front-page-content {
	max-width: 800px;
	margin: 2.5rem auto 0;
}

/* ==========================================================================
   12. Post Navigation
   ========================================================================== */

.post-navigation {
	margin: 2rem 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--wp--preset--color--border, #e8e8eb);
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.post-navigation .nav-links {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.post-navigation .nav-links {
		flex-direction: row;
		justify-content: space-between;
	}
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
	max-width: 100%;
}

@media (min-width: 768px) {
	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		max-width: 48%;
	}

	.post-navigation .nav-next {
		text-align: right;
	}
}

.post-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--primary, #363940);
	display: block;
	transition: opacity 0.2s ease;
}

.post-navigation a:hover {
	opacity: 0.7;
}

.nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-secondary, #565656);
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.nav-title {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ==========================================================================
   13. Error 404
   ========================================================================== */

.error-404 {
	text-align: center;
	padding: 3rem 0;
}

.error-404 .page-content {
	max-width: 560px;
	margin: 0 auto;
}

.error-404 .page-content p {
	font-size: 1.125rem;
	margin-bottom: 2rem;
}

.error-404 .search-form {
	max-width: 400px;
	margin: 0 auto 2rem;
}

.error-actions {
	margin-top: 1.5rem;
}

/* ==========================================================================
   14. Search Results
   ========================================================================== */

.search-results-list .search-result {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.search-results-list .search-result:first-child {
	padding-top: 0;
}

.search-results-list .search-result:last-child {
	border-bottom: 0;
}

.search-result .entry-header {
	margin-bottom: 0.5rem;
}

.search-result .entry-title {
	text-align: left;
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.search-result .entry-title a {
	color: var(--wp--preset--color--primary, #363940);
	text-decoration: none;
}

.search-result .entry-title a:hover {
	color: var(--wp--preset--color--accent, #0f5f9f);
}

.search-result .entry-meta {
	text-align: left;
	margin-bottom: 0.5rem;
}

.search-result .entry-summary p {
	font-size: 0.9375rem;
	margin-bottom: 0;
}

/* ==========================================================================
   15. Author Archive
   ========================================================================== */

.author-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.author-archive-avatar {
	border-radius: 50%;
	object-fit: cover;
}

.author-header .archive-description {
	max-width: 600px;
	text-align: center;
}

.author-header .archive-description p {
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* ==========================================================================
   16. Sitemap
   ========================================================================== */

.html-sitemap h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.html-sitemap ul {
	margin-bottom: 1.5rem;
}

.html-sitemap li {
	margin-bottom: 0.375rem;
}

.html-sitemap a {
	text-decoration: none;
}

.html-sitemap a:hover {
	text-decoration: underline;
}

.sitemap-pages .page_item_has_children > a {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-weight: 700;
}

/* ==========================================================================
   17. Bounce Protection
   ========================================================================== */

.bounce-protection {
	background-color: var(--wp--preset--color--surface, #f7f7f8);
	border: 1px solid var(--wp--preset--color--border, #e8e8eb);
	padding: 1.25rem;
	margin-bottom: 2rem;
	border-radius: 3px;
}

@media (min-width: 1200px) {
	.bounce-protection {
		padding: 1.25rem 2.5rem;
	}
}

.bounce-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

@media (min-width: 768px) {
	.bounce-inner {
		flex-direction: row;
		text-align: left;
	}
}

@media (min-width: 1200px) {
	.bounce-inner {
		align-items: center;
	}
}

.bounce-icon {
	flex-shrink: 0;
	line-height: 1;
	color: var(--wp--preset--color--primary, #363940);
}

.bounce-content {
	flex: 1;
}

.bounce-heading {
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	letter-spacing: 0.03em;
}

.bounce-content p {
	margin-bottom: 0;
}

.bounce-content p:last-child {
	margin-bottom: 0;
}

.bounce-inner > .button {
	white-space: nowrap;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.bounce-inner > .button {
		margin-left: auto;
	}
}

/* ==========================================================================
   18. Sidebar About & Legal Widgets
   ========================================================================== */

.about-wrapper {
	padding: 1rem 0 1.5rem;
	text-align: center;
}

.about-image {
	width: 200px;
	height: 200px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

@media (min-width: 960px) {
	.about-image {
		width: calc(100% - 2rem);
		height: auto;
		padding-bottom: calc(100% - 2rem);
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

.about-wrapper .button-wrapper {
	text-align: center;
	margin-top: 1rem;
}

.lyra-legal-widget,
.lyra-about-widget + .widget {
	border-top: 2px solid var(--wp--preset--color--border, #e8e8eb);
	padding-top: 1.25rem;
}

/* ==========================================================================
   19. Custom Post Types
   ========================================================================== */

/* --- Star Rating --- */

.star-rating {
	text-align: center;
	margin-bottom: 0.75rem;
	font-size: 1.5rem;
	line-height: 1;
}

.star-rating .star {
	display: inline-block;
	margin: 0 0.1em;
}

.star-rating .star-full {
	color: #f5a623;
}

.star-rating .star-half {
	color: #f5a623;
	opacity: 0.6;
}

.star-rating .star-empty {
	color: var(--wp--preset--color--border, #e8e8eb);
}

/* --- Book Review Meta --- */

.book-meta-container {
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.book-meta-container {
		float: right;
		width: 320px;
		padding-left: 1.25rem;
		margin-left: 1.25rem;
		margin-bottom: 1rem;
	}
}

.book-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.book-meta li {
	display: flex;
	padding: 0.625rem 1rem;
	border-top: 1px solid var(--wp--preset--color--secondary, #818592);
	font-weight: 700;
	margin-bottom: 0;
}

.book-meta li:nth-child(even) {
	background: var(--wp--preset--color--surface, #f7f7f8);
}

.book-meta li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--secondary, #818592);
}

.book-meta .meta-label {
	width: 40%;
	flex-shrink: 0;
}

.book-meta .meta-value {
	width: 60%;
}

/* --- Purchase Link --- */

.purchase-link {
	text-align: center;
	margin: 1.5rem 0;
}

/* --- Product Brand --- */

.product-brand {
	text-align: center;
	font-size: 1rem;
	color: var(--wp--preset--color--text-secondary, #565656);
	margin-bottom: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* --- Recipe Timing --- */

.recipe-timing {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
}

.recipe-timing .sep {
	display: none;
}

@media (min-width: 620px) {
	.recipe-timing .sep {
		display: inline;
	}
}

@media (max-width: 619px) {
	.recipe-timing .prep-time,
	.recipe-timing .cook-time {
		display: block;
		width: 100%;
		text-align: center;
	}
}

.recipe-summary {
	text-align: center;
	margin-bottom: 1.5rem;
}

.recipe-summary p {
	font-style: italic;
	color: var(--wp--preset--color--text-secondary, #565656);
}

/* --- Video Embed --- */

.video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	margin-bottom: 2rem;
	border-radius: 3px;
}

.video-embed iframe,
.video-embed object,
.video-embed embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   20. Share Buttons
   ========================================================================== */

.share-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.5rem 0;
	margin: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--border, #e8e8eb);
	border-bottom: 1px solid var(--wp--preset--color--border, #e8e8eb);
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--wp--preset--color--primary, #363940);
	background: var(--wp--preset--color--surface, #f7f7f8);
	border: 1px solid var(--wp--preset--color--border, #e8e8eb);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
	padding: 0;
	font-size: 0;
}

.share-btn:hover {
	background-color: var(--wp--preset--color--primary, #363940);
	color: var(--wp--preset--color--background, #fff);
	border-color: var(--wp--preset--color--primary, #363940);
}

/* ==========================================================================
   21. External Link Icons
   ========================================================================== */

.external-link-icon {
	display: inline-block;
	vertical-align: baseline;
	margin-left: 0.2em;
	position: relative;
	bottom: -0.1em;
	opacity: 0.6;
}

/* ==========================================================================
   22. Hamburger Always Mode
   ========================================================================== */

.hamburger-always .menu-toggle {
	display: flex;
}

.hamburger-always .main-navigation {
	display: none;
}

.hamburger-always.nav-open .main-navigation,
.hamburger-always .site-header.nav-open .main-navigation {
	display: block;
}

/* Ads disabled mode */
.ads-disabled .sidebar-ad,
.ads-disabled .footer-ad {
	display: none;
}

/* ==========================================================================
   23. Print
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.main-navigation,
	.widget-area,
	.pagination,
	.search-toggle-wrapper,
	.menu-toggle,
	.entry-actions,
	.comments-area,
	.author-card,
	.hero-section,
	.featured-tiles,
	.post-navigation,
	.error-actions,
	.bounce-protection,
	.share-buttons {
		display: none !important;
	}

	.site-content {
		display: block;
		padding: 0;
		max-width: 100%;
	}

	.content-area {
		width: 100%;
	}

	body {
		font-size: 12pt;
		color: #000;
	}

	a {
		color: #000;
		text-decoration: underline;
	}

	img {
		max-width: 100% !important;
	}
}
