/*
Theme Name: Better Community Theme
Theme URI: https://better-community.com
Author: Better Community
Author URI: https://better-community.com
Description: A lightweight, community-first classic WordPress theme. Designed for Better Community plugin with circle.so-inspired layout, dark mode support, and full-width community pages.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bc-theme
Tags: wide-blocks, custom-colors, custom-logo, editor-style, one-column, two-columns, blog, custom-menu, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (replaces theme.json variable generation)
   ========================================================================== */

:root {
	/* Colors — Light mode defaults */
	--wp--preset--color--primary: #6366f1;
	--wp--preset--color--primary-hover: #4f46e5;
	--wp--preset--color--primary-subtle: rgba(99, 102, 241, 0.08);
	--wp--preset--color--background: #fafafa;
	--wp--preset--color--surface: #ffffff;
	--wp--preset--color--foreground: #18181b;
	--wp--preset--color--secondary-bg: #f4f4f5;
	--wp--preset--color--tertiary-bg: #e4e4e7;
	--wp--preset--color--border: rgba(0, 0, 0, 0.08);
	--wp--preset--color--border-strong: rgba(0, 0, 0, 0.15);
	--wp--preset--color--text-secondary: #71717a;
	--wp--preset--color--text-tertiary: #a1a1aa;
	--wp--preset--color--success: #10b981;
	--wp--preset--color--error: #ef4444;
	--wp--preset--color--warning: #f59e0b;

	/* Typography */
	--wp--preset--font-family--body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--wp--preset--font-family--heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--wp--preset--font-family--nav: var(--wp--preset--font-family--body);
	--wp--preset--font-family--mono: 'DM Mono', 'SF Mono', 'Fira Code', monospace;
	--wp--preset--font-size--x-small: 0.75rem;
	--wp--preset--font-size--small: 0.8125rem;
	--wp--preset--font-size--medium: 0.9375rem;
	--wp--preset--font-size--large: 1.125rem;
	--wp--preset--font-size--x-large: 1.5rem;
	--wp--preset--font-size--xx-large: 2.25rem;

	/* Spacing */
	--wp--preset--spacing--10: 0.25rem;
	--wp--preset--spacing--20: 0.5rem;
	--wp--preset--spacing--30: 0.75rem;
	--wp--preset--spacing--40: 1.25rem;
	--wp--preset--spacing--50: 2rem;
	--wp--preset--spacing--60: 3.5rem;
	--wp--preset--spacing--70: 5rem;

	/* Custom */
	--wp--custom--header-height: 56px;

	/* Base styles */
	color: var(--wp--preset--color--foreground);
	background-color: var(--wp--preset--color--background);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	letter-spacing: -0.011em;
}

/* Plugin font inheritance — override the plugin's hardcoded system font stack. */
.bc-app,
.bc-portal-root {
	font-family: var(--wp--preset--font-family--body);
}

/* Plugin code blocks — use theme mono font */
.bc-app code,
.bc-app pre,
.bc-portal-root code,
.bc-portal-root pre {
	font-family: var(--wp--preset--font-family--mono) !important;
}

/* ==========================================================================
   Base & Transitions
   ========================================================================== */

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin: 0;
}

body > .bc-container-wide,
body > .bc-site-layout {
	flex: 1;
	width: 100%;
}

::selection {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

html[data-bc-theme="dark"] {
	--wp--preset--color--background: #09090b;
	--wp--preset--color--surface: #18181b;
	--wp--preset--color--foreground: #fafafa;
	--wp--preset--color--primary: #818cf8;
	--wp--preset--color--primary-hover: #a5b4fc;
	--wp--preset--color--primary-subtle: rgba(129, 140, 248, 0.1);
	--wp--preset--color--secondary-bg: #202024;
	--wp--preset--color--tertiary-bg: #27272a;
	--wp--preset--color--warning: #fbbf24;
	--wp--preset--color--border: rgba(255, 255, 255, 0.08);
	--wp--preset--color--border-strong: rgba(255, 255, 255, 0.15);
	--wp--preset--color--text-secondary: #a1a1aa;
	--wp--preset--color--text-tertiary: #71717a;
	--wp--preset--color--success: #34d399;
	--wp--preset--color--error: #f87171;
	color-scheme: dark;
}

html[data-bc-theme="dark"] ::selection {
	background: var(--wp--preset--color--primary);
	color: #09090b;
}

/* ==========================================================================
   Tooltip (CSS-only, attribute-based)
   ========================================================================== */

[data-bc-tooltip] {
	position: relative;
}

[data-bc-tooltip]::after {
	content: attr(data-bc-tooltip);
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 10px;
	background: var(--wp--preset--color--foreground, #18181b);
	color: var(--wp--preset--color--background, #fff);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 10000;
}

[data-bc-tooltip]:hover::after,
[data-bc-tooltip]:focus-visible::after {
	opacity: 1;
}

[data-bc-tooltip=""]::after {
	display: none;
}

/* Position: top */
[data-bc-tooltip-pos="top"]::after {
	top: auto;
	bottom: calc(100% + 6px);
}

/* Dark mode */
html[data-bc-theme="dark"] [data-bc-tooltip]::after {
	background: var(--wp--preset--color--surface, #27272a);
	color: var(--wp--preset--color--foreground, #fafafa);
}

/* ==========================================================================
   Header — Frosted Glass
   ========================================================================== */

.bc-theme-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(12px)) {
	.bc-theme-header {
		background: rgba(255, 255, 255, 0.72);
		backdrop-filter: blur(12px) saturate(180%);
		-webkit-backdrop-filter: blur(12px) saturate(180%);
	}

	html[data-bc-theme="dark"] .bc-theme-header {
		background: rgba(9, 9, 11, 0.72);
	}
}

/* WordPress admin bar offset */
.admin-bar .bc-theme-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* When admin bar switches to absolute positioning (mobile ≤600px), header sits at top */
@media screen and (max-width: 600px) {
	.admin-bar .bc-theme-header {
		top: 0;
	}
}

/* ==========================================================================
   Header Layout
   ========================================================================== */

.bc-theme-header-inner {
	display: flex !important;
	align-items: center;
	gap: 24px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	height: var(--wp--custom--header-height);
}

.bc-theme-header-brand {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.bc-theme-header-brand .custom-logo-link img,
.bc-theme-header-brand .wp-block-site-logo img {
	display: block;
	border-radius: 8px;
	height: 32px;
	width: auto;
}

.bc-theme-header-nav {
	flex: 1;
	display: flex;
	min-width: 0;
	font-family: var(--wp--preset--font-family--nav);
}

/* Force single line — prevent nav from wrapping */
.bc-theme-header-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
}

.bc-theme-header-nav .wp-block-navigation-item {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Navigation link pills */
.bc-theme-header-nav .wp-block-navigation a {
	padding: 6px 12px;
	border-radius: 6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bc-theme-header-nav .wp-block-navigation a:hover {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Active nav link */
.bc-theme-header-nav .wp-block-navigation-item.current-menu-item > a {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.bc-theme-header-widgets {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline-start: auto;
}

.bc-theme-header-actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* ==========================================================================
   Navigation Dropdowns — Multilevel
   ========================================================================== */

/* Dropdown container */
.bc-theme-header-nav .wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
	            0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 6px;
	min-width: 200px;
	margin-top: 4px;
}

/* Dark mode dropdown */
html[data-bc-theme="dark"] .bc-theme-header-nav
  .wp-block-navigation:not(.has-background)
  .wp-block-navigation__submenu-container {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32),
	            0 1px 2px rgba(0, 0, 0, 0.16);
}

/* Override WP default submenu text color */
.bc-theme-header-nav .wp-block-navigation:not(.has-text-color)
  .wp-block-navigation__submenu-container {
	color: var(--wp--preset--color--foreground);
}

/* Dropdown item links */
.bc-theme-header-nav .wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
	transition: background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.bc-theme-header-nav .wp-block-navigation__submenu-container
  .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Active item in dropdown */
.bc-theme-header-nav .wp-block-navigation__submenu-container
  .wp-block-navigation-item.current-menu-item
  > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Submenu chevron icon */
.bc-theme-header-nav .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--text-tertiary);
	transition: color 0.15s ease;
}

.bc-theme-header-nav .has-child:hover > .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--primary);
}

/* Smooth open animation */
@media not (prefers-reduced-motion) {
	.bc-theme-header-nav .has-child .wp-block-navigation__submenu-container {
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
		transform: translateY(4px);
	}

	.bc-theme-header-nav .has-child:not(.open-on-click):hover
	  > .wp-block-navigation__submenu-container,
	.bc-theme-header-nav .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within
	  > .wp-block-navigation__submenu-container,
	.bc-theme-header-nav .has-child
	  .wp-block-navigation-submenu__toggle[aria-expanded="true"]
	  ~ .wp-block-navigation__submenu-container {
		transform: translateY(0);
	}

	/* Nested submenus slide from left */
	.bc-theme-header-nav .wp-block-navigation__submenu-container
	  .wp-block-navigation__submenu-container {
		transform: translateX(-4px);
	}

	.bc-theme-header-nav .wp-block-navigation__submenu-container
	  .has-child:not(.open-on-click):hover
	  > .wp-block-navigation__submenu-container,
	.bc-theme-header-nav .wp-block-navigation__submenu-container
	  .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within
	  > .wp-block-navigation__submenu-container {
		transform: translateX(0);
	}
}

/* Nested submenu positioning (level 3+) */
.bc-theme-header-nav .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container {
	top: 0;
	left: 100%;
}

/* Nested submenu spacing */
@media (min-width: 782px) {
	.bc-theme-header-nav .wp-block-navigation__submenu-container
	  .wp-block-navigation__submenu-container {
		margin-top: -6px;
		margin-left: 4px;
	}
}

/* Hover bridge: prevent dropdown close when mouse crosses gap */
.bc-theme-header-nav .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}

/* ==========================================================================
   Dark Mode Toggle — Animated
   ========================================================================== */

.bc-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	position: relative;
}

