/* ===================================================================
   8. SPECIAL FEATURES
================================================================== */

.hero-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: all 140ms ease;
	z-index: 10;
}

.hero-close:hover {
	color: #3c3836;
	/* fallback */
	color: var(--fg);
	background: rgba(60, 56, 54, 0.1);
}

.hero-close:active {
	transform: scale(0.95);
}

.hero-close i {
	font-size: 1.25rem;
}

/* ===================================================================
   Status.lol Module Styles
================================================================== */

.statuslol_container {
	font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	font-size: .8rem;
	line-height: 1.2;
}

.status-header-link {
	font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	font-size: .7rem;
	font-weight: normal;
}

.statuslol_time {
	margin-top: -1rem;
}

.statuslol_container a:hover {
	color: #8a1814;
	color: var(--accent-secondary);
	text-decoration: underline;
}

/* ===================================================================
   Statuslog Feed Page (/notes/)
================================================================== */

.statuslog-header {
	margin-bottom: 1.5rem;
	margin-bottom: var(--space-xl);
	border-bottom: 1px solid #7c6f64;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
	padding-bottom: var(--space-lg);
}

.statuslog-description {
	color: #665c54;
	color: var(--muted);
	font-size: 0.9375rem;
	margin: 0;
}

.statuslog-feed .status-entry {
	display: flex;
	gap: 1rem;
	gap: var(--space-md);
	padding: 1.25rem 0;
	border-bottom: 1px solid #7c6f64;
	border-bottom: 1px solid var(--border);
	align-items: flex-start;
}

.statuslog-feed .status-entry:last-child {
	border-bottom: none;
}

.status-entry-emoji {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
	width: 2.25rem;
	text-align: center;
	padding-top: 0.1rem;
}

.status-entry-body {
	flex: 1;
	min-width: 0;
}

.status-entry-body .e-content {
	margin: 0 0 0.5rem 0;
	margin: 0 0 var(--space-xs) 0;
	line-height: 1.6;
	word-break: break-word;
}

.status-entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	gap: var(--space-xs);
	font-size: 0.875rem;
	color: #665c54;
	color: var(--muted);
}

.status-entry-meta time {
	font-variant-numeric: tabular-nums;
}

.status-entry-relative {
	color: #665c54;
	color: var(--muted);
	font-style: italic;
}

