/*
Theme Name:        Lumina Personal
Theme URI:         https://example.com/lumina-personal
Author:            Lumina Personal
Description:       A fast, lightweight and secure personal website theme modelled on the Neve approach: mobile-first, no jQuery, no web-font requests, under 25 KB of CSS/JS. Includes a homepage intro section, card or list blog layouts, a spam-protected contact form (shortcode [lumina_contact_form] or the "Contact" page template), dark-mode support, and Customizer controls for colours, fonts, layout, header, footer, social links and security hardening.
Version: 1.1.0
Requires at least: 6.3
Tested up to:      6.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:       lumina-personal
Tags:              blog, portfolio, one-column, two-columns, left-sidebar, right-sidebar, custom-logo, custom-menu, custom-colors, featured-images, footer-widgets, theme-options, threaded-comments, translation-ready, accessibility-ready, wide-blocks
*/

/* ==========================================================================
   1. Tokens (overridden by Customizer output)
   ========================================================================== */
:root {
	--lp-primary: #2f5bea;
	--lp-text: #1f2430;
	--lp-heading: #0f1320;
	--lp-bg: #ffffff;
	--lp-surface: #f4f6fa;
	--lp-header-bg: #ffffff;
	--lp-footer-bg: #0f1320;
	--lp-footer-tx: #c9cfdc;
	--lp-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lp-font-head: var(--lp-font-body);
	--lp-fs: 17px;
	--lp-hw: 700;
	--lp-container: 1140px;
	--lp-radius: 10px;
	--lp-content: 760px;
	--lp-wide: 1140px;

	--lp-muted: #5b6375;
	--lp-border: #e3e7ef;
	--lp-on-primary: #ffffff;
	--lp-gutter: clamp(16px, 4vw, 32px);
	--lp-space: clamp(40px, 7vw, 88px);
	--lp-shadow: 0 1px 2px rgba(15, 19, 32, .06), 0 8px 24px rgba(15, 19, 32, .06);
	--lp-header-h: 68px;
	--lp-menu-weight: 500;
	--lp-menu-size: 16px;
	--lp-menu-case: none;
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--lp-muted: color-mix(in srgb, var(--lp-text) 72%, var(--lp-bg));
		--lp-border: color-mix(in srgb, var(--lp-text) 12%, var(--lp-bg));
	}
}

/* Automatic dark mode (Customizer → Colours → Dark mode) */
@media (prefers-color-scheme: dark) {
	body.dark-auto {
		--lp-text: #d7dbe5;
		--lp-heading: #f4f6fb;
		--lp-bg: #0e1118;
		--lp-surface: #171b25;
		--lp-header-bg: #0e1118;
		--lp-footer-bg: #080a0f;
		--lp-muted: #9aa2b4;
		--lp-border: #262c3a;
		--lp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--lp-header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-font-body);
	font-size: var(--lp-fs);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lp-font-head);
	font-weight: var(--lp-hw);
	color: var(--lp-heading);
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 1.6em 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 1.4em; }

a {
	color: var(--lp-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--lp-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

blockquote {
	border-left: 4px solid var(--lp-primary);
	padding: .25em 0 .25em 1.25em;
	font-size: 1.15em;
	color: var(--lp-heading);
}
code, kbd, pre { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: var(--lp-surface); padding: .15em .4em; border-radius: 4px; }
pre { background: var(--lp-surface); padding: 1.25em; border-radius: var(--lp-radius); overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--lp-border); margin: 2.5em 0; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { padding: .6em .8em; border-bottom: 1px solid var(--lp-border); text-align: left; }

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 12px 18px;
	background: var(--lp-heading);
	color: var(--lp-bg);
	border-radius: 6px;
	text-decoration: none;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--lp-container) + 2 * var(--lp-gutter));
	margin-inline: auto;
	padding-inline: var(--lp-gutter);
}
.container--narrow { max-width: calc(var(--lp-content) + 2 * var(--lp-gutter)); }

/* Page area can grow past the site width when a page/homepage asks for it (header stays put). */
.site-content > .container:not(.container--narrow),
.site-content > section > .container:not(.container--narrow) {
	max-width: calc(var(--lp-page, var(--lp-container)) + 2 * var(--lp-gutter));
}
/* Contact form keeps a comfortable reading width whatever the page width. */
.contact-section .container--narrow { max-width: calc(var(--lp-column, 760px) + 2 * var(--lp-gutter)); }

/* Page width "Full width (edge to edge)": drop the cap, keep side padding. */
.page-width-full .site-content > .container,
.page-width-full .site-content > section > .container:not(.container--narrow) { max-width: none; }
.page-width-full .entry-content > .alignfull { width: 100vw; }

