/**
 * Premium shell: posts, pages, archives, category/tag/tax, author, date, search, 404.
 * Scoped to body.hemp-premium-shell (directory listing singles excluded in PHP).
 */

body.hemp-premium-shell {
	--hemp-shell-ink: #063d27;
	--hemp-shell-ink-soft: rgba(6, 61, 39, 0.78);
	--hemp-shell-accent: #0d5c3a;
	--hemp-shell-accent-deep: #0a4a2f;
	--hemp-shell-gold: #c9a227;
	--hemp-shell-gold-soft: #e8d48b;
	--hemp-shell-bg: #f4f7f5;
	--hemp-shell-surface: #ffffff;
	--hemp-shell-edge: rgba(13, 92, 58, 0.14);
	--hemp-shell-shadow: 0 8px 32px rgba(6, 40, 30, 0.07);
	--hemp-shell-shadow-sm: 0 4px 18px rgba(6, 40, 30, 0.06);
	--hemp-shell-radius: 14px;
	--hemp-shell-radius-sm: 10px;
	--hemp-shell-max: 72rem;
	color: var(--hemp-shell-ink-soft);
}

/* Subtle page backdrop */
body.hemp-premium-shell:not(.wp-admin) {
	background: linear-gradient(180deg, #eef5f1 0%, var(--hemp-shell-bg) 18rem, var(--hemp-shell-bg) 100%);
}

/* --- Titles: archives, singles, FSE --- */
body.hemp-premium-shell main :where(
		h1.entry-title,
		h1.wp-block-post-title,
		.wp-block-query-title,
		.wp-block-archive-title,
		.page-title,
		.entry-title a
	) {
	color: var(--hemp-shell-ink) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.15 !important;
}

body.hemp-premium-shell main h1.entry-title,
body.hemp-premium-shell main h1.wp-block-post-title,
body.hemp-premium-shell main .wp-block-query-title,
body.hemp-premium-shell main .wp-block-archive-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
	margin-top: 0 !important;
	margin-bottom: 0.65rem !important;
}