.status-entry-permalink {
	color: #665c54;
	color: var(--muted);
	text-decoration: none;
	font-size: 1rem;
	line-height: 1;
	opacity: 0.6;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.status-entry-permalink:hover {
	color: #8a1814;
	color: var(--accent-primary);
	opacity: 1;
	text-decoration: none;
}

.hero-image {
	text-align: center;
}

.hero-image-bg {
	
	padding: 1rem;
	display: inline-block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	width: 152px;
	height: 173px;
}

.hero-image img {
	width: 120px;
	height: 141px;
	display: block;
	transition: transform 200ms ease;
	will-change: transform;
}

.hero-image img:hover {
	transform: scale(1.05);
}

.hero-image-credit {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #665c54;
	/* fallback */
	color: var(--muted);
}

.hero-image-credit a {
	color: #665c54;
	/* fallback */
	color: var(--muted);
	text-decoration: none;
}

.hero-image-credit a:hover {
	color: #8a1814;
	/* fallback */
	color: var(--link);
}

.hero-content {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #3c3836;
	/* fallback */
	color: var(--fg);
}

.hero-content p {
	margin: 0 0 1.5rem;
	max-width: 40rem;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero-signature {
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.hero-signature:hover {
	opacity: 1;
}

@media (max-width: 768px) {
	.hero-actions {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	
	.hero-signature {
		margin-left: 0;
	}
}

.hero-content .hero-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	
	font-weight: 900;
	transition: all 140ms ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	background: #8a1814;
	/* fallback */
	background: var(--accent-primary) !important;
	color: #fbf1c7;
	/* fallback */
	color: var(--bg) !important;
	border: 2px solid #8a1814;
	/* fallback */
	border: 2px solid var(--accent-primary);
	font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
	font-weight: 900;
}

.hero-content .hero-btn:visited {
	color: #fbf1c7 !important;
	/* fallback */
	color: var(--bg) !important;
}

.hero-content .hero-btn:hover {
	background: #9d0006;
	/* fallback */
	background: var(--link-hover) !important;
	color: #fbf1c7;
	/* fallback */
	color: var(--bg) !important;
	border-color: #9d0006;
	/* fallback */
	border-color: var(--link-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(204, 36, 29, 0.3);
}

/* Header anchors */
h1 .header-anchor::after {
	content: " #";
}

h2 .header-anchor::after {
	content: " ##";
}

h3 .header-anchor::after {
	content: " ###";
}

h4 .header-anchor::after {
	content: " ####";
}

.header-anchor {
	text-decoration: none;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	margin-left: 0.5rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor {
	opacity: 1;
}

/* Pull quotes */
.pullquote {
	font-size: 1.5rem;
	line-height: 1.4;
	text-align: center;
	margin: 2.5rem 0;
	padding: 2rem;
	border-top: 3px solid #8a1814;
	/* fallback */
	border-top: 3px solid var(--accent-primary);
	border-bottom: 3px solid #8a1814;
	/* fallback */
	border-bottom: 3px solid var(--accent-primary);
	font-style: italic;
	color: #3c3836;
	/* fallback */
	color: var(--fg);
}

/* Table of contents */
.toc {
	border: 1px solid #7c6f64;
	/* fallback for color-mix */
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #f2e5bc;
	/* fallback */
	background: var(--panel);
	padding: 0.55rem 0.7rem;
	margin: 0.75rem 0 1rem;
	width: 90%;
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.85em;
	line-height: 1.35;
}

.toc-title {
	font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
	font-size: 0.75em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	margin: 0 0 0.35rem;
	text-align: center;
}

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

.toc ul ul {
	margin-top: 0.2rem;
	padding-left: 0.65rem;
	border-left: 1px solid #7c6f64;
	/* fallback for color-mix */
	border-left: 1px solid var(--border);
}

.toc li {
	margin: 0.12rem 0;
}

.toc a {
	text-decoration: none;
}

.toc a:hover,
.toc a:active {
	text-decoration: underline;
}

/* Pagefind search UI */
:root {
	--pagefind-ui-scale: 1;
	--pagefind-ui-primary: #d9730d;
	--pagefind-ui-text: #000;
	--pagefind-ui-background: #fff;
	--pagefind-ui-border: #ccc;
	--pagefind-ui-tag: #d9730d;
	--pagefind-ui-border-width: 2px;
	--pagefind-ui-image-box-ratio: 3 / 2;
	--pagefind-ui-font: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
}

/* Pagefind dark mode overrides */
:root.dark-mode {
	--pagefind-ui-primary: #83a598;
	--pagefind-ui-text: #ebdbb2;
	--pagefind-ui-background: #282828;
	--pagefind-ui-border: #504945;
}

/* Direct styling for Pagefind UI elements in dark mode */
.dark-mode .pagefind-ui__result-link,
.dark-mode .pagefind-ui__result-title,
.dark-mode .pagefind-ui__message {
	color: #ebdbb2 !important;
}

.dark-mode .pagefind-ui__result-excerpt {
	color: #a89984 !important;
}

.dark-mode .pagefind-ui__result {
	background: #282828 !important;
	border-color: #504945 !important;
}

.dark-mode .pagefind-ui__search-input {
	background: #282828 !important;
	color: #ebdbb2 !important;
	border-color: #504945 !important;
}

.dark-mode mark {
	background: #fabd2f !important;
	color: #1d2021 !important;
}

/* Alert boxes dark mode overrides */
.dark-mode .alert-info {
	background: rgba(7, 102, 120, 0.15);
	color: #83a598;
	border-color: #458588;
}

.dark-mode .alert-warning {
	background: rgba(213, 93, 14, 0.15);
	color: #fabd2f;
	border-color: #d79921;
}

.dark-mode .alert-danger {
	background: rgba(204, 36, 29, 0.15);
	color: #fb4934;
	border-color: #cc241d;
}

/* Hero close button dark mode */
.dark-mode .hero-close {
	color: #928374;
	/* fallback */
	color: var(--muted);
}

.dark-mode .hero-close:hover {
	color: #ebdbb2;
	/* fallback */
	color: var(--fg);
	background: rgba(235, 219, 178, 0.1);
}

/* Reply context dark mode */
.dark-mode .reply-context {
	background: rgba(251, 241, 199, 0.05);
	border-left-color: #fb4934;
}

.dark-mode .reply-context-notice {
	color: #a89984;
}

.dark-mode .reply-context-notice a {
	color: #fb4934;
}

.dark-mode .reply-quote {
	border-left-color: #665c54;
	color: #a89984;
}

.dark-mode .reply-quote footer {
	color: #a89984;
}

/* Webmentions */
.webmentions {
	margin: 2rem 0;
}

.webmention-avatars {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	row-gap: 0;
	column-gap: 0.4rem;
	margin-top: -2rem;
}

.webmention-avatars a {
	display: block;
	line-height: 0;
	margin: 0;
	padding: 0;
}

.webmention-avatars a::before {
	content: none !important;
}

.webmention-avatar {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin-bottom: 0 !important;
	padding: 0;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.webmention-avatar:hover {
	transform: scale(1.15);
	opacity: 0.85;
}

.webmention-avatar--placeholder {
	background: var(--panel);
	color: var(--fg);
	font-size: 0.75rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	margin-top: 1.4rem;
}

.webmention-likes,
.webmention-reposts {
	margin-bottom: 1.25rem;
}

.webmention-replies {
	margin-top: 1.25rem;
}

.webmention-reply {
	border-left: 3px solid var(--border);
	padding: 0.6rem 0.9rem;
	margin-bottom: 0.75rem;
}

.webmention-reply__header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.35rem;
}

.webmention-reply__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.9rem;
}

.webmention-reply__date {
	font-size: 0.8rem;
	color: var(--muted);
	text-decoration: none;
}

.webmention-reply__date:hover {
	text-decoration: underline;
}

.webmention-reply__content {
	margin: 0;
	font-size: 0.9rem;
	color: var(--fg);
	line-height: 1.5;
}

.webmention-mentions {
	margin-top: 1.25rem;
}

.webmention-mention-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}

.webmention-mention-list li {
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
}

.webmention-mention-list a {
	word-break: break-all;
}

/* Press page mention groups */
.press-mention-group {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
}

.press-mention-group:last-child {
	border-bottom: none;
}

.press-mention-group p {
	margin: 0 0 0.15rem;
}

.press-mention-group ul {
	margin: 0;
	padding-left: 1.25rem;
}

.press-mention-group li {
	font-size: 0.8rem;
	word-break: break-all;
	line-height: 1.4;
}

/* ===================================================================
   Start Here Page Styles
================================================================== */

.start-intro {
	margin: var(--space-md) 0;
	padding: var(--space-md);
	background: var(--bg-alt);
	
	border-left: 4px solid var(--accent-primary);
}

.start-intro p {
	margin-bottom: var(--space-md);
	line-height: 1.7;
}

.start-intro p:last-child {
	margin-bottom: 0;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-lg);
	margin: var(--space-xl) 0;
}

.topic-card {
	padding: var(--space-lg);
	background: var(--panel);
	
	border-left: 4px solid var(--nav-purple);
	transition: transform 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.topic-card h3 {
	margin-top: 0;
	color: var(--fg);
	font-weight: 900;
	font-size: 1.15rem;
}

.topic-card p {
	margin-bottom: 0;
	color: var(--muted);
	line-height: 1.6;
	font-size: 0.95rem;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--space-xl);
	margin: var(--space-lg) 0;
}

.article-card {
	background: var(--panel);
	
	padding: var(--space-lg);
	border: 2px solid var(--border);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	border-color: var(--accent-secondary);
}

.article-category {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent-secondary);
	margin-bottom: var(--space-sm);
}

.article-card h3 {
	margin: 0 0 var(--space-sm) 0;
	font-size: 1.1rem;
	font-weight: 900;
	line-height: 1.3;
}

.article-card h3 a {
	color: var(--fg);
	text-decoration: none;
}

.article-card h3 a:hover {
	color: var(--link-hover);
}

.article-description {
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0;
	flex-grow: 1;
}

.article-stats {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--muted);
	display: flex;
	gap: var(--space-md);
	align-items: center;
}