.bc-theme-toggle:hover {
	background: var(--wp--preset--color--secondary-bg);
}

.bc-theme-toggle:active {
	transform: scale(0.92);
}

.bc-theme-toggle svg {
	width: 18px;
	height: 18px;
	position: absolute;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 0.25s ease;
}

/* Default state (auto): show auto icon */
.bc-theme-toggle-sun,
.bc-theme-toggle-moon {
	transform: rotate(-90deg) scale(0);
	opacity: 0;
}

.bc-theme-toggle-auto {
	transform: rotate(0deg) scale(1);
	opacity: 1;
}

/* Light mode: show sun icon */
html[data-bc-theme-mode="light"] .bc-theme-toggle-sun {
	transform: rotate(0deg) scale(1);
	opacity: 1;
}

html[data-bc-theme-mode="light"] .bc-theme-toggle-moon,
html[data-bc-theme-mode="light"] .bc-theme-toggle-auto {
	transform: rotate(90deg) scale(0);
	opacity: 0;
}

/* Dark mode: show moon icon */
html[data-bc-theme-mode="dark"] .bc-theme-toggle-moon {
	transform: rotate(0deg) scale(1);
	opacity: 1;
}

html[data-bc-theme-mode="dark"] .bc-theme-toggle-sun,
html[data-bc-theme-mode="dark"] .bc-theme-toggle-auto {
	transform: rotate(90deg) scale(0);
	opacity: 0;
}

/* ==========================================================================
   Plugin Search Trigger — Header overrides
   ========================================================================== */

.bc-theme-header-widgets .bc-search-trigger-button.bc-search-trigger-button,
.bc-theme-header-nav .bc-search-trigger-button.bc-search-trigger-button {
	width: 34px !important;
	height: 34px !important;
	border-radius: 8px !important;
	color: var(--wp--preset--color--foreground) !important;
	background: transparent !important;
}

.bc-theme-header-widgets .bc-search-trigger-button.bc-search-trigger-button:hover,
.bc-theme-header-nav .bc-search-trigger-button.bc-search-trigger-button:hover {
	background: var(--wp--preset--color--secondary-bg) !important;
}

.bc-theme-header-widgets .bc-search-trigger-icon svg,
.bc-theme-header-nav .bc-search-trigger-icon svg {
	width: 18px !important;
	height: 18px !important;
}

/* ==========================================================================
   Font Size Toggle — Accessibility
   ========================================================================== */

.bc-font-size-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	position: relative;
	font-family: var(--wp--preset--font-family--body);
}

.bc-font-size-toggle:hover {
	background: var(--wp--preset--color--secondary-bg);
}

.bc-font-size-toggle:active {
	transform: scale(0.92);
}

.bc-font-size-toggle-icon {
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}

.bc-font-size-toggle-indicator {
	position: absolute;
	top: 4px;
	right: 3px;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s ease;
}

html[data-bc-font-size="large"] .bc-font-size-toggle-indicator-large {
	opacity: 1;
}

html[data-bc-font-size="small"] .bc-font-size-toggle-indicator-small {
	opacity: 1;
}

/* ==========================================================================
   Notification & Message Bells — match theme toggle sizing
   ========================================================================== */

.bc-theme-header-widgets .bc-widget-profile-guest {
	margin-inline-start: 6px;
}

.bc-theme-header-widgets .bc-notifications-bell-button.bc-notifications-bell-button,
.bc-theme-header-widgets .bc-messages-bell-button.bc-messages-bell-button {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bc-theme-header-widgets .bc-notifications-bell-button.bc-notifications-bell-button:hover,
.bc-theme-header-widgets .bc-messages-bell-button.bc-messages-bell-button:hover {
	background: var(--wp--preset--color--secondary-bg);
}

.bc-theme-header-widgets .bc-notifications-bell-button.bc-notifications-bell-button:active,
.bc-theme-header-widgets .bc-messages-bell-button.bc-messages-bell-button:active {
	transform: scale(0.92);
}

.bc-theme-header-widgets .bc-notifications-bell-icon svg,
.bc-theme-header-widgets .bc-messages-bell-icon svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Font Size Overrides — Visitor Accessibility
   ========================================================================== */

html[data-bc-font-size="large"] {
	--wp--preset--font-size--x-small: calc(0.75rem * 1.125);
	--wp--preset--font-size--small: calc(0.8125rem * 1.125);
	--wp--preset--font-size--medium: calc(0.9375rem * 1.125);
	--wp--preset--font-size--large: calc(1.125rem * 1.125);
	--wp--preset--font-size--x-large: calc(1.5rem * 1.125);
	--wp--preset--font-size--xx-large: calc(2.25rem * 1.125);

	/* Plugin font-size scale (×1.125) */
	--bc-font-size-3xs: calc(9px * 1.125);
	--bc-font-size-2xs: calc(10px * 1.125);
	--bc-font-size-xs:  calc(11px * 1.125);
	--bc-font-size-sm:  calc(12px * 1.125);
	--bc-font-size-md:  calc(13px * 1.125);
	--bc-font-size-base: calc(14px * 1.125);
	--bc-font-size-lg:  calc(15px * 1.125);
	--bc-font-size-xl:  calc(16px * 1.125);
	--bc-font-size-2xl: calc(18px * 1.125);
	--bc-font-size-3xl: calc(20px * 1.125);
	--bc-font-size-4xl: calc(24px * 1.125);
	--bc-font-size-5xl: calc(32px * 1.125);
}

html[data-bc-font-size="small"] {
	--wp--preset--font-size--x-small: calc(0.75rem * 0.875);
	--wp--preset--font-size--small: calc(0.8125rem * 0.875);
	--wp--preset--font-size--medium: calc(0.9375rem * 0.875);
	--wp--preset--font-size--large: calc(1.125rem * 0.875);
	--wp--preset--font-size--x-large: calc(1.5rem * 0.875);
	--wp--preset--font-size--xx-large: calc(2.25rem * 0.875);

	/* Plugin font-size scale (×0.875) */
	--bc-font-size-3xs: calc(9px * 0.875);
	--bc-font-size-2xs: calc(10px * 0.875);
	--bc-font-size-xs:  calc(11px * 0.875);
	--bc-font-size-sm:  calc(12px * 0.875);
	--bc-font-size-md:  calc(13px * 0.875);
	--bc-font-size-base: calc(14px * 0.875);
	--bc-font-size-lg:  calc(15px * 0.875);
	--bc-font-size-xl:  calc(16px * 0.875);
	--bc-font-size-2xl: calc(18px * 0.875);
	--bc-font-size-3xl: calc(20px * 0.875);
	--bc-font-size-4xl: calc(24px * 0.875);
	--bc-font-size-5xl: calc(32px * 0.875);
}

/* ==========================================================================
   Blog Post Cards (index, archive, search)
   ========================================================================== */

.bc-theme-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--40);
	transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-theme-post-card:hover {
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.bc-theme-post-card:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Scroll Bar Styling
   ========================================================================== */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--tertiary-bg);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--text-tertiary);
}