/* Archive / index “hero” band: common header wrappers */
body.hemp-premium-shell .page-header,
body.hemp-premium-shell .archive-header,
body.hemp-premium-shell .tax-header,
body.hemp-premium-shell .search-header {
	background: linear-gradient(135deg, var(--hemp-shell-accent-deep) 0%, var(--hemp-shell-accent) 55%, #1a6b47 100%);
	color: #f4f7f5;
	padding: 1.75rem 1.5rem 2rem;
	border-radius: var(--hemp-shell-radius);
	margin-bottom: 1.75rem;
	box-shadow: var(--hemp-shell-shadow);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

body.hemp-premium-shell .page-header .page-title,
body.hemp-premium-shell .page-header h1,
body.hemp-premium-shell .archive-header .page-title,
body.hemp-premium-shell .archive-header h1,
body.hemp-premium-shell .tax-header h1,
body.hemp-premium-shell .search-header h1 {
	color: #fff !important;
	margin: 0 0 0.35rem !important;
}

body.hemp-premium-shell .archive-description,
body.hemp-premium-shell .taxonomy-description,
body.hemp-premium-shell .page-header p,
body.hemp-premium-shell .search-header p {
	color: rgba(255, 255, 255, 0.9) !important;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	max-width: 48rem;
}

/* FSE: query title block often not inside .archive-header — give it a band when alone at top of main */
body.hemp-premium-shell main > .wp-block-group:first-child:has(.wp-block-query-title),
body.hemp-premium-shell main > .wp-block-query-title:first-child {
	background: linear-gradient(135deg, var(--hemp-shell-accent-deep) 0%, var(--hemp-shell-accent) 55%, #1a6b47 100%);
	padding: 1.75rem 1.5rem;
	border-radius: var(--hemp-shell-radius);
	margin-bottom: 1.75rem !important;
	box-shadow: var(--hemp-shell-shadow);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

body.hemp-premium-shell main > .wp-block-query-title:first-child,
body.hemp-premium-shell main > .wp-block-group:first-child:has(.wp-block-query-title) .wp-block-query-title {
	color: #fff !important;
}

/* --- Single entry header (classic + blocks) --- */
body.hemp-premium-shell .singular .entry-header,
body.hemp-premium-shell.single .entry-header,
body.hemp-premium-shell.page .entry-header {
	background: var(--hemp-shell-surface);
	border: 1px solid var(--hemp-shell-edge);
	border-radius: var(--hemp-shell-radius);
	padding: 1.5rem 1.5rem 1.25rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--hemp-shell-shadow-sm);
}

body.hemp-premium-shell .entry-header .entry-title {
	margin-bottom: 0.5rem !important;
}

/* --- Meta: dates, author, categories — pill style --- */
body.hemp-premium-shell .entry-meta,
body.hemp-premium-shell .post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.65rem;
	align-items: center;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hemp-shell-accent) !important;
}

body.hemp-premium-shell .entry-meta a,
body.hemp-premium-shell .post-meta a {
	color: var(--hemp-shell-accent-deep) !important;
	text-decoration: none;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(13, 92, 58, 0.1);
	border: 1px solid rgba(13, 92, 58, 0.18);
	transition: background 0.15s ease, color 0.15s ease;
}

body.hemp-premium-shell .entry-meta a:hover,
body.hemp-premium-shell .post-meta a:hover,
body.hemp-premium-shell .entry-meta a:focus,
body.hemp-premium-shell .post-meta a:focus {
	background: rgba(13, 92, 58, 0.18);
	color: var(--hemp-shell-ink) !important;
}

/* Block post meta */
body.hemp-premium-shell .wp-block-post-date,
body.hemp-premium-shell .wp-block-post-author-name,
body.hemp-premium-shell .wp-block-post-terms {
	font-size: 0.82rem !important;
	font-weight: 700 !important;
}

body.hemp-premium-shell .wp-block-post-terms a {
	color: var(--hemp-shell-accent-deep) !important;
	text-decoration: none !important;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(13, 92, 58, 0.08);
	border: 1px solid rgba(13, 92, 58, 0.15);
	margin: 0 0.2rem 0.2rem 0;
	display: inline-block;
}

/* --- Featured image --- */
body.hemp-premium-shell .post-thumbnail,
body.hemp-premium-shell .wp-block-post-featured-image {
	border-radius: var(--hemp-shell-radius);
	overflow: hidden;
	box-shadow: var(--hemp-shell-shadow-sm);
	margin-bottom: 1.5rem;
}

body.hemp-premium-shell .post-thumbnail img,
body.hemp-premium-shell .wp-block-post-featured-image img {
	border-radius: var(--hemp-shell-radius);
}

/* --- Entry content typography (align with directory prose) --- */
body.hemp-premium-shell .entry-content,
body.hemp-premium-shell .wp-block-post-content {
	font-size: 1.06rem;
	line-height: 1.65;
	max-width: var(--hemp-shell-max);
}

body.hemp-premium-shell .entry-content > p:first-of-type,
body.hemp-premium-shell .wp-block-post-content > p:first-of-type {
	font-size: 1.12rem;
	line-height: 1.6;
	color: var(--hemp-shell-ink-soft);
}

body.hemp-premium-shell .entry-content h2,
body.hemp-premium-shell .entry-content h3,
body.hemp-premium-shell .entry-content h4,
body.hemp-premium-shell .wp-block-post-content h2,
body.hemp-premium-shell .wp-block-post-content h3,
body.hemp-premium-shell .wp-block-post-content h4 {
	color: var(--hemp-shell-ink);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-top: 1.75em;
	margin-bottom: 0.55em;
	line-height: 1.2;
}

body.hemp-premium-shell .entry-content a,
body.hemp-premium-shell .wp-block-post-content a {
	color: var(--hemp-shell-accent-deep);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

body.hemp-premium-shell .entry-content a:hover,
body.hemp-premium-shell .wp-block-post-content a:hover {
	color: var(--hemp-shell-accent);
}

body.hemp-premium-shell .entry-content blockquote,
body.hemp-premium-shell .wp-block-post-content blockquote {
	margin: 1.25em 0;
	padding: 0.85rem 1rem 0.85rem 1.1rem;
	border-left: 4px solid rgba(13, 92, 58, 0.45);
	background: rgba(244, 249, 246, 0.85);
	border-radius: 0 var(--hemp-shell-radius-sm) var(--hemp-shell-radius-sm) 0;
	font-style: normal;
	color: rgba(6, 40, 30, 0.82);
}

body.hemp-premium-shell .entry-content ul,
body.hemp-premium-shell .entry-content ol,
body.hemp-premium-shell .wp-block-post-content ul,
body.hemp-premium-shell .wp-block-post-content ol {
	padding-left: 1.25rem;
}

body.hemp-premium-shell .entry-content img,
body.hemp-premium-shell .wp-block-post-content img,
body.hemp-premium-shell .entry-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(6, 40, 30, 0.08);
}

/* --- Loop cards: classic hentry + block posts --- */
body.hemp-premium-shell .post.hentry,
body.hemp-premium-shell article.post {
	background: var(--hemp-shell-surface);
	border: 1px solid var(--hemp-shell-edge);
	border-radius: var(--hemp-shell-radius);
	padding: 1.35rem 1.4rem 1.5rem;
	margin-bottom: 1.35rem;
	box-shadow: var(--hemp-shell-shadow-sm);
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

body.hemp-premium-shell .post.hentry:hover,
body.hemp-premium-shell article.post:hover {
	box-shadow: var(--hemp-shell-shadow);
	border-color: rgba(13, 92, 58, 0.22);
}

body.hemp-premium-shell main .wp-block-post {
	background: var(--hemp-shell-surface);
	border: 1px solid var(--hemp-shell-edge);
	border-radius: var(--hemp-shell-radius);
	padding: 1.25rem 1.35rem 1.4rem;
	box-shadow: var(--hemp-shell-shadow-sm);
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

body.hemp-premium-shell main .wp-block-post:hover {
	box-shadow: var(--hemp-shell-shadow);
	border-color: rgba(13, 92, 58, 0.22);
}

body.hemp-premium-shell main .wp-block-post .wp-block-post-title {
	margin: 0 !important;
	font-size: 1.15rem !important;
}

body.hemp-premium-shell main .wp-block-post .wp-block-post-title a {
	color: var(--hemp-shell-ink) !important;
	text-decoration: none !important;
}

body.hemp-premium-shell main .wp-block-post .wp-block-post-excerpt {
	color: var(--hemp-shell-ink-soft) !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}

/* Post grid gap */
body.hemp-premium-shell .wp-block-post-template {
	gap: 1.25rem;
}

body.hemp-premium-shell .wp-block-post-template.is-flex-container {
	gap: 1.25rem;
}

/* --- Pagination --- */
body.hemp-premium-shell .navigation.pagination,
body.hemp-premium-shell .posts-navigation,
body.hemp-premium-shell .post-navigation {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hemp-shell-edge);
}

body.hemp-premium-shell .navigation.pagination .page-numbers,
body.hemp-premium-shell .wp-block-query-pagination a,
body.hemp-premium-shell .wp-block-query-pagination .wp-block-query-pagination-numbers button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.55rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--hemp-shell-ink) !important;
	background: var(--hemp-shell-surface);
	border: 1px solid rgba(13, 92, 58, 0.35);
	border-radius: var(--hemp-shell-radius-sm);
	text-decoration: none;
	box-sizing: border-box;
}