.article-stats i {
	color: var(--accent-primary);
}

.tags-showcase {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: var(--space-lg) 0;
	padding: var(--space-lg);
	background: var(--bg-alt);
	
}

.tag-pill {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 20px;
	text-decoration: none;
	color: var(--fg);
	font-size: 0.85rem;
	transition: all 0.2s;
}

.tag-pill:hover {
	background: var(--accent-primary);
	color: #fff;
	border-color: var(--accent-primary);
	transform: translateY(-2px);
}

.support-callout {
	margin: var(--space-2xl) 0;
	padding: var(--space-xl);
	background: var(--bg-alt);
	
	border: 2px solid var(--accent-primary);
}

.support-callout h2 {
	margin-top: 0;
	color: var(--fg);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.support-callout h2 i {
	color: var(--accent-primary);
}

.support-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-lg);
	margin: var(--space-lg) 0;
}

.support-option {
	padding: var(--space-md);
	background: var(--panel);
	border-radius: 6px;
	border-left: 3px solid var(--accent-secondary);
}

.support-option h3 {
	margin-top: 0;
	margin-bottom: var(--space-sm);
	font-size: 1rem;
	color: var(--fg);
}

.support-option p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
	line-height: 1.5;
}

.support-option a {
	color: var(--link);
	text-decoration: none;
	font-weight: 600;
}