html[data-bc-theme="dark"] ::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--tertiary-bg);
}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--tertiary-bg) transparent;
}

/* ==========================================================================
   Focus Styles
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================================================
   Page Builder Compatibility
   ========================================================================== */

body.elementor-page .bc-theme-header {
	position: relative;
}

body.elementor-page .entry-content,
body.elementor-page .wp-block-post-content,
body.fl-builder .entry-content,
body.fl-builder .wp-block-post-content,
body.et_pb_pagebuilder_layout .entry-content,
body.et_pb_pagebuilder_layout .wp-block-post-content,
body.bricks-is-frontend .entry-content,
body.bricks-is-frontend .wp-block-post-content {
	padding: 0;
	margin: 0;
	max-width: none;
}

/* ==========================================================================
   Page Layout: content + optional sidebar
   ========================================================================== */

.bc-page-layout {
	display: flex;
	gap: var(--wp--preset--spacing--50);
}

.bc-page-layout > .bc-page-content {
	flex: 1;
	min-width: 0;
}

.bc-page-sidebar {
	width: 280px;
	flex-shrink: 0;
}

/* Hide sidebar when empty */
.bc-page-sidebar:empty {
	display: none;
}


@media screen and (max-width: 1024px) {
	.bc-page-layout {
		flex-direction: column;
	}

	.bc-page-sidebar {
		width: 100%;
		border-top: 1px solid var(--wp--preset--color--border);
		padding-top: var(--wp--preset--spacing--50);
	}
}

/* Left sidebar: on mobile, content still comes first */
@media screen and (max-width: 1024px) {
	.bc-sidebar-left .bc-page-layout {
		flex-direction: column;
	}
}

/* ==========================================================================
   Site Layout: side menu + main content
   ========================================================================== */

.bc-site-layout {
	display: flex;
	min-height: calc(100vh - var(--wp--custom--header-height));
}

.admin-bar .bc-site-layout {
	min-height: calc(100vh - var(--wp--custom--header-height) - var(--wp-admin--admin-bar--height, 32px));
}

.bc-site-content {
	flex: 1;
	min-width: 0;
	width: 0;
	display: flex;
	flex-direction: column;
	padding-bottom: 20px;
}

.bc-site-content > .bc-container-wide {
	flex: 1;
	max-width: none;
	width: 100%;
}


/* --- Side Menu --- */

.bc-side-menu {
	width: 260px;
	flex-shrink: 0;
	position: sticky;
	top: var(--wp--custom--header-height);
	height: calc(100vh - var(--wp--custom--header-height));
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--wp--preset--color--surface);
	border-inline-end: 1px solid var(--wp--preset--color--border);
	display: flex;
	flex-direction: column;
	z-index: 10;
	transition: width 0.2s ease;
}

@supports (backdrop-filter: blur(12px)) {
	.bc-side-menu {
		background: rgba(255, 255, 255, 0.72);
		backdrop-filter: blur(12px) saturate(180%);
		-webkit-backdrop-filter: blur(12px) saturate(180%);
	}

	html[data-bc-theme="dark"] .bc-side-menu {
		background: rgba(9, 9, 11, 0.72);
	}
}

.admin-bar .bc-side-menu {
	top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 32px));
	height: calc(100vh - var(--wp--custom--header-height) - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 600px) {
	.admin-bar .bc-side-menu {
		top: var(--wp--custom--header-height);
		height: calc(100vh - var(--wp--custom--header-height));
	}
}

.bc-side-menu-nav {
	flex: 1;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
}

.bc-side-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Side menu items */
.bc-side-menu-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
}

.bc-side-menu-item a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
}

.bc-side-menu-item.current-menu-item a {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-subtle, rgba(var(--wp--preset--color--primary), 0.08));
}

/* Side menu icons */
.bc-side-menu-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.bc-side-menu-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* Side menu labels */
.bc-side-menu-label {
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 0.15s ease;
}

/* Side menu badges */
.bc-side-menu-badge {
	margin-inline-start: auto;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 3px 6px;
	border-radius: 10px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	min-width: 18px;
	text-align: center;
	flex-shrink: 0;
	transition: opacity 0.15s ease;
}

.bc-side-menu-badge-hidden {
	display: none;
}

/* Side menu collapse toggle */
.bc-side-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 12px;
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	background: none;
	color: var(--wp--preset--color--text-secondary);
	cursor: pointer;
	transition: color 0.15s ease;
}

.bc-side-menu-toggle:hover {
	color: var(--wp--preset--color--foreground);
}

.bc-side-menu-toggle-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

/* --- Collapsed state --- */