body.hemp-premium-shell .navigation.pagination .page-numbers.current,
body.hemp-premium-shell .wp-block-query-pagination .page-numbers.current {
	background: var(--hemp-shell-accent);
	color: #fff !important;
	border-color: var(--hemp-shell-accent);
}

body.hemp-premium-shell .navigation.pagination a.page-numbers:hover,
body.hemp-premium-shell .wp-block-query-pagination a:hover {
	background: rgba(13, 92, 58, 0.1);
}

body.hemp-premium-shell .post-navigation .nav-links a {
	font-weight: 700;
	color: var(--hemp-shell-accent-deep) !important;
}

/* --- Search --- */
body.hemp-premium-shell.search .page-header,
body.hemp-premium-shell.search .search-header {
	margin-bottom: 1.5rem;
}

body.hemp-premium-shell .search-form input[type="search"],
body.hemp-premium-shell .wp-block-search__input {
	border-radius: var(--hemp-shell-radius-sm);
	border: 1px solid var(--hemp-shell-edge);
	padding: 0.55rem 0.85rem;
}

body.hemp-premium-shell .search-form .search-submit,
body.hemp-premium-shell .wp-block-search__button {
	background: var(--hemp-shell-accent);
	color: #fff;
	border: none;
	border-radius: var(--hemp-shell-radius-sm);
	font-weight: 700;
	padding: 0.55rem 1.1rem;
	cursor: pointer;
}