.support-option a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

.next-steps {
	margin: var(--space-2xl) 0;
	padding: var(--space-xl);
	background: var(--panel);
	
	border-top: 4px solid var(--nav-blue);
}

.next-steps h2 {
	margin-top: 0;
}

.next-steps ul {
	list-style: none;
	padding: 0;
	margin: var(--space-md) 0;
}

.next-steps li {
	margin: var(--space-md) 0;
	padding-left: var(--space-lg);
	position: relative;
}

.next-steps li:before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--accent-primary);
	font-weight: 900;
}

.next-steps a {
	color: var(--link);
	text-decoration: none;
	font-weight: 600;
}

.next-steps a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.topic-grid,
	.article-grid,
	.support-grid {
		grid-template-columns: 1fr;
	}
	
	.start-intro,
	.support-callout,
	.next-steps {
		padding: var(--space-md);
	}
}

/* ===================================================================
   External Link Posts
================================================================== */

.external-link-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #f9f5d7;
	background: var(--bg-alt);
	border-left: 4px solid #458588;
	border-left: 4px solid var(--accent-secondary);
	border-radius: 0 6px 6px 0;
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
	color: #665c54;
	color: var(--muted);
}

.external-link-notice i {
	margin-top: 0.2rem;
	flex-shrink: 0;
	color: #458588;
	color: var(--accent-secondary);
}

.external-link-notice p {
	margin: 0;
	line-height: 1.5;
}

.external-link-notice a {
	color: #076678;
	color: var(--accent-secondary);
	font-weight: 600;
}

.external-link-notice a:hover {
	text-decoration: underline;
}

.external-link-btn {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.65rem 1.25rem;
	background: #458588;
	background: var(--accent-secondary);
	color: #fbf1c7;
	color: var(--bg);
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	transition: background 140ms ease, transform 140ms ease;
}

.external-link-btn:hover {
	background: #076678;
	transform: translateY(-1px);
	color: #fbf1c7;
	color: var(--bg);
	text-decoration: none;
}

.dark-mode .external-link-notice {
	border-left-color: #83a598;
}

.dark-mode .external-link-notice i,
.dark-mode .external-link-notice a {
	color: #83a598;
}

/* ===================================================================
   Per-Post License Notice (e.g. CC BY 4.0 override for Rogue Scholar)
================================================================== */

.post-license-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #f9f5d7;
	background: var(--bg-alt);
	border-left: 4px solid #98971a;
	border-left: 4px solid var(--nav-green, #98971a);
	border-radius: 0 6px 6px 0;
	padding: 0.9rem 1.1rem;
	margin: 1.5rem 0;
	font-size: 0.9rem;
	color: #665c54;
	color: var(--muted);
}