[data-bc-side-menu="collapsed"] .bc-side-menu {
	width: 64px;
	overflow: visible;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-nav {
	padding: var(--wp--preset--spacing--20) 0;
}

[data-bc-side-menu="collapsed"] .bc-side-menu .bc-side-menu-label {
	display: none;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-badge {
	position: absolute;
	top: 2px;
	inset-inline-end: 2px;
	padding: 0;
	width: 8px;
	height: 8px;
	min-width: 8px;
	font-size: 0;
	border-radius: 50%;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-item a {
	justify-content: center;
	padding: 10px;
	position: relative;
	overflow: visible;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-toggle-icon {
	transform: rotate(180deg);
}

/* Tooltips: hide when expanded, show to the side when collapsed */
.bc-side-menu-item a[data-bc-tooltip]::after {
	display: none;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-item a[data-bc-tooltip]::after {
	display: block;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	margin-inline-start: 6px;
}

/* --- Section titles (items with # URL) --- */

.bc-side-menu-section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-secondary);
	white-space: nowrap;
	overflow: hidden;
}

.bc-side-menu-section-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.bc-side-menu-section-label .bc-side-menu-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.6;
}

.bc-side-menu-section-label .bc-side-menu-icon svg {
	width: 16px;
	height: 16px;
}

.bc-side-menu-section:first-child .bc-side-menu-section-label {
	padding-top: 0;
}

.bc-side-menu-section + .bc-side-menu-section .bc-side-menu-section-label,
.bc-side-menu-item + .bc-side-menu-section .bc-side-menu-section-label {
	margin-top: 0;
}

[data-bc-side-menu="collapsed"] .bc-side-menu .bc-side-menu-section-label .bc-side-menu-section-text {
	display: none;
}

[data-bc-side-menu="collapsed"] .bc-side-menu .bc-side-menu-section-label {
	justify-content: center;
	padding: 10px;
	border-radius: 8px;
	font-size: inherit;
	text-transform: none;
	letter-spacing: normal;
	color: var(--wp--preset--color--text-secondary);
}

[data-bc-side-menu="collapsed"] .bc-side-menu .bc-side-menu-section-label .bc-side-menu-icon {
	width: 22px;
	height: 22px;
	opacity: 1;
}

[data-bc-side-menu="collapsed"] .bc-side-menu .bc-side-menu-section-label .bc-side-menu-icon svg {
	width: 22px;
	height: 22px;
}

/* --- Submenus (expanded) --- */

.bc-side-menu-submenu {
	list-style: none;
	margin: 2px 0;
	padding: 0 0 0 16px;
	margin-inline-start: 5px;
}

.bc-side-menu-section > .bc-side-menu-submenu {
	padding: 0;
	margin-inline-start: 0;
}

.bc-side-menu-submenu .bc-side-menu-item a {
	padding: 7px 10px;
	font-size: 13px;
	gap: 8px;
}

.bc-side-menu-submenu .bc-side-menu-icon {
	width: 18px;
	height: 18px;
}

.bc-side-menu-submenu .bc-side-menu-icon svg {
	width: 18px;
	height: 18px;
}

/* --- Submenus (collapsed — flyout popup) --- */

[data-bc-side-menu="collapsed"] .bc-side-menu-submenu {
	display: none;
	position: absolute;
	inset-inline-start: 100%;
	top: 0;
	min-width: 180px;
	padding: 4px;
	margin: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-inline-start: none;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-submenu .bc-side-menu-item a {
	justify-content: flex-start;
	white-space: nowrap;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-submenu .bc-side-menu-label {
	display: inline;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-has-children {
	position: relative;
}

[data-bc-side-menu="collapsed"] .bc-side-menu-has-children:hover > .bc-side-menu-submenu,
[data-bc-side-menu="collapsed"] .bc-side-menu-has-children:focus-within > .bc-side-menu-submenu {
	display: block;
}

html[data-bc-theme="dark"] [data-bc-side-menu="collapsed"] .bc-side-menu-submenu {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- Side menu items reparented into hamburger panel --- */

.bc-theme-header-nav .bc-side-menu-nav {
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
}

.bc-theme-header-nav .bc-side-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bc-theme-header-nav .bc-side-menu-item a {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.bc-theme-header-nav .bc-side-menu-item a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
}

.bc-theme-header-nav .bc-side-menu-item.current-menu-item a {
	color: var(--wp--preset--color--primary);
}

/* Hide collapse toggle in hamburger panel */
.bc-theme-header-nav .bc-side-menu-toggle {
	display: none;
}

/* Hide badges in hamburger (header bells are visible) */
.bc-theme-header-nav .bc-side-menu-badge {
	display: none;
}

/* Submenus in hamburger panel — static indent */
.bc-theme-header-nav .bc-side-menu-submenu {
	list-style: none;
	padding: 0 0 0 var(--wp--preset--spacing--30);
	margin: 2px 0;
	border-inline-start: none;
	position: static;
	display: block;
	min-width: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.bc-theme-header-nav .bc-side-menu-label,
.bc-theme-header-nav .bc-side-menu-submenu .bc-side-menu-label {
	display: inline;
}

/* Normalize side-menu icon size in hamburger panel to 20px */
.bc-theme-header-nav .bc-side-menu-icon {
	width: 20px;
	height: 20px;
}

.bc-theme-header-nav .bc-side-menu-icon svg {
	width: 20px;
	height: 20px;
}

/* Hide tooltips in hamburger panel */
.bc-theme-header-nav .bc-side-menu-item a[data-bc-tooltip]::after {
	display: none !important;
}

/* Section/category titles: render as regular items in hamburger panel */
.bc-theme-header-nav .bc-side-menu-section-label {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
}

.bc-theme-header-nav .bc-side-menu-section-label .bc-side-menu-icon {
	width: 20px;
	height: 20px;
	opacity: 1;
}

.bc-theme-header-nav .bc-side-menu-section-label .bc-side-menu-icon svg {
	width: 20px;
	height: 20px;
}

/* --- Side menu generic widgets (non-navigation) --- */

.bc-side-menu-widget {
	padding: 12px var(--wp--preset--spacing--20);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.bc-side-menu-widget:last-of-type {
	border-bottom: none;
}

.bc-side-menu-widget-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 8px;
}

/* Hide non-navigation widgets when collapsed */
[data-bc-side-menu="collapsed"] .bc-side-menu-widget {
	display: none;
}

/* Hide generic side-menu widgets in hamburger panel (only nav gets reparented) */
.bc-theme-header-nav .bc-side-menu-widget {
	display: none;
}

/* --- Messages page: full-width / full-height when side menu is active --- */

.bc-messages-page.bc-has-side-menu .bc-site-layout {
	height: calc(100vh - var(--wp--custom--header-height));
	height: calc(100dvh - var(--wp--custom--header-height));
}

.admin-bar.bc-messages-page.bc-has-side-menu .bc-site-layout {
	height: calc(100vh - var(--wp--custom--header-height) - var(--wp-admin--admin-bar--height, 32px));
	height: calc(100dvh - var(--wp--custom--header-height) - var(--wp-admin--admin-bar--height, 32px));
}

.bc-messages-page.bc-has-side-menu .bc-site-content {
	min-height: 0;
	padding-bottom: 0;
}

.bc-messages-page.bc-has-side-menu .bc-site-content > .bc-container-wide {
	padding: 0;
	max-width: none;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.bc-messages-page.bc-has-side-menu .bc-page-layout {
	gap: 0;
	flex: 1;
	min-height: 0;
}

.bc-messages-page.bc-has-side-menu .bc-page-content {
	display: flex;
	flex-direction: column;
}

.bc-messages-page.bc-has-side-menu .bc-page-content > article {
	border-radius: 0;
	border: none;
	background: none;
	padding: 0;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.bc-messages-page.bc-has-side-menu .entry-content {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.bc-messages-page.bc-has-side-menu .entry-content > * {
	margin-bottom: 0;
}

.bc-messages-page.bc-has-side-menu .bc-app-root,
.bc-messages-page.bc-has-side-menu .bc-app {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.bc-messages-page.bc-has-side-menu .bc-messages {
	border: none;
	border-radius: 0;
	flex: 1;
	min-height: 100%;
	overflow: hidden;
	box-shadow: none;
}


/* ==========================================================================
   1. Content / Prose Styles
   ========================================================================== */

.entry-content,
.wp-block-post-content {
	line-height: 1.7;
}

.entry-content > *,
.wp-block-post-content > * {
	margin-bottom: var(--wp--preset--spacing--40);
}

.entry-content > *:last-child,
.wp-block-post-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--30);
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.wp-block-post-content h1:first-child,
.wp-block-post-content h2:first-child,
.wp-block-post-content h3:first-child {
	margin-top: 0;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-inline-start: var(--wp--preset--spacing--40);
}

.entry-content li,
.wp-block-post-content li {
	margin-bottom: var(--wp--preset--spacing--10);
}

.entry-content li > ul,
.entry-content li > ol,
.wp-block-post-content li > ul,
.wp-block-post-content li > ol {
	margin-top: var(--wp--preset--spacing--10);
}

/* Blockquote */
.entry-content blockquote,
.wp-block-post-content blockquote {
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin-inline-start: 0;
	margin-inline-end: 0;
	color: var(--wp--preset--color--text-secondary);
	font-style: italic;
}

.entry-content blockquote p:last-child,
.wp-block-post-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Tables */
.entry-content table,
.wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.entry-content th,
.wp-block-post-content th {
	background: var(--wp--preset--color--secondary-bg);
	font-weight: 600;
	text-align: start;
}

.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
}

/* Inline code */
.entry-content code,
.wp-block-post-content code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
	background: var(--wp--preset--color--secondary-bg);
	padding: 2px 6px;
	border-radius: 4px;
}

/* Code blocks */
.entry-content pre,
.wp-block-post-content pre {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--secondary-bg);
	padding: var(--wp--preset--spacing--40);
	border-radius: 12px;
	overflow-x: auto;
	line-height: 1.6;
}

html[data-bc-theme="dark"] .entry-content pre,
html[data-bc-theme="dark"] .wp-block-post-content pre {
	background: var(--wp--preset--color--tertiary-bg);
}

.entry-content pre code,
.wp-block-post-content pre code {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
}

/* Horizontal rule */
.entry-content hr,
.wp-block-post-content hr {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Images */
.entry-content img,
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Figures */
.entry-content figcaption,
.wp-block-post-content figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	text-align: center;
	margin-top: var(--wp--preset--spacing--20);
}

/* Definition lists */
.entry-content dt,
.wp-block-post-content dt {
	font-weight: 600;
}

.entry-content dd,
.wp-block-post-content dd {
	margin-inline-start: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   2. WordPress Block Styles
   ========================================================================== */

/* Buttons */
.wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
	border: none;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none;
}

.wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-hover);
	color: #fff;
	text-decoration: none;
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-subtle);
}

/* Columns */
.wp-block-columns {
	gap: var(--wp--preset--spacing--40);
}

/* Separator */
.wp-block-separator {
	border-color: var(--wp--preset--color--border);
	opacity: 1;
}

.wp-block-separator.is-style-wide {
	width: 100%;
}

.wp-block-separator.is-style-dots {
	border: none;
	text-align: center;
}

.wp-block-separator.is-style-dots::before {
	color: var(--wp--preset--color--text-tertiary);
}

/* Table block */
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-table th,
.wp-block-table td {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
}

.wp-block-table th {
	background: var(--wp--preset--color--secondary-bg);
	font-weight: 600;
	text-align: start;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--wp--preset--color--secondary-bg);
}

/* Quote block */
.wp-block-quote {
	border-inline-start: 3px solid var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin-inline-start: 0;
	margin-inline-end: 0;
	color: var(--wp--preset--color--text-secondary);
	font-style: italic;
}

.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-tertiary);
	font-style: normal;
	margin-top: var(--wp--preset--spacing--20);
}

/* Pullquote */
.wp-block-pullquote {
	border-top: 3px solid var(--wp--preset--color--foreground);
	border-bottom: 3px solid var(--wp--preset--color--foreground);
	padding: var(--wp--preset--spacing--40) 0;
	text-align: center;
}

.wp-block-pullquote blockquote {
	border: none;
	padding: 0;
	font-style: normal;
	color: var(--wp--preset--color--foreground);
}

.wp-block-pullquote blockquote p {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.4;
}

.wp-block-pullquote cite,
.wp-block-pullquote .wp-block-pullquote__citation {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
}

/* Code block */
.wp-block-code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--secondary-bg);
	padding: var(--wp--preset--spacing--40);
	border-radius: 12px;
	border: none;
	overflow-x: auto;
}