.site-content { min-height: 50vh; }
/* Lets full-width blocks reach the screen edge without a horizontal scrollbar (clip keeps the sticky header working). */
.site { overflow-x: clip; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-content { flex: 1 0 auto; }
.admin-bar .site { min-height: calc(100vh - 32px); }

/* Homepage: space between the last section and the footer (Customize → Homepage → "Space above footer"). */
.home .site-content > :last-child { padding-bottom: var(--lp-home-footer-gap, 0px); }
.home .site-content > :last-child .site-main > :last-child,
.home .site-content > :last-child .entry:last-child,
.home .site-content > :last-child .entry-content > :last-child,
.home .site-content > :last-child .entry-content > :last-child :last-child,
.home .site-content > :last-child .entry-content > :has(+ .wp-block-spacer:last-child, + p:empty:last-child),
.home .site-content > :last-child .lp-contact,
.home .site-content > :last-child .lp-form > :last-child { margin-bottom: 0 !important; }
/* Leftovers at the end of the page content that only add empty space. */
.home .site-content > :last-child .entry-content > .wp-block-spacer:last-child,
.home .site-content > :last-child .entry-content > p:empty:last-child { display: none; }
/* Every page: space between the header (or the homepage intro) and the content
   (Customize → Lumina Theme Options → Pages → "Space below header"). */
.site-content > .layout:first-child,
.home .site-content > .layout,
.site-content > .container--narrow:first-child > .site-main { padding-top: var(--lp-header-gap, 0px); }
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > :first-child,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > :first-child > :first-child,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > .entry:first-child > .screen-reader-text:first-child + *,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > .entry:first-child > :is(.entry-header, .entry-content):first-child > :not(.screen-reader-text):first-child,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > .entry:first-child > .screen-reader-text:first-child + .entry-content > :first-child,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) > .site-main > .entry:first-child > :is(:first-child, .screen-reader-text:first-child + *) > :first-child > :first-child,
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) .entry:first-child > .entry-content > :is(.wp-block-spacer, p:empty):first-child + *,
:where(.site-content > .layout:first-child, .home .site-content > .layout) > .widget-area > :first-child { margin-top: 0 !important; }
/* Leftovers at the start of the page content that only add empty space. */
:where(.site-content > .layout:first-child, .home .site-content > .layout, .site-content > .container--narrow:first-child) .site-main > .entry:first-child > .entry-content > :is(.wp-block-spacer, p:empty):first-child { display: none; }
/* Short homepage: don't stretch the content area (that left white space above the footer);
   the footer fills the rest of the screen instead. */
.home .site-content { flex-grow: 0; min-height: 0; }
.home .site-footer { flex-grow: 1; }

.layout {
	display: grid;
	gap: var(--lp-space);
	padding-block: var(--lp-space);
}
.site-main { min-width: 0; }
.container--narrow > .site-main { padding-block: var(--lp-space); }

@media (min-width: 960px) {
	.sidebar-right .layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.sidebar-left  .layout { grid-template-columns: 300px minmax(0, 1fr); }
	.sidebar-left  .layout > .widget-area { order: -1; }
}
.sidebar-none .entry > .entry-header,
.sidebar-none .entry > .entry-thumb,
.sidebar-none .entry > .entry-footer,
.sidebar-none .layout > .site-main > .comments-area,
.sidebar-none .layout > .site-main > .post-navigation { max-width: var(--lp-content); margin-inline: auto; }

/* ==========================================================================
   5. Header & navigation (mobile first)
   ========================================================================== */
.site-header {
	background: var(--lp-header-bg);
	border-bottom: 1px solid var(--lp-border);
	position: relative;
	z-index: 100;
	transition: box-shadow .2s ease;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar.has-sticky-header .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar.has-sticky-header .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: var(--lp-shadow); border-bottom-color: transparent; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--lp-header-h);
	flex-wrap: wrap;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 10px; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { margin: 0; font-size: 1.2rem; font-weight: var(--lp-title-weight, var(--lp-hw)); line-height: 1.2; font-family: var(--lp-font-head); }
.site-title a { color: var(--lp-heading); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: .85rem; font-weight: var(--lp-tagline-weight, 400); color: var(--lp-muted); line-height: 1.3; }

/* Hamburger */
.menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: transparent;
	color: var(--lp-heading);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle__bars { position: relative; width: 20px; height: 14px; }
.menu-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
	background: currentColor; transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile nav panel */