.post-license-notice i {
	margin-top: 0.2rem;
	flex-shrink: 0;
	color: #98971a;
	color: var(--nav-green, #98971a);
}

.post-license-notice p {
	margin: 0;
	line-height: 1.5;
}

.post-license-notice a {
	color: #076678;
	color: var(--accent-secondary);
	font-weight: 600;
}

.post-license-notice a:hover {
	text-decoration: underline;
}

.dark-mode .post-license-notice {
	border-left-color: #b8bb26;
}

.dark-mode .post-license-notice i {
	color: #b8bb26;
}

.cc-by-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 4px;
	background: #98971a;
	background: var(--nav-green, #98971a);
	color: #fbf1c7;
}

.dark-mode .external-link-btn {
	background: #83a598;
	color: #1d2021;
}

.dark-mode .external-link-btn:hover {
	background: #689d6a;
	color: #1d2021;
}

/* ===================================================================
   Like Button Styles
================================================================== */

.like-form {
	margin: 2rem 0;
	text-align: center;
}

.like-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.like-text {
	font-style: italic;
	color: var(--fg);
	margin: 0;
}

.like-separator {
	color: var(--muted);
	font-weight: 300;
	user-select: none;
}

@media (max-width: 768px) {
	.like-separator {
		display: none;
	}
}

.like-content .bubbles-vote {
	display: inline-flex;
	align-items: center;
	margin-top: 0;
}

.bubbles-vote-btn {
	--bt-fg: var(--muted);
	--bt-accent: var(--accent-primary);
}

.bubbles-vote-tri {
	--bt-accent: var(--accent-secondary);
}

.bubbles-vote-num {
	--bt-accent: var(--bg);
}

a.bubbles-vote-btn {
	color: var(--accent-primary);
	font-size: 0.85em;
}

.like-content .bubbles-vote a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	background: var(--accent-primary);
	color: var(--bg);
	padding: var(--space-xs) var(--space-lg);
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.5;
	vertical-align: middle;
	transition: background-color 0.2s ease, transform 150ms ease, box-shadow 200ms ease;
}

.like-content .bubbles-vote a:hover {
	background: var(--link-hover);
	color: var(--bg);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(204, 36, 29, 0.3);
}

.bubbles-vote a::after {
	display: none !important;
	content: none !important;
}

/* Post Graph (EPG) */
:root {
	--epg-box: var(--panel);
	--epg-box-highlight: var(--accent-primary);
	--epg-text: var(--fg);
}

.epg {
	color: var(--epg-text);
	margin: 20px 0;
	font-size: 0.8em;
}

.epg__year {
	text-align: center;
	font-weight: bold;
	margin-bottom: 10px;
}

.epg__months {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

@media (max-width: 410px) {
	.epg__months {
		display: none;
	}
}

.epg__squares {
	display: grid;
	grid-column-start: 2;
	grid-template-rows: repeat(7, 1fr);
	grid-auto-flow: column;
	margin-bottom: 10px;
	grid-gap: 2px;
}

.epg__box {
	aspect-ratio: 1 / 1;
	background: var(--epg-box);
}

.epg__box--empty {
	background: none;
}

.epg__hasPost {
	background: var(--epg-box-highlight);
}

.epg__squares > :nth-child(7n + 1) .epg__hasPost {
	background: var(--nav-red);
}

.epg__squares > :nth-child(7n + 2) .epg__hasPost {
	background: var(--nav-orange);
}

.epg__squares > :nth-child(7n + 3) .epg__hasPost {
	background: var(--nav-yellow);
}

.epg__squares > :nth-child(7n + 4) .epg__hasPost {
	background: var(--nav-green);
}

.epg__squares > :nth-child(7n + 5) .epg__hasPost {
	background: var(--nav-aqua);
}

.epg__squares > :nth-child(7n + 6) .epg__hasPost {
	background: var(--nav-blue);
}

.epg__squares > :nth-child(7n + 7) .epg__hasPost {
	background: var(--nav-purple);
}

.epg__hasPost:hover {
	opacity: 0.8;
	transform: scale(1.1);
	transition: all 0.2s ease;
}

.epg__link {
	text-decoration: none;
	display: block;
	aspect-ratio: 1 / 1;
}

.epg__link:hover .epg__box {
	filter: brightness(1.2);
}

/* Comments */
.comments-section {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.comment-form-container {
	background: var(--panel);
	padding: 1.5rem;
	
	margin-bottom: 2rem;
}

/* Comment form-specific form group overrides */
.comment-form-container .form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.comment-form-container .form-group input,
.comment-form-container .form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

.comment-form-container .form-group input:focus,
.comment-form-container .form-group textarea:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb, 74, 144, 226), 0.2);
}