html[data-bc-theme="dark"] .wp-block-code {
	background: var(--wp--preset--color--tertiary-bg);
}

.wp-block-code code {
	background: none;
	padding: 0;
	font-size: inherit;
}

/* Search block */
.wp-block-search__input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 10px 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-search__input:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-subtle);
	outline: none;
}

.wp-block-search__button {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wp-block-search__button:hover {
	background: var(--wp--preset--color--primary-hover);
}

/* File block */
.wp-block-file a:not(.wp-block-file__button) {
	font-weight: 500;
}

.wp-block-file .wp-block-file__button {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	transition: background-color 0.15s ease;
}

.wp-block-file .wp-block-file__button:hover {
	background: var(--wp--preset--color--primary-hover);
}

/* Gallery */
.wp-block-gallery {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-gallery .wp-block-image img {
	border-radius: 8px;
}

/* Image block */
.wp-block-image img {
	border-radius: 8px;
}

.wp-block-image figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	text-align: center;
	margin-top: var(--wp--preset--spacing--20);
}

/* Cover block */
.wp-block-cover {
	border-radius: 12px;
	overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
	color: #fff;
}

/* Embed */
.wp-block-embed .wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	border-radius: 12px;
}

/* Calendar */
.wp-block-calendar table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-calendar th,
.wp-block-calendar td {
	padding: var(--wp--preset--spacing--20);
	text-align: center;
	border: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-calendar th {
	background: var(--wp--preset--color--secondary-bg);
	font-weight: 600;
}

.wp-block-calendar .wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	padding: var(--wp--preset--spacing--20) 0;
	font-size: var(--wp--preset--font-size--small);
}

/* Tag Cloud */
.wp-block-tag-cloud a {
	display: inline-block;
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--text-secondary);
	padding: 4px 12px;
	border-radius: 100px;
	font-size: var(--wp--preset--font-size--small) !important;
	margin: 0 4px 8px 0;
	transition: background-color 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.wp-block-tag-cloud a:hover {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* ==========================================================================
   3. Form Elements
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
textarea,
select {
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 8px;
	padding: 10px 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px var(--wp--preset--color--primary-subtle);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--text-tertiary);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-inline-end: 36px;
}

html[dir="rtl"] select {
	background-position: left 12px center;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--wp--preset--color--primary);
	width: auto;
}

label {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 4px;
	display: block;
}

fieldset {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
}

fieldset legend {
	font-weight: 600;
	padding: 0 var(--wp--preset--spacing--20);
}

button,
input[type="submit"],
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none;
}

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

button:disabled,
input[type="submit"]:disabled,
.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Don't style theme-specific, header widget, or reset buttons */
.bc-theme-toggle,
.bc-font-size-toggle,
.bc-theme-header-widgets button,
.bc-theme-header-actions button,
button[type="reset"] {
	background: transparent;
	color: inherit;
	padding: 0;
	border: none;
}

/* ==========================================================================
   4. WordPress Comments
   ========================================================================== */

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

.comment-list > .comment:first-child {
	padding-top: 0;
}

.comment-list .comment {
	padding: var(--wp--preset--spacing--40) 0;
}

.comment-list .comment + .comment {
	border-top: 1px solid var(--wp--preset--color--border);
}

.comment-body {
	padding-inline-start: calc(32px + var(--wp--preset--spacing--30));
	position: relative;
}

.comment-body .avatar {
	position: absolute;
	inset-inline-start: 0;
	top: 2px;
	border-radius: 50%;
	width: 32px;
	height: 32px;
}

.comment-meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--20);
}

.comment-meta .comment-author {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.comment-meta .comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-secondary);
}

.comment-metadata a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--wp--preset--color--primary);
}

.comment-content > p {
	margin-bottom: var(--wp--preset--spacing--20);
	line-height: 1.6;
}

.comment-content > p:last-of-type {
	margin-bottom: 0;
}

.reply {
	margin-top: var(--wp--preset--spacing--20);
}

.reply a {
	display: inline-flex;
	align-items: center;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	padding: 4px 12px;
	background: var(--wp--preset--color--secondary-bg);
	border-radius: 6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.reply a:hover {
	background: var(--wp--preset--color--tertiary-bg);
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

/* Post author badge */
.comment.bypostauthor > .comment-body .avatar {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}

.comment.bypostauthor > .comment-body .comment-author::after {
	content: 'Author';
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-subtle);
	padding: 2px 8px;
	border-radius: 4px;
	margin-inline-start: var(--wp--preset--spacing--20);
	vertical-align: middle;
}

/* Threaded comments */
.comment-list .children {
	list-style: none;
	padding-inline-start: var(--wp--preset--spacing--50);
	margin: 0;
	border-inline-start: 2px solid var(--wp--preset--color--border);
}

/* Comment form */
.comment-respond {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--border);
}

.comment-respond .comment-reply-title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--30);
}

.comment-respond .comment-reply-title small {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	margin-top: 4px;
}

.comment-respond .comment-reply-title small a {
	color: var(--wp--preset--color--text-secondary);
}

.comment-form p {
	margin-bottom: var(--wp--preset--spacing--30);
}

.comment-form label {
	margin-bottom: 6px;
}

.comment-form .form-submit {
	margin-bottom: 0;
}

.comment-form .logged-in-as {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
}

/* ==========================================================================
   5. Pagination
   ========================================================================== */