.main-navigation { width: 100%; }
.js .main-navigation { display: none; }
.js .main-navigation.is-open {
	display: block;
	max-height: calc(100vh - var(--lp-header-h));
	max-height: calc(100dvh - var(--lp-header-h));
	overflow-y: auto;
	padding-bottom: 20px;
	border-top: 1px solid var(--lp-border);
}
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation .menu > li { border-bottom: 1px solid var(--lp-border); }
.main-navigation a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 52px 10px 4px;
	color: var(--lp-heading);
	text-decoration: none;
	font-weight: var(--lp-menu-weight, 500);
	font-size: var(--lp-menu-size, 1rem);
	text-transform: var(--lp-menu-case, none);
	letter-spacing: var(--lp-menu-spacing, normal);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--lp-primary); }
.main-navigation .sub-menu { display: none; padding-left: 16px; }
.main-navigation .submenu-open > .sub-menu { display: block; }
.js .main-navigation .sub-menu { display: none; }
.js .main-navigation .submenu-open > .sub-menu { display: block; }

.submenu-toggle {
	position: absolute; top: 0; right: 0;
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; color: inherit; cursor: pointer; border-radius: 6px;
}
.submenu-toggle svg { transition: transform .2s ease; }
.submenu-open > .submenu-toggle svg { transform: rotate(180deg); }

.mobile-search { margin-top: 16px; }
.main-navigation .social-links { margin-top: 16px; }

/* Desktop nav */
@media (min-width: 960px) {
	.js .menu-toggle { display: none; }
	.main-navigation,
	.js .main-navigation { display: flex; align-items: center; gap: 20px; width: auto; }
	.main-navigation .menu { display: flex; align-items: center; gap: 4px; }
	.main-navigation .menu > li { border: 0; }
	.main-navigation a { padding: 8px 12px; min-height: 44px; border-radius: 8px; }
	.main-navigation .menu-item-has-children > a { padding-right: 34px; }
	.submenu-toggle { width: 30px; height: 44px; right: 2px; }
	.mobile-search { display: none; }
	.main-navigation .social-links { margin-top: 0; }

	.main-navigation .sub-menu,
	.js .main-navigation .sub-menu {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		padding: 8px;
		background: var(--lp-header-bg);
		border: 1px solid var(--lp-border);
		border-radius: var(--lp-radius);
		box-shadow: var(--lp-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .15s ease, transform .15s ease, visibility .15s;
		z-index: 10;
	}
	.main-navigation .sub-menu .sub-menu { top: -9px; left: 100%; }
	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu,
	.main-navigation .submenu-open > .sub-menu,
	.js .main-navigation .submenu-open > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
	}
	.main-navigation .sub-menu a { padding: 8px 12px; min-height: 40px; }

	/* Centred header option */
	.header-centered .site-header__inner { flex-direction: column; justify-content: center; padding-block: 12px; gap: 6px; }
	.header-centered .site-branding { flex-direction: column; text-align: center; }
	.header-centered .main-navigation { justify-content: center; }
}

/* ==========================================================================
   6. Buttons & forms
   ========================================================================== */
.button,
.lp-button,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--lp-primary);
	border-radius: var(--lp-radius);
	background: var(--lp-primary);
	color: var(--lp-on-primary);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}
.button:hover, .lp-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: var(--lp-on-primary);
}
.lp-button--ghost { background: transparent; color: var(--lp-primary); }
.lp-button--ghost:hover { background: var(--lp-primary); color: var(--lp-on-primary); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	color: var(--lp-text);
	font: inherit;
	font-size: max(16px, 1rem); /* 16px+ stops iOS zooming on focus */
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--lp-primary);
	background: var(--lp-bg);
	box-shadow: 0 0 0 3px rgba(47, 91, 234, .18);
}
label { display: inline-block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--lp-heading); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { min-width: 48px; padding: 0 14px; }

/* ==========================================================================
   7. Hero (homepage intro)
   ========================================================================== */