/* Comment form-specific button overrides */
.comment-form-container .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.comment-form-container .btn-primary {
	background: var(--accent-primary);
	color: white;
}

.comment-form-container .btn-primary:hover {
	background: var(--accent-primary-dark);
	transform: translateY(-1px);
}

.btn-link {
	background: none;
	border: none;
	color: var(--accent-primary);
	text-decoration: underline;
	font-size: 0.9rem;
	padding: 0;
}

.signed-in-as {
	margin-bottom: 1rem;
	padding: 0;
	background: var(--bg);
	border-radius: 4px;
	text-align: center;
}

.comments-list {
	margin-top: 2rem;
}

.comments-list .comment {
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	background: var(--panel);
	
}

.comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.4rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-family: sans-serif;
	font-size: 1.1rem;
}

.comment-author a {
	color: var(--fg);
	text-decoration: none;
}

.comment-author a:hover {
	color: var(--accent-primary);
}

.comment-date {
	font-size: 0.85rem;
	color: var(--muted);
}

.comment-content {
	line-height: 1.6;
	white-space: pre-line;
	margin-top: -1.5rem;
}

.comment-content p {
	margin: 0 0 1rem 0;
	text-indent: 0;
}

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

.comments-status {
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.comments-status.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.comments-status.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.comments-status.info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.no-comments {
	text-align: center;
	color: var(--muted);
	font-style: italic;
	margin: 2rem 0;
}

.auth-help {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 1rem;
	padding: 0.75rem;
	background: var(--bg);
	border-radius: 4px;
	border-left: 4px solid var(--accent-primary);
}

.auth-help a {
	color: var(--accent-primary);
	text-decoration: underline;
}

.auth-help a:hover {
	color: var(--link-hover);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.btn-reply {
	background: none;
	border: none;
	color: var(--accent-primary);
	font-size: 0.85rem;
	cursor: pointer;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	transition: background 0.15s ease;
	font-family: inherit;
}

.btn-reply:hover {
	background: rgba(var(--accent-primary-rgb, 74, 144, 226), 0.12);
}

.reply-form-container {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--bg);
	border-radius: 4px;
	border: 1px solid var(--border);
}

.reply-form-label {
	margin: 0 0 0.75rem 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.reply-form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.comment-replies {
	margin-top: 1rem;
	padding-left: 1.25rem;
	border-left: 3px solid var(--border);
}

.comment-replies:empty {
	display: none;
}

.comment-reply {
	margin-bottom: 1rem;
}

.comment-reply:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.comment-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.comment-meta {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* ===================================================================
   Collections Feature
================================================================== */

/* Back link */
.collection-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.15rem;
	color: #076678;
	color: var(--accent-secondary);
	text-decoration: none;
	margin-bottom: 1.5rem;
	transition: color 0.2s ease;
}

.collection-back-link:hover {
	color: #9a2420;
	color: var(--accent-primary);
	text-decoration: underline;
}

/* Collection page header */
.collection-page-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #ebdbb2;
	border-bottom: 2px solid var(--border);
}

.collection-page-header h1 {
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.collection-page-header .collection-description {
	font-size: 1.1rem;
	color: #665c54;
	color: var(--fg);
	font-style: italic;
	margin: 0 0 0.5rem 0;
}

.collection-post-count {
	font-size: 0.875rem;
	color: #665c54;
	color: var(--muted);
}

/* Collections index grid */
.collections-index-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin: 2rem 0;
}

a.collection-index-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #f2e5bc;
	background: var(--panel);
	border-right: 1px solid #7c6f64;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid #7c6f64;
	border-bottom: 1px solid var(--border);
	border-left: 4px solid #9a2420;
	border-left: 4px solid var(--accent-primary);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	overflow: hidden;
	padding: 0;
}