.pagination,
.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--50) 0;
	flex-wrap: wrap;
}

.page-numbers,
.nav-links a,
.nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.page-numbers:hover,
.nav-links a:hover {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.page-numbers.current,
.nav-links span.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.page-numbers.dots {
	background: none;
	cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
	font-weight: 500;
}

/* Comment pagination */
.comment-navigation .nav-links {
	justify-content: space-between;
}

/* ==========================================================================
   6. WordPress Search Form
   ========================================================================== */

.search-form {
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.search-form .search-field {
	flex: 1;
}

.search-form .search-submit {
	flex-shrink: 0;
}

/* ==========================================================================
   7. WooCommerce — Color Overrides
   ========================================================================== */

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.woocommerce-message {
	border-inline-start-color: var(--wp--preset--color--success);
}

.woocommerce-error {
	border-inline-start-color: var(--wp--preset--color--error);
}

.woocommerce-info {
	border-inline-start-color: var(--wp--preset--color--primary);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-breadcrumb a {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--primary);
}

/* Price */
.woocommerce del .woocommerce-Price-amount {
	color: var(--wp--preset--color--text-tertiary);
}

/* Sale badge */
.woocommerce .onsale {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Star rating */
.woocommerce .star-rating::before {
	color: var(--wp--preset--color--tertiary-bg);
}

.woocommerce .star-rating span::before {
	color: var(--wp--preset--color--primary);
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--wp--preset--color--primary-hover);
	color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	background: var(--wp--preset--color--primary-hover);
	color: #fff;
}

/* Quantity input */
.woocommerce .quantity .qty {
	border-color: var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
}

/* Product cards */
.woocommerce ul.products li.product {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.woocommerce ul.products li.product:hover {
	border-color: var(--wp--preset--color--border-strong);
}

.woocommerce ul.products li.product .button {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	background: transparent;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Pagination */
.woocommerce-pagination .page-numbers {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-pagination .page-numbers:hover {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--foreground);
}

.woocommerce-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* Ordering */
.woocommerce-ordering,
.woocommerce-result-count {
	color: var(--wp--preset--color--text-secondary);
}

/* Single product */
.woocommerce div.product .summary .woocommerce-product-details__short-description {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce div.product .summary .product_meta {
	color: var(--wp--preset--color--text-secondary);
	border-top-color: var(--wp--preset--color--border);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--foreground);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--primary);
	border-bottom-color: var(--wp--preset--color--primary);
}

/* Reviews */
.woocommerce #reviews .commentlist li {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce #reviews .commentlist .comment_container .meta {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce #reviews .commentlist .comment_container .meta strong {
	color: var(--wp--preset--color--foreground);
}

/* Cart */
.woocommerce-cart .shop_table {
	border-color: var(--wp--preset--color--border);
}

.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-cart .shop_table th {
	background: var(--wp--preset--color--secondary-bg);
}

.woocommerce-cart .shop_table .product-remove a {
	color: var(--wp--preset--color--text-tertiary);
}

.woocommerce-cart .shop_table .product-remove a:hover {
	color: var(--wp--preset--color--error);
}

.woocommerce-cart .cart_totals {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-cart .cart_totals th {
	color: var(--wp--preset--color--text-secondary);
}

/* Checkout */
.woocommerce-checkout .form-row .required {
	color: var(--wp--preset--color--error);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th {
	background: var(--wp--preset--color--secondary-bg);
}

.woocommerce-checkout #payment {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-checkout #payment ul.payment_methods li {
	border-color: var(--wp--preset--color--border);
}

.woocommerce-checkout #payment ul.payment_methods li .payment_box {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

/* My Account */
.woocommerce-MyAccount-navigation ul li a {
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--foreground);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
}

.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .woocommerce-orders-table td,
.woocommerce-MyAccount-content .shop_table th,
.woocommerce-MyAccount-content .shop_table td {
	border-bottom-color: var(--wp--preset--color--border);
}

.woocommerce-MyAccount-content .woocommerce-orders-table th,
.woocommerce-MyAccount-content .shop_table th {
	color: var(--wp--preset--color--text-secondary);
}

/* Addresses */
.woocommerce-Addresses .woocommerce-Address {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

.woocommerce-Addresses .woocommerce-Address address {
	color: var(--wp--preset--color--text-secondary);
}

/* Mini cart widget */
.widget_shopping_cart .product_list_widget li {
	border-bottom-color: var(--wp--preset--color--border);
}

.widget_shopping_cart .total {
	border-top-color: var(--wp--preset--color--border);
}

/* ==========================================================================
   8. Dark Mode — Content & WooCommerce Overrides
   ========================================================================== */

html[data-bc-theme="dark"] .bc-theme-post-card:hover {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

html[data-bc-theme="dark"] .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--wp--preset--color--tertiary-bg);
}

html[data-bc-theme="dark"] select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-bc-theme="dark"] .woocommerce-message {
	background: rgba(52, 211, 153, 0.06);
	border-color: transparent;
	border-inline-start-color: var(--wp--preset--color--success);
}

html[data-bc-theme="dark"] .woocommerce-error {
	background: rgba(248, 113, 113, 0.06);
	border-color: transparent;
	border-inline-start-color: var(--wp--preset--color--error);
}

html[data-bc-theme="dark"] .woocommerce-info {
	background: rgba(129, 140, 248, 0.06);
	border-color: transparent;
	border-inline-start-color: var(--wp--preset--color--primary);
}

html[data-bc-theme="dark"] .woocommerce ul.products li.product:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

html[data-bc-theme="dark"] .woocommerce-checkout #payment {
	background: var(--wp--preset--color--secondary-bg);
}

html[data-bc-theme="dark"] .woocommerce-cart .cart_totals {
	background: var(--wp--preset--color--secondary-bg);
}

html[data-bc-theme="dark"] .woocommerce-Addresses .woocommerce-Address {
	background: var(--wp--preset--color--secondary-bg);
}

html[data-bc-theme="dark"] .woocommerce-checkout .woocommerce-form-login,
html[data-bc-theme="dark"] .woocommerce-checkout .woocommerce-form-coupon {
	background: var(--wp--preset--color--secondary-bg);
}

html[data-bc-theme="dark"] .woocommerce-checkout #payment ul.payment_methods li .payment_box {
	background: var(--wp--preset--color--tertiary-bg);
}

/* ==========================================================================
   9. Plugin Compatibility
   ========================================================================== */

/* Contact Form 7 */
.wpcf7-form p {
	margin-bottom: var(--wp--preset--spacing--30);
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}

