/* ==========================================================================
   WPPoet theme styles
   Colors, fonts and spacing come from theme.json presets, so anything you
   change in Appearance → Editor → Styles flows through here automatically.
   ========================================================================== */

:root {
	--wppoet-radius-sm: var(--wp--custom--radius--sm, 8px);
	--wppoet-radius-md: var(--wp--custom--radius--md, 14px);
	--wppoet-radius-lg: var(--wp--custom--radius--lg, 20px);
	--wppoet-ease: cubic-bezier(.2, .7, .2, 1);
	--wppoet-header-offset: 96px;
}

html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Soft lavender glow at the top of every page (uses the Lavender palette color). */
.wp-site-blocks {
	background:
		linear-gradient(180deg, var(--wp--preset--color--lavender) 0, var(--wp--preset--color--base) 560px) no-repeat,
		var(--wp--preset--color--base);
}
.wp-site-blocks > * { margin-block-start: 0; }

:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.wppoet-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wppoet-site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.wppoet-header {
	box-shadow: 0 1px 2px rgba(14, 14, 18, .03);
	transition: box-shadow .25s var(--wppoet-ease), background-color .25s;
	backdrop-filter: saturate(160%) blur(10px);
}
.wppoet-header-wrap.is-scrolled .wppoet-header {
	box-shadow: var(--wp--preset--shadow--lifted);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent) !important;
}

.wppoet-brand .wp-block-site-title { margin: 0; white-space: nowrap; }
.wppoet-brand .wp-block-site-logo img,
.wppoet-default-logo img { display: block; width: 28px; height: auto; }

.wppoet-main-nav { flex: 1 1 auto; }
.wppoet-main-nav .wp-block-navigation__container { width: 100%; }
@media (min-width: 600px) {
	.wppoet-main-nav .wp-block-navigation__container { justify-content: center; }
	.wppoet-main-nav .wppoet-nav-push { margin-left: auto !important; }
}
.wppoet-main-nav .wppoet-nav-strong > .wp-block-navigation-item__content { color: var(--wp--preset--color--contrast); font-weight: 500; }
.wppoet-main-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--wppoet-radius-md);
	padding: .4rem !important;
	box-shadow: var(--wp--preset--shadow--lifted);
	min-width: 220px !important;
}
.wppoet-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: var(--wppoet-radius-sm);
	padding: .5rem .75rem !important;
}
.wppoet-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--lavender); }
.wppoet-main-nav .wp-block-navigation-item__description { display: block; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }

.wppoet-login .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 12px; height: 12px;
	margin-left: .4rem;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 599px) {
	.wppoet-header { padding-left: .9rem !important; }
	.wppoet-main-nav { flex: 0 0 auto; order: 3; }
	.wppoet-header-cta { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--wppoet-ease); }
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary);
}

/* --------------------------------------------------------------------------
   Page / blog hero + search
   -------------------------------------------------------------------------- */
.wppoet-page-hero .wp-block-heading,
.wppoet-page-hero .wp-block-query-title { margin-block: 0; }
.wppoet-page-hero > * + * { margin-block-start: var(--wp--preset--spacing--40); }

.wppoet-search { max-width: 100%; }
.wppoet-search .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px !important;
	padding: 5px 5px 5px 2.4rem !important;
	box-shadow: var(--wp--preset--shadow--soft);
	position: relative;
}
.wppoet-search .wp-block-search__inside-wrapper::before {
	content: "";
	position: absolute;
	left: 1rem; top: 50%;
	width: 16px; height: 16px;
	transform: translateY(-50%);
	background: var(--wp--preset--color--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wppoet-search .wp-block-search__input {
	border: 0 !important;
	background: transparent;
	padding: .55rem .5rem !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
}
.wppoet-search .wp-block-search__input:focus { outline: none; }
.wppoet-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--primary) !important; }
.wppoet-search .wp-block-search__button {
	margin-left: 0 !important;
	padding: .5rem 1.1rem !important;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Post feed (archive grid with in-feed CTA)
   The CTA is placed after the 4th card (2 rows) using CSS grid, so the
   query stays a single paginated loop.
   -------------------------------------------------------------------------- */
.wppoet-feed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}
.wppoet-feed--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wppoet-feed > * { margin: 0 !important; }
.wppoet-feed > .wp-block-post-template { display: contents; }
.wppoet-feed > .wp-block-post-template > li { display: flex; margin: 0; }
.wppoet-feed > .wp-block-post-template > li > .wppoet-card { flex: 1; }
.wppoet-feed__cta { grid-column: 1 / -1; grid-row: 3; margin-block: .75rem !important; }
.wppoet-feed > .wppoet-pagination,
.wppoet-feed > .wp-block-query-no-results { grid-column: 1 / -1; }