a.collection-index-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

a.collection-index-card:hover .collection-index-card-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

a.collection-index-card--empty .collection-index-card-meta {
	color: #665c54;
	color: var(--fg);
	font-weight: normal;
	font-style: italic;
}

.collection-index-card-header {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.6rem;
	padding: 1.25rem 1.5rem 0;
}

.collection-index-card-content {
	padding: 0 1.5rem 1.5rem;
}

.collection-index-card-icon {
	font-size: 1.6rem;
	color: #9a2420;
	color: var(--collection-color, var(--accent-primary));
	flex-shrink: 0;
	line-height: 1;
	padding-top: 0.1rem;
}

.collection-index-card-icon i {
	display: inline-block;
	transition: transform 0.2s ease;
}

a.collection-index-card:hover .collection-index-card-icon i {
	transform: rotate(-10deg) scale(1.1);
}

.collection-index-card-image {
	position: relative;
	overflow: hidden;
	padding-bottom: 56.25%;
	height: 0;
	margin: 0;
}

.collection-index-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	margin: 0;
}

a.collection-index-card:hover .collection-index-card-image img {
	transform: scale(1.05);
}

.collection-index-card-title {
	font-size: 1.2rem;
	font-weight: 900;
	color: #3c3836;
	color: var(--fg);
	margin: 0;
	font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}

.collection-index-card-description {
	font-size: 0.875rem;
	color: #665c54;
	color: var(--fg);
	line-height: 1.5;
	margin: 0 0 0.85rem 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

.collection-index-card-meta {
	font-size: 0.85rem;
	color: #076678;
	color: var(--accent-secondary);
	font-weight: 600;
}

/* Post card grid */
.post-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 1.5rem 0;
}

a.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #f2e5bc;
	background: var(--panel);
	border: 1px solid #7c6f64;
	border: 1px solid var(--border);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	content-visibility: auto;
	contain-intrinsic-size: 400px;
	/* Each card is a self-contained layout/paint unit; changes inside one
	   card (image load, hover transform) can't affect the size or position
	   of its siblings, so the browser can skip recalculating the rest of
	   the grid. */
	contain: layout paint style;
}

a.post-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
	transform: translateY(-3px);
	text-decoration: none;
	color: inherit;
}

.post-card-image {
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	padding-bottom: 100%;
	height: 0;
	margin: 0;
}

.post-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	margin: 0;
}

.post-card:hover .post-card-image img {
	transform: scale(1.08);
}

.post-card-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: #665c54;
	color: var(--muted);
	opacity: 0.4;
}

.post-card-body {
	padding: 0.875rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.post-card-title {
	font-size: 0.6rem;
	font-weight: 900;
	line-height: 1.3;
	height: 3.9em;
	text-align: center;
	margin: 0;
	color: #3c3836;
	color: var(--fg);
	font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

.post-card:hover .post-card-title {
	color: #9a2420;
	color: var(--accent-primary);
}

.post-card-date {
	font-size: 0.775rem;
	color: #665c54;
	color: var(--nav-aqua);
	margin: 0;
}

.post-card-summary {
	font-size: 0.825rem;
	color: #665c54;
	color: var(--fg);
	font-style: italic;
	line-height: 1.45;
	margin: 0.1rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	line-clamp: 4;
	overflow: hidden;
}

.collection-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #665c54;
	color: var(--fg);
	font-style: italic;
}

/* Homepage separator */
.homepage-separator {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 0;
	margin: 1rem auto;
	position: relative;
	max-width: 70%;
}

.homepage-separator::before,
.homepage-separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, transparent, #7c6f64 20%, #7c6f64 80%, transparent);
	background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
	opacity: 0.5;
}

.separator-fleur {
	font-size: 2.5rem;
	color: #9a2420;
	color: var(--accent-primary);
	opacity: 0.6;
	margin: 0 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
	.post-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.collections-index-grid {
		grid-template-columns: 1fr;
	}

	.post-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.875rem;
	}

	.post-card-body {
		padding: 0.75rem;
	}

	.post-card-title {
		font-size: 0.9rem;
	}
}

@media (max-width: 380px) {
	.post-cards-grid {
		grid-template-columns: 1fr;
	}
}