/* WPForms */
.wpforms-container .wpforms-field {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Gravity Forms */
.gform_wrapper .gfield {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Breadcrumb plugins (Yoast / RankMath) */
.yoast-breadcrumbs,
.rank-math-breadcrumb {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	margin-bottom: var(--wp--preset--spacing--40);
}

.yoast-breadcrumbs a,
.rank-math-breadcrumb a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
}

.yoast-breadcrumbs a:hover,
.rank-math-breadcrumb a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Responsive — Mobile (768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
	/* Page layout padding on mobile */
	.bc-page-layout {
		padding-left: var(--wp--preset--spacing--30) !important;
		padding-right: var(--wp--preset--spacing--30) !important;
	}

	.bc-messages-page .bc-page-layout {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Messages page: fill between header and bottom bar, no page scroll */
	.bc-messages-page {
		overflow: hidden;
	}

	.bc-messages-page.bc-has-bottom-bar {
		padding-bottom: 0;
	}

	.bc-messages-page .bc-messages {
		--bc-messages-offset: calc(var(--wp--custom--header-height, 56px) + var(--wp-admin--admin-bar--height, 0px) + var(--bc-bottom-bar-height, 0px));
		border: none;
		border-radius: 0;
		box-shadow: none;
	}

	/* Disable flex chain — let plugin viewport calc handle height */
	.bc-messages-page.bc-has-side-menu .bc-messages {
		flex: none;
		min-height: 0;
	}

	.bc-messages-page.bc-has-side-menu .bc-site-content {
		padding-bottom: 0;
	}

	.bc-site-content > .bc-container-wide {
		padding-inline: 0;
	}

	/* Header — tighter padding on mobile */
	.bc-theme-header-inner {
		padding: 0 16px;
	}

	.bc-theme-header-brand .bc-theme-header-site-name,
	.bc-theme-header-brand .wp-block-site-title {
		font-size: 0.9375rem;
	}

	/* Scroll lock when hamburger menu is open */
	body.bc-menu-open {
		overflow: hidden;
	}

	/* Single post article reduce padding */
	.single-post .bc-page-content > article {
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}

	/* Threaded comments reduce indent */
	.comment-list .children {
		padding-inline-start: var(--wp--preset--spacing--20);
	}

	/* Comments area reduce padding */
	.comments-area {
		padding: var(--wp--preset--spacing--40);
	}

	/* Smaller avatar gutter on mobile */
	.comment-body {
		padding-inline-start: calc(24px + var(--wp--preset--spacing--20));
	}

	.comment-body .avatar {
		width: 24px;
		height: 24px;
	}

	/* Post navigation stack on mobile */
	.post-navigation .nav-links {
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
	}

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

	.post-navigation {
		padding: var(--wp--preset--spacing--40);
	}

	/* Pagination */
	.pagination,
	.nav-links {
		gap: var(--wp--preset--spacing--10);
	}

	.page-numbers,
	.nav-links a,
	.nav-links span {
		min-width: 32px;
		height: 32px;
		padding: 0 8px;
		font-size: var(--wp--preset--font-size--x-small);
	}

}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	.bc-theme-header,
	.bc-theme-toggle,
	.bc-font-size-toggle,
	.bc-theme-header-widgets {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* ==========================================================================
   Classic Theme — Container Layout
   ========================================================================== */

.bc-container {
	max-width: 680px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
}

.bc-container-wide {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
	padding-top: 20px;
}

/* ==========================================================================
   Classic Theme — Site Name & Description (header brand)
   ========================================================================== */

.bc-theme-header-site-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bc-theme-header-site-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.bc-theme-header-site-name a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.bc-theme-header-site-name a:hover {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.bc-theme-header-site-description {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.625rem;
	font-weight: 400;
	color: var(--wp--preset--color--text-secondary);
	line-height: 1;
	letter-spacing: 0;
	opacity: 0.7;
}

/* ==========================================================================
   Classic Theme — Navigation Menu (wp_nav_menu)
   ========================================================================== */

.bc-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
	flex-wrap: nowrap;
	font-family: var(--wp--preset--font-family--nav);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: -0.006em;
}

.bc-nav-menu li {
	position: relative;
	flex-shrink: 0;
	white-space: nowrap;
}

.bc-nav-menu a {
	display: block;
	padding: 6px 12px;
	border-radius: 6px;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bc-nav-menu a:hover {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Active nav link */
.bc-nav-menu .current-menu-item > a,
.bc-nav-menu .current-menu-ancestor > a {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Dropdown container */
.bc-nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
	            0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 6px;
	min-width: 200px;
	margin-top: 4px;
	list-style: none;
}

html[data-bc-theme="dark"] .bc-nav-menu .sub-menu {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32),
	            0 1px 2px rgba(0, 0, 0, 0.16);
}

/* Show dropdown on hover */
.bc-nav-menu li:hover > .sub-menu,
.bc-nav-menu li:focus-within > .sub-menu {
	display: block;
}

/* Dropdown item links */
.bc-nav-menu .sub-menu a {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
}

.bc-nav-menu .sub-menu a:hover {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
}

/* Active item in dropdown */
.bc-nav-menu .sub-menu .current-menu-item > a {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

/* Nested submenu positioning (level 3+) */
.bc-nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-top: -6px;
	margin-left: 4px;
}

/* Hover bridge: prevent dropdown close when mouse crosses gap */
.bc-nav-menu li > .sub-menu::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	right: 0;
	height: 8px;
}

/* Smooth dropdown animation */
@media not (prefers-reduced-motion) {
	.bc-nav-menu .sub-menu {
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease;
		display: block;
		visibility: hidden;
	}

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

	.bc-nav-menu .sub-menu .sub-menu {
		transform: translateX(-4px);
	}

	.bc-nav-menu .sub-menu li:hover > .sub-menu,
	.bc-nav-menu .sub-menu li:focus-within > .sub-menu {
		transform: translateX(0);
	}
}

/* Menu item icons */
.bc-nav-menu .bc-has-icon > a {
	display: inline-flex;
	align-items: center;
}

.bc-nav-menu .bc-menu-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.bc-nav-menu .bc-menu-icon svg {
	width: 16px;
	height: 16px;
	margin-inline-end: 5px;
	flex-shrink: 0;
}

/* Icon-only: tighter padding, larger icon */
.bc-nav-menu .bc-menu-icon-only > a {
	padding: 6px 8px;
}
.bc-nav-menu .bc-menu-icon-only .bc-menu-icon svg {
	width: 18px;
	height: 18px;
	margin-inline-end: 0;
}

/* Dropdown items with icons */
.bc-nav-menu .sub-menu .bc-has-icon > a {
	display: inline-flex;
	align-items: center;
}
.bc-nav-menu .sub-menu .bc-menu-icon svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

/* Footer menu icons */
.bc-footer-menu .bc-has-icon > a {
	display: inline-flex;
	align-items: center;
}
.bc-footer-menu .bc-menu-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
.bc-footer-menu .bc-menu-icon svg {
	width: 13px;
	height: 13px;
	margin-inline-end: 4px;
}

/* ==========================================================================
   Classic Theme — Responsive Header (CSS breakpoints via Customizer)
   ========================================================================== */

/* Hamburger button — hidden by default, shown by Customizer media queries */
.bc-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--text-secondary);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bc-menu-toggle:hover {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--foreground);
}

.bc-menu-toggle svg {
	width: 20px;
	height: 20px;
}

/* --- Hamburger slide-in panel --- */

/* Animation-ready state: rendered off-screen instead of display:none */
.bc-theme-header-nav.bc-nav-ready {
	display: flex !important;
	flex-direction: column;
	position: fixed;
	bottom: 0;
	inset-inline-end: 0;
	width: 300px;
	max-width: 85vw;
	background: var(--wp--preset--color--surface);
	border-inline-start: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30);
	z-index: 998;
	overflow-y: auto;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
	            visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .bc-theme-header-nav.bc-nav-ready {
	transform: translateX(-100%);
}

.bc-theme-header-nav.bc-nav-open {
	transform: translateX(0) !important;
	visibility: visible;
}

@supports (backdrop-filter: blur(12px)) {
	.bc-theme-header-nav.bc-nav-open {
		background: rgba(255, 255, 255, 0.72);
		backdrop-filter: blur(12px) saturate(180%);
		-webkit-backdrop-filter: blur(12px) saturate(180%);
	}

	html[data-bc-theme="dark"] .bc-theme-header-nav.bc-nav-open {
		background: rgba(9, 9, 11, 0.72);
	}
}

/* Hamburger icon → X animation */
.bc-menu-toggle svg line {
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: 12px 12px;
}

body.bc-menu-open .bc-menu-toggle svg line:nth-child(1) {
	transform: rotate(45deg) translateY(6px);
}

body.bc-menu-open .bc-menu-toggle svg line:nth-child(2) {
	opacity: 0;
}

body.bc-menu-open .bc-menu-toggle svg line:nth-child(3) {
	transform: rotate(-45deg) translateY(-6px);
}



.bc-theme-header-nav.bc-nav-open .bc-nav-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	font-family: inherit;
	letter-spacing: normal;
}

/* Left-aligned links in slide-in panel — match side-menu item style */
.bc-theme-header-nav.bc-nav-open .bc-nav-menu a,
.bc-theme-header-nav.bc-nav-open .bc-nav-menu .bc-has-icon > a {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	background: none;
}