.hero {
	padding-block: var(--lp-space);
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(47, 91, 234, .10), transparent 70%),
		var(--lp-surface);
	border-bottom: 1px solid var(--lp-border);
}
@supports (color: color-mix(in srgb, red, blue)) {
	.hero {
		background:
			radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--lp-primary) 14%, transparent), transparent 70%),
			var(--lp-surface);
	}
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__eyebrow {
	margin: 0 0 8px;
	color: var(--lp-primary);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.hero__title { margin: 0 0 16px; font-size: clamp(2.3rem, 1.5rem + 4vw, 4rem); letter-spacing: -0.03em; }
.hero__lead { margin: 0 0 28px; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--lp-muted); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .button { flex: 1 1 auto; }
.hero__media { justify-self: center; }
.hero__img {
	width: min(260px, 64vw);
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 8px var(--lp-bg), var(--lp-shadow);
}
@media (min-width: 480px) { .hero__actions .button { flex: 0 0 auto; } }
@media (min-width: 860px) {
	.hero--has-image .hero__inner { grid-template-columns: 1.4fr 1fr; }
	.hero__img { width: min(380px, 100%); }
}

.section-title { margin-top: 0; }
.section-intro { color: var(--lp-muted); margin-top: -.25em; }

/* ==========================================================================
   8. Posts: cards & list
   ========================================================================== */
.posts { display: grid; gap: 28px; }
.posts--grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sidebar-none .posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	display: flex;
	flex-direction: column;
	background: var(--lp-bg);
	border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__title { margin: 4px 0 8px; font-size: 1.25rem; }
.card__title a { color: var(--lp-heading); text-decoration: none; }
.card__title a:hover { color: var(--lp-primary); }
.card__excerpt { color: var(--lp-muted); font-size: .97em; }
.card__excerpt p { margin: 0 0 1em; }
.card__more { margin-top: auto; font-weight: 600; text-decoration: none; align-self: flex-start; }

.posts--list { gap: 0; }
.posts--list .card {
	border: 0;
	border-bottom: 1px solid var(--lp-border);
	border-radius: 0;
	background: transparent;
	padding-block: 24px;
}
.posts--list .card:hover { transform: none; box-shadow: none; }
.posts--list .card__body { padding: 0; }
@media (min-width: 640px) {
	.posts--list .card { flex-direction: row; gap: 24px; align-items: flex-start; }
	.posts--list .card__media { flex: 0 0 220px; border-radius: var(--lp-radius); overflow: hidden; }
}

.entry-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--lp-muted); font-size: .88rem; }
.entry-meta .sep { opacity: .6; }

/* ==========================================================================
   9. Single post & page
   ========================================================================== */
.page-header { margin-bottom: 32px; }
.page-title { margin-top: 0; }
.entry-header { margin-bottom: 28px; }
.entry-header .entry-title { margin: 8px 0 12px; }
.entry-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.entry-cats a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--lp-surface);
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
}
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { width: 100%; border-radius: var(--lp-radius); }
.entry-content > *:first-child { margin-top: 0; }
/* Boxed groups (background, border or a ready-made style) get some space around them.
   A group's own Margin setting in the editor overrides this. */
.entry-content :where(.wp-block-group.has-background, .wp-block-group.has-border-color, .wp-block-group[style*="border"], .wp-block-group[class*="is-style-lumina-"]) { margin-block: 1.5em; }
/*
 * Block alignments.
 * No sidebar: normal blocks sit in the reading column (--lp-content), "Wide" breaks out to
 * --lp-wide, "Full width" spans the whole screen. Both sizes are set in Customizer → Layout.
 * With a sidebar: there is no room to break out, so Wide and Full fill the content column
 * instead of running under the sidebar.
 */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

.sidebar-none .entry-content > :where(:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)) {
	max-width: var(--lp-content);
	margin-left: auto;
	margin-right: auto;
}
.sidebar-none .entry-content > .alignwide {
	--lp-wide-now: min(var(--lp-wide), 100vw - 2 * var(--lp-gutter));
	width: var(--lp-wide-now);
	max-width: none;
	margin-left: calc(50% - var(--lp-wide-now) / 2);
	margin-right: calc(50% - var(--lp-wide-now) / 2);
}
.sidebar-none .entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.sidebar-none .entry-content > .alignleft { margin-left: max(0px, (100% - var(--lp-content)) / 2); }
.sidebar-none .entry-content > .alignright { margin-right: max(0px, (100% - var(--lp-content)) / 2); }

.sidebar-left .entry-content .alignwide, .sidebar-right .entry-content .alignwide,
.sidebar-left .entry-content .alignfull, .sidebar-right .entry-content .alignfull {
	width: auto;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.aligncenter { margin-inline: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: 0; } }
.wp-caption-text, figcaption { color: var(--lp-muted); font-size: .88rem; margin-top: 8px; text-align: center; }

.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 4px 12px; border: 1px solid var(--lp-border); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--lp-muted); }

.post-navigation .nav-links { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a {
	display: block; padding: 18px 20px; border: 1px solid var(--lp-border);
	border-radius: var(--lp-radius); text-decoration: none; height: 100%;
}
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lp-muted); }
.nav-title { display: block; color: var(--lp-heading); font-weight: 600; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
	text-decoration: none; color: var(--lp-heading);
}
.page-numbers.current { background: var(--lp-primary); border-color: var(--lp-primary); color: var(--lp-on-primary); }
.page-numbers.dots { border: 0; }