/* --- 404 --- */
body.hemp-premium-shell.error404 main .page-content,
body.hemp-premium-shell.error404 main article {
	background: var(--hemp-shell-surface);
	border: 1px solid var(--hemp-shell-edge);
	border-radius: var(--hemp-shell-radius);
	padding: 2rem 1.75rem;
	box-shadow: var(--hemp-shell-shadow-sm);
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

body.hemp-premium-shell.error404 main h1 {
	color: var(--hemp-shell-ink);
}

/* --- Comments --- */
body.hemp-premium-shell #comments,
body.hemp-premium-shell .comments-area {
	background: var(--hemp-shell-surface);
	border: 1px solid var(--hemp-shell-edge);
	border-radius: var(--hemp-shell-radius);
	padding: 1.5rem 1.4rem;
	margin-top: 2.5rem;
	box-shadow: var(--hemp-shell-shadow-sm);
}

body.hemp-premium-shell #comments .comment-body {
	border-bottom: 1px solid var(--hemp-shell-edge);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

body.hemp-premium-shell #respond input[type="text"],
body.hemp-premium-shell #respond input[type="email"],
body.hemp-premium-shell #respond input[type="url"],
body.hemp-premium-shell #respond textarea {
	border-radius: var(--hemp-shell-radius-sm);
	border: 1px solid var(--hemp-shell-edge);
}

body.hemp-premium-shell #respond .form-submit input {
	background: var(--hemp-shell-accent);
	color: #fff;
	border: none;
	border-radius: var(--hemp-shell-radius-sm);
	font-weight: 700;
	padding: 0.5rem 1.2rem;
	cursor: pointer;
}

/* --- Sticky / tag / category labels --- */
body.hemp-premium-shell .sticky .entry-title::before,
body.hemp-premium-shell .post.sticky .entry-title::before {
	content: "Featured · ";
	color: var(--hemp-shell-gold);
	font-weight: 800;
}

/* --- Front page: don’t force band on full-width hero blocks --- */
body.hemp-premium-shell.front-page main > .wp-block-group.alignfull:first-child,
body.hemp-premium-shell.home main > .wp-block-group.alignfull:first-child {
	background: transparent;
	padding: 0;
	border: none;
	box-shadow: none;
	margin-bottom: 0;
}

/* Reduce double-band when theme already wraps title */
body.hemp-premium-shell .page-header .page-title + .archive-description {
	margin-top: 0.75rem;
}

@media (max-width: 600px) {
	body.hemp-premium-shell .page-header,
	body.hemp-premium-shell .archive-header,
	body.hemp-premium-shell .tax-header,
	body.hemp-premium-shell .search-header,
	body.hemp-premium-shell main > .wp-block-group:first-child:has(.wp-block-query-title) {
		padding: 1.35rem 1.15rem;
		border-radius: var(--hemp-shell-radius-sm);
	}

	body.hemp-premium-shell .entry-content,
	body.hemp-premium-shell .wp-block-post-content {
		font-size: 1rem;
	}
}