.bc-theme-header-nav.bc-nav-open .bc-nav-menu a:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
}

.bc-theme-header-nav.bc-nav-open .bc-nav-menu .current-menu-item > a,
.bc-theme-header-nav.bc-nav-open .bc-nav-menu .current-menu-ancestor > a {
	background: var(--wp--preset--color--primary-subtle);
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}

/* Icon sizing in slide-in panel — match side-menu 20px icons */
.bc-theme-header-nav.bc-nav-open .bc-nav-menu .bc-menu-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.bc-theme-header-nav.bc-nav-open .bc-nav-menu .bc-menu-icon svg {
	width: 20px;
	height: 20px;
	margin-inline-end: 0;
}

.bc-theme-header-nav.bc-nav-open .bc-nav-menu .bc-menu-icon-only > a {
	padding: 10px 16px;
}

.bc-theme-header-nav.bc-nav-open .bc-nav-menu .sub-menu {
	position: static;
	box-shadow: none;
	border: none;
	border-radius: 0;
	margin: 0;
	padding: 0 0 0 var(--wp--preset--spacing--30);
	min-width: 0;
	display: block;
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Reparented collapsible actions in slide-in panel */
.bc-theme-header-nav .bc-theme-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	padding-bottom: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */

/* Hidden by default — shown by Customizer breakpoint media query */
.bc-mobile-bottom-bar {
	--bc-bottom-bar-height: calc(52px + env(safe-area-inset-bottom, 0px));
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--bc-bottom-bar-height);
	z-index: 998;
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@supports (backdrop-filter: blur(12px)) {
	.bc-mobile-bottom-bar {
		background: rgba(255, 255, 255, 0.88);
		backdrop-filter: blur(12px) saturate(180%);
		-webkit-backdrop-filter: blur(12px) saturate(180%);
	}

	html[data-bc-theme="dark"] .bc-mobile-bottom-bar {
		background: rgba(9, 9, 11, 0.88);
	}
}

.bc-bottom-bar-menu {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bc-bottom-bar-item {
	flex: 1;
	min-width: 0;
}

.bc-bottom-bar-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 4px 6px;
	color: var(--wp--preset--color--text-tertiary);
	text-decoration: none;
	position: relative;
	transition: color 0.15s ease;
}

.bc-bottom-bar-item a:hover,
.bc-bottom-bar-item a:active {
	text-decoration: none;
}

/* Active item (managed by plugin SPA nav sync via .current-menu-item) */
.bc-bottom-bar-item.current-menu-item a {
	color: var(--wp--preset--color--primary);
}

/* Icon */
.bc-bottom-bar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	position: relative;
}

.bc-bottom-bar-icon svg {
	width: 22px;
	height: 22px;
}

/* Label */
.bc-bottom-bar-label {
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Badge counter */
.bc-bottom-bar-badge {
	position: absolute;
	top: 2px;
	right: 50%;
	transform: translateX(calc(50% + 10px));
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--wp--preset--color--error);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
}

.bc-bottom-bar-badge-hidden {
	display: none;
}

@media print {
	.bc-mobile-bottom-bar {
		display: none !important;
	}
}

/* ==========================================================================
   Classic Theme — Sidebar position (left)
   ========================================================================== */

.bc-sidebar-left .bc-page-layout {
	flex-direction: row-reverse;
}

.bc-sidebar-none .bc-page-sidebar {
	display: none;
}

/* ==========================================================================
   Classic Theme — Widget Base Styles
   ========================================================================== */

.widget {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

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

.widget-title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--text-secondary);
	margin-bottom: var(--wp--preset--spacing--30);
}

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

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	transition: color 0.15s ease;
}

.widget ul li a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Classic Theme — Footer
   ========================================================================== */

body:not(.bc-has-side-menu) > .bc-theme-footer {
	margin-top: var(--wp--preset--spacing--60);
}

.bc-theme-footer-inner {
	border-top: 1px solid var(--wp--preset--color--border);
	transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-theme-footer-inner > .bc-container-wide {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}

.bc-theme-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.bc-theme-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.bc-theme-footer-text {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-tertiary);
}

.bc-theme-footer-text a {
	color: var(--wp--preset--color--text-secondary);
}

/* Footer menu */
.bc-footer-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--wp--preset--spacing--30);
}

.bc-footer-menu a {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-tertiary);
	text-decoration: none;
	transition: color 0.15s ease;
}

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

/* ==========================================================================
   Global Link & Heading Defaults
   ========================================================================== */

a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--wp--preset--color--primary-hover);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--foreground);
	margin: 0 0 var(--wp--preset--spacing--30);
}

h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	letter-spacing: -0.035em;
}

h2 {
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: -0.03em;
}

h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   Accessibility — Skip Link & Screen Reader Text
   ========================================================================== */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	margin: 0;
	overflow: visible;
	padding: 10px 20px;
	position: fixed;
	top: 5px;
	left: 5px;
	z-index: 10000;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Post Cards — Title Links, Excerpt, Entry Header
   ========================================================================== */

.bc-theme-post-card .entry-header {
	margin-bottom: var(--wp--preset--spacing--20);
}

.bc-theme-post-card .entry-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0;
}

.bc-theme-post-card .entry-title a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.bc-theme-post-card .entry-title a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.entry-summary {
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.6;
}

.entry-summary p {
	margin: 0;
}

/* ==========================================================================
   Single Post — Article Card & Entry Header
   ========================================================================== */

.single-post .bc-page-content > article {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.entry-header {
	margin-bottom: var(--wp--preset--spacing--40);
}

.entry-header .entry-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
	margin-bottom: var(--wp--preset--spacing--20);
}

.single-post .entry-meta {
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: 0;
}

.entry-meta .sep {
	color: var(--wp--preset--color--text-tertiary);
}

/* ==========================================================================
   Post Navigation (prev/next links)
   ========================================================================== */

.post-navigation {
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	padding: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
	min-width: 0;
}

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

.post-navigation a {
	text-decoration: none;
	display: block;
}

.post-navigation a:hover {
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	margin-bottom: 4px;
}

.post-navigation .nav-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	transition: color 0.15s ease;
}

.post-navigation a:hover .nav-title {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Comments Area & Title
   ========================================================================== */

.comments-area {
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.comments-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: var(--wp--preset--spacing--40);
}

.no-comments {
	color: var(--wp--preset--color--text-secondary);
	font-style: italic;
	padding: var(--wp--preset--spacing--40) 0;
}

/* ==========================================================================
   Page Links (multi-page posts)
   ========================================================================== */

.page-links {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
}

.page-links a span,
.page-links > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
}

.page-links a span {
	color: var(--wp--preset--color--text-secondary);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.page-links a:hover span {
	background: var(--wp--preset--color--secondary-bg);
	color: var(--wp--preset--color--foreground);
}

.page-links > span.post-page-numbers {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* ==========================================================================
   No Results / Content-None
   ========================================================================== */

.no-results .page-content {
	color: var(--wp--preset--color--text-secondary);
}

.no-results .page-content p {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* ==========================================================================
   Classic Theme — Post Meta
   ========================================================================== */

.entry-meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--40);
}

.entry-meta a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--wp--preset--color--primary);
}

.entry-footer {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-secondary);
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--secondary-bg);
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.entry-footer a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.entry-footer a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Classic Theme — Archive / Search Headers
   ========================================================================== */

.page-header {
	margin-bottom: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}

.page-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--foreground);
	margin: 0;
}

.archive-description,
.taxonomy-description {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text-secondary);
	margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   Classic Theme — 404 Page
   ========================================================================== */

.error-404 {
	text-align: center;
	padding: var(--wp--preset--spacing--70) 0;
}

.error-404 .page-title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-bottom: var(--wp--preset--spacing--30);
}

.error-404 p {
	color: var(--wp--preset--color--text-secondary);
	margin-bottom: var(--wp--preset--spacing--50);
}

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