@media (max-width: 900px) {
	.wppoet-feed--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.wppoet-feed,
	.wppoet-feed--cols-3 { grid-template-columns: minmax(0, 1fr); }
	.wppoet-feed__cta { grid-row: 5; }
}

/* Inside the editor the post-template keeps its own grid. */
.editor-styles-wrapper .wppoet-feed { display: block; }
.editor-styles-wrapper .wppoet-feed > .wp-block-post-template { display: grid; }

/* Card */
.wppoet-card {
	box-sizing: border-box;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s var(--wppoet-ease), transform .25s var(--wppoet-ease), border-color .25s;
}
.wppoet-card:hover {
	box-shadow: var(--wp--preset--shadow--lifted);
	transform: translateY(-2px);
	border-color: var(--wp--preset--color--lavender-strong) !important;
}
.wppoet-card-body { flex: 1; }
.wppoet-card-footer { margin-top: auto !important; align-self: stretch; width: 100%; }
.wppoet-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.wppoet-card .wp-block-post-featured-image img { transition: transform .5s var(--wppoet-ease); }
.wppoet-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.wppoet-card .wp-block-post-title { margin: 0; }
.wppoet-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Featured-image placeholder (no image set) */
.wppoet-placeholder {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-radius: 12px;
	margin: 0;
}
.wppoet-placeholder > a { display: contents; color: inherit; }
.wppoet-placeholder__mark {
	position: absolute;
	right: 8%; top: 50%;
	width: 26%;
	aspect-ratio: 1;
	transform: translateY(-50%) rotate(-8deg);
	border-radius: 28%;
	background: url("../images/logo-mark.svg") center / 70% no-repeat, rgba(255, 255, 255, .55);
	box-shadow: 0 12px 30px rgba(60, 20, 110, .15);
}
.wppoet-placeholder__title {
	position: relative;
	padding: 1rem 1.25rem;
	max-width: 58%;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
}
.wppoet-hero-media.wppoet-placeholder .wppoet-placeholder__title { font-size: var(--wp--preset--font-size--x-large); padding: 1.75rem; }

/* Meta: category pill, reading time, comments */
.wppoet-meta { align-items: center; }
.wppoet-meta > * { margin: 0; }
.wppoet-pill { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.wppoet-pill a,
.wppoet-pill-static {
	display: inline-block;
	padding: .15rem .55rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	line-height: 1.5;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}
.wppoet-pill-static { width: fit-content; margin: 0; }
.wppoet-pill a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.wppoet-pill .wp-block-post-terms__separator { display: none; }

.wppoet-icon-time,
.wppoet-icon-comment {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	margin: 0;
	white-space: nowrap;
}
.wppoet-icon-time::before,
.wppoet-icon-comment::before {
	content: "";
	width: 1em; height: 1em;
	background: currentColor;
	flex: none;
}
.wppoet-icon-time::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wppoet-icon-comment::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 1 3.3 6.5L3 20l1.4-4A8 8 0 0 1 4 12z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 1 3.3 6.5L3 20l1.4-4A8 8 0 0 1 4 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wppoet-card-footer .wp-block-avatar img,
.wppoet-single-hero .wp-block-avatar img { display: block; object-fit: cover; }

/* Pagination */
.wppoet-pagination { margin-top: var(--wp--preset--spacing--40) !important; gap: .35rem; }
.wppoet-pagination .page-numbers,
.wppoet-pagination .wp-block-query-pagination-previous,
.wppoet-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 .75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	text-decoration: none;
}
.wppoet-pagination .page-numbers.current { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--contrast); }
.wppoet-pagination a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); text-decoration: none; }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.wppoet-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.wppoet-cta::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -6%;
	top: -40%;
	width: 42%;
	height: 180%;
	border-radius: 0 0 220px 0;
	background: linear-gradient(160deg, color-mix(in srgb, var(--wp--preset--color--primary) 70%, transparent), color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent) 70%);
	transform: rotate(-28deg);
	opacity: .55;
}
.wppoet-cta::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(600px 300px at 90% 120%, rgba(34, 197, 154, .18), transparent 70%);
}
.wppoet-cta .wp-block-heading { margin-block: 0; }

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.wppoet-single-hero .wp-block-post-title { margin-block: .25rem 0; }
.wppoet-single-hero .wp-block-post-excerpt { margin-block-start: .5rem; }
.wppoet-single-hero .wp-block-post-excerpt__excerpt { margin: 0; }
.wppoet-single-hero .wp-block-post-featured-image { margin: 0; overflow: hidden; box-shadow: var(--wp--preset--shadow--lifted); }