/* ==========================================================================
   10. Comments
   ========================================================================== */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--lp-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 40px); }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--lp-border); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .85rem; }
.comment-metadata a { color: var(--lp-muted); text-decoration: none; }
.comment-form p { margin-bottom: 18px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   11. Contact form
   ========================================================================== */
.contact-section {
	padding-block: var(--lp-space);
	background: var(--lp-surface);
	border-top: 1px solid var(--lp-border);
}
.contact-section .lp-form input, .contact-section .lp-form textarea { background: var(--lp-bg); }
.lp-contact { margin-top: 24px; }
.lp-form__row--split { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .lp-form__row--split { grid-template-columns: 1fr 1fr; } }
.lp-field { margin: 0 0 20px; }
.lp-field label { display: block; }
.req { color: #c62828; }
.lp-field.has-error input,
.lp-field.has-error textarea { border-color: #c62828; }
.lp-field__error { display: block; margin-top: 6px; color: #c62828; font-size: .9rem; font-weight: 500; }

.lp-field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.lp-field--check label { font-weight: 400; font-size: .92rem; color: var(--lp-text); margin: 0; }
.lp-field--check .lp-field__error { grid-column: 1 / -1; }
.lp-field--check input[type="checkbox"] {
	width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lp-primary); cursor: pointer;
}
.lp-form__submit { margin: 8px 0 0; }
@media (max-width: 479px) { .lp-form__submit .button { width: 100%; } }

/* Honeypot – kept off-screen, not display:none (some bots check for that). */
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.lp-notice {
	padding: 14px 18px;
	margin-bottom: 24px;
	border-radius: var(--lp-radius);
	border-left: 4px solid;
	font-weight: 500;
}
.lp-notice:focus { outline: none; }
.lp-notice--success { background: #e8f5ec; border-color: #2e7d32; color: #1b4d20; }
.lp-notice--error { background: #fdecec; border-color: #c62828; color: #7f1d1d; }

/* ==========================================================================
   12. Widgets & sidebar
   ========================================================================== */
.widget-area .widget {
	padding: 22px;
	margin-bottom: 24px;
	background: var(--lp-surface);
	border-radius: var(--lp-radius);
}
.widget-title,
.widget h2,
.widget .wp-block-heading { margin: 0 0 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.widget > *:first-child, .widget .wp-block-group__inner-container > *:first-child { margin-top: 0; }
.widget > *:last-child { margin-bottom: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.widget li + li { border-top: 1px solid var(--lp-border); }
.widget a { text-decoration: none; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: var(--lp-footer-bg); color: var(--lp-footer-tx); font-size: .95rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer .widget-title { color: #fff; }
.footer-widgets { display: grid; gap: 32px; padding-block: 56px 24px; }
@media (min-width: 760px) { .footer-widgets { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.footer-widgets .widget li + li { border-color: rgba(255, 255, 255, .08); }

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-block: 28px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-widgets + .site-footer__bottom { margin-top: 0; }
@media (min-width: 760px) {
	.site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-menu a { text-decoration: none; display: inline-block; padding: 8px 0; }

/* Social icons */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	text-decoration: none;
	background: rgba(127, 127, 127, .12);
}
.social-links--header a { color: var(--lp-heading); }
.social-links a:hover { background: var(--lp-primary); color: var(--lp-on-primary); transform: translateY(-2px); }
.lp-icon { width: 18px; height: 18px; }

/* Back to top */
.back-to-top {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--lp-primary);
	color: var(--lp-on-primary);
	box-shadow: var(--lp-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--lp-on-primary); filter: brightness(1.08); }

/* ==========================================================================
   14. 404 & misc
   ========================================================================== */
.error-404 { text-align: center; }
.error-404__code {
	font-size: clamp(5rem, 20vw, 9rem);
	font-weight: 800;
	line-height: 1;
	margin: 0 0 8px;
	color: var(--lp-primary);
	opacity: .2;
}
.error-404 .search-form { max-width: 420px; margin: 24px auto; }
.no-results { padding: 32px; background: var(--lp-surface); border-radius: var(--lp-radius); }
.sticky .card__title::before { content: "★ "; color: var(--lp-primary); }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

/* Print */
@media print {
	.site-header, .site-footer, .widget-area, .back-to-top, .post-navigation, .comments-area, .contact-section { display: none !important; }
	body { color: #000; background: #fff; }
	a { color: #000; }
}