.wppoet-dashed {
	border: 0 !important;
	border-top: 1px dashed var(--wp--preset--color--border) !important;
	background: none !important;
	height: 0 !important;
	opacity: 1;
	margin: 0 !important;
}

.wppoet-article__cols { align-items: flex-start !important; }
.wppoet-share-col,
.wppoet-toc-col { position: sticky; top: calc(var(--wppoet-header-offset) + 1rem); align-self: flex-start; }
.admin-bar .wppoet-share-col,
.admin-bar .wppoet-toc-col { top: calc(var(--wppoet-header-offset) + 1rem + var(--wp-admin--admin-bar--height, 32px)); }
.wppoet-content-col { min-width: 0; }

/* Share buttons */
.wppoet-share-bar { gap: .75rem; }
.wppoet-share .wp-block-button__link {
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	display: grid;
	place-items: center;
	position: relative;
	box-shadow: var(--wp--preset--shadow--soft);
}
.wppoet-share .wp-block-button__link::before {
	content: "";
	width: 16px; height: 16px;
	background: currentColor;
	-webkit-mask: var(--wppoet-icon) center / contain no-repeat;
	        mask: var(--wppoet-icon) center / contain no-repeat;
}
.wppoet-share .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary) !important; color: var(--wp--preset--color--primary) !important; transform: translateY(-1px); }
.wppoet-share--facebook .wp-block-button__link { color: #1877F2 !important; --wppoet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-1.6 19.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.2c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7A10 10 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.wppoet-share--x .wp-block-button__link { --wppoet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.8 3h3.1l-6.8 7.7L22 21h-6.2l-4.9-6.4L5.3 21H2.2l7.2-8.3L1.8 3h6.4l4.4 5.8L17.8 3zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5z'/%3E%3C/svg%3E"); }
.wppoet-share--linkedin .wp-block-button__link { color: #0A66C2 !important; --wppoet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.4 2H3.6C2.7 2 2 2.7 2 3.6v16.8c0 .9.7 1.6 1.6 1.6h16.8c.9 0 1.6-.7 1.6-1.6V3.6c0-.9-.7-1.6-1.6-1.6zM8 19H5V9h3v10zM6.5 7.7a1.7 1.7 0 1 1 0-3.5 1.7 1.7 0 0 1 0 3.5zM19 19h-3v-4.9c0-1.2 0-2.7-1.6-2.7S12.5 12.6 12.5 14v5h-3V9h2.9v1.4c.4-.8 1.4-1.6 2.9-1.6 3.1 0 3.7 2 3.7 4.7V19z'/%3E%3C/svg%3E"); }
.wppoet-share--email .wp-block-button__link { --wppoet-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* Article typography */
.wppoet-entry { font-size: var(--wp--preset--font-size--small); line-height: 1.75; }
.wppoet-entry > * + * { margin-block-start: 1rem; }
.wppoet-entry > :first-child { margin-block-start: 0; }
.wppoet-entry h2,
.wppoet-entry h3 { margin-block: 1.75rem .6rem; scroll-margin-top: calc(var(--wppoet-header-offset) + 1.5rem); }
.wppoet-entry h2 { font-size: var(--wp--preset--font-size--x-large); }
.wppoet-entry h3 { font-size: var(--wp--preset--font-size--large); }
.wppoet-entry h4 { font-size: var(--wp--preset--font-size--medium); scroll-margin-top: calc(var(--wppoet-header-offset) + 1.5rem); }
.wppoet-entry ul,
.wppoet-entry ol { padding-left: 1.25rem; }
.wppoet-entry li + li { margin-top: .35rem; }
.wppoet-entry li::marker { color: var(--wp--preset--color--primary); }
.wppoet-entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wppoet-entry .wp-block-image img,
.wppoet-entry .wp-block-gallery img { border-radius: 14px; }
.wppoet-entry .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 14px; }
.wppoet-entry .wp-block-image { margin-block: 1.5rem; }

/* Keypoints box (section style fallback for older WP + editor) */
.is-style-keypoints {
	background: var(--wp--preset--color--lavender);
	border: 1px solid var(--wp--preset--color--lavender-strong);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.is-style-keypoints > .wp-block-heading { margin: 0 0 .5rem !important; font-size: var(--wp--preset--font-size--medium) !important; }
.is-style-keypoints ul { margin: 0; padding-left: 1.1rem; }
.is-style-keypoints li::marker { color: var(--wp--preset--color--muted); }

/* Table of contents */
.wppoet-toc { font-size: var(--wp--preset--font-size--x-small); }
.wppoet-toc__title { margin: 0 0 .25rem !important; }
.wppoet-toc__nav ol { list-style: none; margin: 0; padding: 0; }
.wppoet-toc__nav li { margin: 0; }
.wppoet-toc__nav a {
	display: block;
	padding: .45rem .5rem;
	border-radius: 6px;
	color: var(--wp--preset--color--muted);
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.wppoet-toc__nav li.is-h3 a { padding-left: 1.1rem; }
.wppoet-toc__nav a:hover { color: var(--wp--preset--color--contrast); text-decoration: none; }
.wppoet-toc__nav a.is-active {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--border);
}
.wppoet-toc.is-empty { display: none; }
.wppoet-toc-col .wppoet-toc { max-height: calc(100vh - var(--wppoet-header-offset) - 3rem); overflow: auto; }

/* Comments */
.wppoet-comments__bar {
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: .7rem;
}
.wppoet-comments__bar > * { margin: 0; }
.wppoet-add-comment .wp-block-button__link { padding: .35rem .9rem; }
.wppoet-comment-list { list-style: none; margin: 0; padding: 0; }
.wppoet-comment-list ol { list-style: none; padding-left: 1.5rem; }
.wppoet-comment { border-bottom: 1px solid var(--wp--preset--color--border); }
.wppoet-comment > * { margin-block: 0; }
.wppoet-comment > * + * { margin-block-start: .4rem; }
.wppoet-comment .wp-block-comment-author-name,
.wppoet-comment .wp-block-comment-date { margin: 0; }
.wppoet-comment-date { color: var(--wp--preset--color--muted); }
.wppoet-comment-date::before { content: "·"; margin-right: .4rem; }
.wppoet-comment .wp-block-comment-content p { margin: 0; }
.wppoet-comment .wp-block-comment-reply-link a { color: var(--wp--preset--color--primary); }
.bypostauthor > .wppoet-comment .wp-block-comment-author-name::after {
	content: "Author";
	margin-left: .4rem;
	padding: .05rem .4rem;
	font-size: .7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--primary-dark);
}

.wppoet-comment-form { margin-top: var(--wp--preset--spacing--40); }
.wppoet-comment-form .comment-reply-title { font-size: var(--wp--preset--font-size--large); margin-bottom: .5rem; }
.wppoet-comment-form input:not([type="submit"]):not([type="checkbox"]),
.wppoet-comment-form textarea {
	width: 100%;
	padding: .7rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
}
.wppoet-comment-form input:focus,
.wppoet-comment-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent); border-color: var(--wp--preset--color--primary); }
.wppoet-comment-form label { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }

.wppoet-tags { margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--muted); }
.wppoet-tags a { display: inline-block; padding: .1rem .55rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; color: var(--wp--preset--color--contrast); }

/* Single responsive */
@media (max-width: 1024px) {
	.wppoet-toc-col { display: none !important; }
}
@media (max-width: 781px) {
	.wppoet-content-col { order: 1; }
	.wppoet-share-col { position: static; flex-basis: auto !important; width: 100%; order: 2; }
	.wppoet-share-bar { flex-direction: row !important; }
}
.wppoet-share-bar.is-horizontal { flex-direction: row !important; margin-top: var(--wp--preset--spacing--50); }

/* --------------------------------------------------------------------------
   Related posts / section eyebrow
   -------------------------------------------------------------------------- */
.wppoet-eyebrow {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0;
}
.wppoet-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
	flex: none;
}
.wppoet-eyebrow::after {
	content: "";
	flex: 1;
	border-top: 1px dashed var(--wp--preset--color--border);
}
.wppoet-related > .wp-block-heading { margin-block-start: .75rem; }
.wppoet-related .wppoet-feed { margin-top: var(--wp--preset--spacing--40) !important; }

/* --------------------------------------------------------------------------
   Front page sections
   -------------------------------------------------------------------------- */
.wppoet-badge { margin: 0 auto; width: fit-content; }
.wppoet-badge a {
	display: inline-block;
	padding: .3rem .85rem;
	border: 1px solid var(--wp--preset--color--lavender-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 500;
	text-decoration: none;
}
.wppoet-hero-visual img {
	border-radius: 24px;
	box-shadow: var(--wp--preset--shadow--lifted);
	width: 100%;
}
.wppoet-chip {
	margin: 0;
	padding: .4rem .9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wppoet-step__num {
	width: 2.25rem; height: 2.25rem;
	display: grid; place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 600;
	margin: 0;
}
.wppoet-step > .wp-block-heading { margin-block: .9rem .35rem; }
.wppoet-feature__icon { width: 44px; }
.wppoet-feature .wp-block-heading { margin-block: .75rem .25rem; }
.wppoet-feature,
.wppoet-product { transition: box-shadow .25s var(--wppoet-ease), transform .25s var(--wppoet-ease); }
.wppoet-feature:hover,
.wppoet-product:hover { box-shadow: var(--wp--preset--shadow--lifted); transform: translateY(-2px); }
.wppoet-stats p { margin: 0; text-align: center; }
.wppoet-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wppoet-faq-item summary::-webkit-details-marker { display: none; }
.wppoet-faq-item summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.wppoet-faq-item[open] summary::after { transform: rotate(45deg); }
.wppoet-big-404 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	line-height: 1;
	margin: 0;
	background: var(--wp--preset--gradient--primary-glow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.wppoet-footer-heading { margin: 0 0 1rem !important; color: var(--wp--preset--color--contrast); }
.wppoet-footer-links { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.wppoet-footer-links li + li { margin-top: .6rem; }
.wppoet-footer-links a { color: var(--wp--preset--color--body); }
.wppoet-footer-links a:hover { color: var(--wp--preset--color--primary); text-decoration: none; }
.wppoet-footer-sep { border: 0 !important; border-top: 1px solid var(--wp--preset--color--border) !important; margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) !important; opacity: 1; }
.wppoet-social a:hover { color: var(--wp--preset--color--primary) !important; }

.wppoet-newsletter { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: 1rem; max-width: 300px; }
.wppoet-newsletter input {
	width: 100%;
	padding: .55rem .8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
}
.wppoet-newsletter input:focus { outline: 2px solid color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent); border-color: var(--wp--preset--color--primary); }
.wppoet-newsletter__btn {
	cursor: pointer;
	padding: .35rem .85rem;
	border: 1px solid var(--wp--preset--color--lavender-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}
.wppoet-newsletter__btn:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--primary); }

/* --------------------------------------------------------------------------
   Utilities & 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 !important;
	width: 1px; word-wrap: normal !important;
}
:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
