/*!
Theme Name: Doodee Journal
Theme URI: https://doodee.com/
Author: Doodee Team
Author URI: https://doodee.com/
Description: Современная журнальная тема с бесконечным скроллом, красивой сеткой постов и мощной типографикой. Создана для контента на первом месте.
Version: 2.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: doodee
Tags: blog, magazine, news, grid-layout, infinite-scroll, responsive-layout, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, full-width-template

Doodee Journal - современная тема для контента на первом месте.
Создана с Mobile First подходом, CSS Grid и современной типографикой.

Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
	- CSS Custom Properties
# Base
	- Typography
	- Elements  
	- Links
	- Forms
# Layout
	- Container
	- Grid System
	- Header
	- Main Content
	- Sidebar
	- Footer
# Components
	- Navigation
	- Post Cards
	- Post Content
	- Comments
	- Widgets
	- Media
	- Pagination
# Typography Enhancements
	- Content Typography
	- Headings
	- Quotes
	- Lists
# Utilities
	- Accessibility
	- Alignments
	- Responsive
	- Animations

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* CSS Custom Properties
--------------------------------------------- */
:root {
	/* Typography */
	--font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--font-secondary: Georgia, "Times New Roman", Times, serif;
	--font-mono: Monaco, "Lucida Sans Typewriter", "Lucida Typewriter", "Courier New", Courier, monospace;
	
	/* Font Sizes - Mobile First */
	--font-size-xs: 0.75rem;    /* 12px */
	--font-size-sm: 0.875rem;   /* 14px */
	--font-size-base: 1rem;     /* 16px */
	--font-size-lg: 1.125rem;   /* 18px */
	--font-size-xl: 1.25rem;    /* 20px */
	--font-size-2xl: 1.5rem;    /* 24px */
	--font-size-3xl: 1.875rem;  /* 30px */
	--font-size-4xl: 2.25rem;   /* 36px */
	--font-size-5xl: 3rem;      /* 48px */
	
	/* Colors */
	--color-primary: #2563eb;
	--color-primary-dark: #1d4ed8;
	--color-secondary: #64748b;
	--color-accent: #f59e0b;
	--color-success: #10b981;
	--color-error: #ef4444;
	--color-warning: #f59e0b;
	
	/* Text Colors */
	--color-text-primary: #111827;
	--color-text-secondary: #6b7280;
	--color-text-muted: #9ca3af;
	--color-text-inverse: #ffffff;
	
	/* Background Colors */
	--color-bg-primary: #ffffff;
	--color-bg-secondary: #f9fafb;
	--color-bg-muted: #f3f4f6;
	--color-bg-dark: #111827;
	
	/* Border Colors */
	--color-border-light: #e5e7eb;
	--color-border: #d1d5db;
	--color-border-dark: #9ca3af;
	
	/* Spacing - Mobile First */
	--space-xs: 0.25rem;   /* 4px */
	--space-sm: 0.5rem;    /* 8px */
	--space-md: 1rem;      /* 16px */
	--space-lg: 1.5rem;    /* 24px */
	--space-xl: 2rem;      /* 32px */
	--space-2xl: 3rem;     /* 48px */
	--space-3xl: 4rem;     /* 64px */
	--space-4xl: 6rem;     /* 96px */
	
	/* Layout */
	--container-max-width: 1200px;
	--container-padding: var(--space-md);
	--grid-gap: var(--space-lg);
	--sidebar-width: 300px;
	
	/* Border Radius */
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	
	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	
	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-base: 250ms ease;
	--transition-slow: 350ms ease;
	
	/* Z-index */
	--z-dropdown: 1000;
	--z-sticky: 1020;
	--z-fixed: 1030;
	--z-overlay: 1040;
	--z-modal: 1050;
}

/* Tablet */
@media (min-width: 768px) {
	:root {
		--font-size-base: 1.125rem;  /* 18px */
		--font-size-lg: 1.25rem;     /* 20px */
		--font-size-xl: 1.375rem;    /* 22px */
		--font-size-2xl: 1.625rem;   /* 26px */
		--font-size-3xl: 2.125rem;   /* 34px */
		--font-size-4xl: 2.625rem;   /* 42px */
		--font-size-5xl: 3.5rem;     /* 56px */
		
		--container-padding: var(--space-lg);
		--grid-gap: var(--space-xl);
	}
}

/* Desktop */
@media (min-width: 1024px) {
	:root {
		--container-padding: var(--space-xl);
		--grid-gap: var(--space-2xl);
	}
}

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */

/* Base Typography */
html {
	font-size: 16px; /* Base for rem calculations */
}

body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-text-primary);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Headings - Mobile First */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-primary);
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 var(--space-md) 0;
	letter-spacing: -0.02em;
}

h1 {
	font-size: var(--font-size-3xl);
	line-height: 1.1;
	margin-bottom: var(--space-lg);
}

h2 {
	font-size: var(--font-size-2xl);
	line-height: 1.2;
	margin-bottom: var(--space-md);
}

h3 {
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-md);
}

h4 {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-sm);
}

h5 {
	font-size: var(--font-size-base);
	margin-bottom: var(--space-sm);
}

h6 {
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-sm);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Desktop heading sizes */
@media (min-width: 1024px) {
	h1 {
		font-size: var(--font-size-5xl);
	}
	
	h2 {
		font-size: var(--font-size-4xl);
	}
	
	h3 {
		font-size: var(--font-size-2xl);
	}
}

/* Text Elements */
p {
	margin: 0 0 var(--space-lg) 0;
	line-height: 1.7;
}

p:last-child {
	margin-bottom: 0;
}

/* Lead paragraph */
.lead {
	font-size: var(--font-size-lg);
	line-height: 1.6;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-xl);
}

/* Text formatting */
strong, b {
	font-weight: 600;
}

em, i {
	font-style: italic;
}

small {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

/* Links */
a {
	color: var(--color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: var(--transition-fast);
}

a:hover,
a:focus {
	color: var(--color-primary-dark);
	text-decoration-thickness: 2px;
}

/* Code */
code,
kbd,
samp,
var {
	font-family: var(--font-mono);
	font-size: 0.875em;
	background: var(--color-bg-muted);
	padding: 0.2em 0.4em;
	border-radius: var(--radius-sm);
	color: var(--color-text-primary);
}

pre {
	background: var(--color-bg-muted);
	font-family: var(--font-mono);
	font-size: var(--font-size-sm);
	line-height: 1.6;
	margin: var(--space-lg) 0;
	max-width: 100%;
	overflow-x: auto;
	padding: var(--space-lg);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border-light);
}

pre code {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
}

/* Blockquotes */
blockquote {
	background: var(--color-bg-secondary);
	border-left: 4px solid var(--color-primary);
	margin: var(--space-xl) 0;
	padding: var(--space-lg) var(--space-xl);
	font-size: var(--font-size-lg);
	line-height: 1.6;
	font-style: italic;
	position: relative;
}

blockquote p {
	margin-bottom: var(--space-md);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	font-style: normal;
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	display: block;
	margin-top: var(--space-md);
}

blockquote cite:before {
	content: "— ";
}

/* Lists */
ul, ol {
	margin: 0 0 var(--space-lg) 0;
	padding-left: var(--space-lg);
}

li {
	margin-bottom: var(--space-sm);
	line-height: 1.6;
}

li:last-child {
	margin-bottom: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
	margin-bottom: 0;
	margin-top: var(--space-sm);
}

/* Definition Lists */
dl {
	margin: 0 0 var(--space-lg) 0;
}

dt {
	font-weight: 600;
	margin-bottom: var(--space-xs);
}

dd {
	margin: 0 0 var(--space-md) var(--space-md);
}

/* Other elements */
address {
	font-style: italic;
	margin: 0 0 var(--space-lg) 0;
}

abbr[title],
acronym[title] {
	border-bottom: 1px dotted var(--color-border-dark);
	cursor: help;
	text-decoration: none;
}

mark,
ins {
	background: #fff3cd;
	color: #856404;
	text-decoration: none;
	padding: 0.1em 0.2em;
	border-radius: var(--radius-sm);
}

del {
	color: var(--color-text-muted);
}

sub, sup {
	font-size: 0.75em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* Container */
.site {
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Content Area Layout */
.content-area {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--grid-gap);
	flex: 1;
}

/* Two column layout for larger screens */
@media (min-width: 1024px) {
	.content-area {
		grid-template-columns: 1fr var(--sidebar-width);
	}
	
	.site-main {
		min-width: 0; /* Prevents grid overflow */
	}
}

/* Grid System for Posts */
.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--grid-gap);
	margin-bottom: var(--space-2xl);
}

/* Responsive Grid - Mobile First */
@media (min-width: 640px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1280px) {
	.posts-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Full width layout option */
.full-width .content-area {
	grid-template-columns: 1fr;
	max-width: none;
}

.full-width .posts-grid {
	max-width: var(--container-max-width);
	margin: 0 auto var(--space-2xl);
}

/* Header Layout */
.site-header {
	background: var(--color-bg-primary);
	border-bottom: 1px solid var(--color-border-light);
	padding: var(--space-md) 0;
	position: sticky;
	top: 0;
	z-index: var(--z-sticky);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 var(--container-padding);
	position: relative;
}

/* Mobile Menu Toggle (Burger) */
.mobile-menu-toggle {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	order: 1;
}

.burger-line {
	width: 100%;
	height: 2px;
	background-color: var(--color-text-primary);
	transition: all 0.3s ease;
	border-radius: 2px;
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Site Branding */
.site-branding {
	order: 2;
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex: 1;
	justify-content: center;
}

.site-title {
	margin: 0;
	font-size: var(--font-size-lg);
	font-weight: 700;
}

.site-title a {
	color: var(--color-text-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.site-title a:hover {
	color: var(--color-primary);
}

.custom-logo-link {
	display: flex;
	align-items: center;
}

.custom-logo {
	height: 40px;
	width: auto;
}

/* Desktop Navigation */
.desktop-navigation {
	order: 3;
	display: none;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--space-lg);
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	color: var(--color-text-primary);
	text-decoration: none;
	font-weight: 500;
	padding: var(--space-sm) 0;
	transition: color var(--transition-fast);
	white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: var(--color-primary);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--color-primary);
}

/* Header Search */
.header-search {
	order: 4;
}

.search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-sm);
	border-radius: var(--border-radius);
	transition: all var(--transition-fast);
}

.search-toggle:hover {
	background: var(--color-bg-secondary);
}

.search-icon {
	width: 24px;
	height: 24px;
	color: var(--color-text-primary);
}

/* Mobile Menu */
.mobile-navigation {
	position: fixed;
	top: 0;
	left: -100%;
	width: 280px;
	height: 100vh;
	background: var(--color-bg-primary);
	z-index: var(--z-modal);
	transition: left 0.3s ease;
	overflow-y: auto;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
	left: 0;
}

.mobile-nav-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-lg);
	border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--color-text-primary);
}

.mobile-menu-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	border-radius: var(--border-radius);
}

.mobile-menu-close svg {
	width: 20px;
	height: 20px;
	color: var(--color-text-secondary);
}

.mobile-nav-menu {
	list-style: none;
	margin: 0;
	padding: var(--space-md) 0;
}

.mobile-nav-menu li {
	margin: 0;
}

.mobile-nav-menu a {
	display: block;
	padding: var(--space-md) var(--space-lg);
	color: var(--color-text-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all var(--transition-fast);
	border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
	background: var(--color-bg-secondary);
	color: var(--color-primary);
}

.mobile-nav-menu .current-menu-item > a,
.mobile-nav-menu .current_page_item > a {
	background: var(--color-bg-secondary);
	color: var(--color-primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: var(--z-overlay);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Search Overlay */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: var(--z-modal);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 20vh;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.search-overlay.active {
	opacity: 1;
	visibility: visible;
}

.search-container {
	background: var(--color-bg-primary);
	border-radius: var(--border-radius);
	padding: var(--space-xl);
	width: 90%;
	max-width: 600px;
	position: relative;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.search-form {
	display: flex;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}

.search-field {
	flex: 1;
	padding: var(--space-md);
	border: 2px solid var(--color-border-light);
	border-radius: var(--border-radius);
	font-size: var(--font-size-lg);
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
}

.search-field:focus {
	outline: none;
	border-color: var(--color-primary);
}

.search-submit {
	background: var(--color-primary);
	border: none;
	border-radius: var(--border-radius);
	padding: var(--space-md);
	cursor: pointer;
	transition: background var(--transition-fast);
}

.search-submit:hover {
	background: var(--color-primary-dark);
}

.search-submit svg {
	width: 20px;
	height: 20px;
	color: white;
}

.search-close {
	position: absolute;
	top: var(--space-md);
	right: var(--space-md);
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	border-radius: var(--border-radius);
}

.search-close svg {
	width: 20px;
	height: 20px;
	color: var(--color-text-secondary);
}

/* Desktop Styles */
@media (min-width: 768px) {
	.mobile-menu-toggle {
		display: none;
	}
	
	.site-branding {
		order: 1;
		flex: 0 0 auto;
		justify-content: flex-start;
	}
	
	.desktop-navigation {
		order: 2;
		display: block;
		flex: 1;
		margin-left: var(--space-xl);
	}
	
	.header-search {
		order: 3;
		margin-left: var(--space-lg);
	}
}

.site-title {
	margin: 0;
	font-size: var(--font-size-xl);
	font-weight: 700;
}

.site-title a {
	color: var(--color-text-primary);
	text-decoration: none;
}

.site-description {
	margin: 0;
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

/* Main Content */
.site-main {
	padding: var(--space-xl) 0;
}

/* Sidebar */
.widget-area {
	padding: var(--space-xl) 0;
}

/* Floating Sidebar */
@media (min-width: 1024px) {
	.widget-area {
		position: sticky;
		top: calc(var(--space-4xl) + 100px);
		align-self: start;
		max-height: calc(100vh - var(--space-4xl) - 120px);
		overflow-y: auto;
	}
}

/* Footer */
.site-footer {
	background: var(--color-bg-secondary);
	border-top: 1px solid var(--color-border-light);
	padding: var(--space-2xl) 0;
	margin-top: auto;
}

.footer-content {
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	text-align: center;
}

/* Archive Header */
.page-header {
	text-align: center;
	margin-bottom: var(--space-2xl);
	padding: var(--space-2xl) 0;
	background: var(--color-bg-secondary);
	border-radius: var(--radius-lg);
}

.page-title {
	margin: 0 0 var(--space-md) 0;
	font-size: var(--font-size-3xl);
}

.archive-description {
	font-size: var(--font-size-lg);
	color: var(--color-text-secondary);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Skip Links */
.skip-link {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.skip-link:focus {
	position: fixed;
	top: var(--space-md);
	left: var(--space-md);
	background: var(--color-primary);
	color: var(--color-text-inverse);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	text-decoration: none;
	z-index: var(--z-modal);
	font-weight: 600;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

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

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Post Cards
--------------------------------------------- */
.post-card {
	background: var(--color-bg-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: var(--transition-base);
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--color-border-light);
}

.post-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

/* Card Thumbnail */
.post-card .entry-thumbnail {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.post-card .entry-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition-base);
}

.post-card:hover .entry-thumbnail img {
	transform: scale(1.05);
}

/* Card Content */
.post-card .entry-header,
.post-card .entry-content,
.post-card .entry-footer {
	padding: 0 var(--space-lg);
}

.post-card .entry-header {
	padding-top: var(--space-lg);
}

.post-card .entry-footer {
	padding-bottom: var(--space-lg);
	margin-top: auto;
}

/* Categories */
.entry-categories {
	margin-bottom: var(--space-sm);
}

.entry-categories a {
	color:#fff;
}

.entry-categories a:visited {
	color:#fff;
}

.category-link {
	display: inline-block;
	background: var(--color-primary);
	color: var(--color-text-inverse);
	text-decoration: none;
	font-size: var(--font-size-xs);
	font-weight: 600;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	margin-right: var(--space-xs);
	margin-bottom: var(--space-xs);
	transition: var(--transition-fast);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.category-link:hover {
	background: var(--color-primary-dark);
	color: var(--color-text-inverse);
	text-decoration: none;
}

/* Card Title */
.post-card .entry-title {
	font-size: var(--font-size-lg);
	line-height: 1.3;
	margin: 0 0 var(--space-sm) 0;
}

.post-card .entry-title a {
	color: var(--color-text-primary);
	text-decoration: none;
	transition: var(--transition-fast);
}

.post-card .entry-title a:hover {
	color: var(--color-primary);
}

/* Card Meta */
.post-card .entry-meta {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-bottom: var(--space-md);
	display: flex;
	gap: var(--space-md);
	flex-wrap: wrap;
}

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

.post-card .entry-meta a:hover {
	color: var(--color-primary);
}

.post-card .entry-meta .published:before {
	content: "📅 ";
	margin-right: var(--space-xs);
}

.post-card .entry-meta .byline:before {
	content: "👤 ";
	margin-right: var(--space-xs);
}

.post-card .entry-meta .comments-link:before {
	content: "💬 ";
	margin-right: var(--space-xs);
}

/* Card Content */
.post-card .entry-content {
	font-size: var(--font-size-sm);
	line-height: 1.6;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-md);
	flex: 1;
}

.post-card .entry-content p {
	margin: 0;
}

/* Read More Button */
.read-more {
	display: inline-flex;
	align-items: center;
	background: var(--color-primary);
	color: var(--color-text-inverse);
	text-decoration: none;
	font-size: var(--font-size-sm);
	font-weight: 600;
	padding: var(--space-sm) var(--space-lg);
	border-radius: var(--radius-md);
	transition: var(--transition-fast);
	margin-bottom: var(--space-md);
}

.read-more:hover {
	background: var(--color-primary-dark);
	color: var(--color-text-inverse);
	text-decoration: none;
	transform: translateX(2px);
}

.read-more:after {
	content: " →";
	margin-left: var(--space-xs);
	transition: var(--transition-fast);
}

.read-more:hover:after {
	transform: translateX(2px);
}

/* Tags */
.entry-tags {
	display: flex;
	gap: var(--space-xs);
	flex-wrap: wrap;
}

.tag-link {
	background: var(--color-bg-muted);
	color: var(--color-text-secondary);
	text-decoration: none;
	font-size: var(--font-size-xs);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	transition: var(--transition-fast);
}

.tag-link:hover {
	background: var(--color-border);
	color: var(--color-text-primary);
	text-decoration: none;
}

.tag-link:before {
	content: "#";
	opacity: 0.7;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

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

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Стили для блоков кода */
pre {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin-bottom: 20px;
}

code {
  background-color: #f1f1f1;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Стили для SQL кода */
.language-sql {
  color: #0066cc;
}

/* Стили для PHP кода */
.language-php {
  color: #6a0dad;
}

/* Стили для JavaScript кода */
.language-javascript {
  color: #c7681a;
}

/*--------------------------------------------------------------
# Infinite Scroll & Loading States
--------------------------------------------------------------*/

/* Loading Indicator */
.loading-indicator {
	text-align: center;
	padding: var(--space-2xl) 0;
	color: var(--color-text-secondary);
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--color-border-light);
	border-top: 3px solid var(--color-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto var(--space-md);
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error State */
.infinite-scroll-error {
	text-align: center;
	padding: var(--space-xl);
	background: var(--color-bg-muted);
	border-radius: var(--radius-md);
	margin: var(--space-lg) 0;
}

.infinite-scroll-error button {
	background: var(--color-primary);
	color: var(--color-text-inverse);
	border: none;
	padding: var(--space-sm) var(--space-lg);
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	transition: var(--transition-fast);
}

.infinite-scroll-error button:hover {
	background: var(--color-primary-dark);
}

/* Pagination Hidden State */
.pagination-wrapper {
	display: none;
}

/* Show pagination if JS is disabled */
.no-js .pagination-wrapper {
	display: block;
	text-align: center;
	margin: var(--space-2xl) 0;
}

/* Next Post Loading Styles */
.next-post-loading {
	text-align: center;
	padding: var(--space-2xl) 0;
	color: var(--color-text-secondary);
}

.post-separator {
	display: flex;
	align-items: center;
	margin: var(--space-4xl) 0;
	text-align: center;
}

.separator-line {
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

.separator-text {
	padding: 0 var(--space-lg);
	background: var(--color-bg-primary);
	color: var(--color-text-secondary);
	font-size: var(--font-size-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.loaded-post {
	border-top: 2px solid var(--color-border-light);
	padding-top: var(--space-2xl);
	margin-top: var(--space-2xl);
}

.end-of-posts-message {
	text-align: center;
	padding: var(--space-4xl) var(--space-lg);
	background: var(--color-bg-secondary);
	border-radius: var(--radius-lg);
	margin: var(--space-2xl) 0;
}

.end-message-content h3 {
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-md);
	color: var(--color-text-primary);
}

.end-message-content p {
	color: var(--color-text-secondary);
	margin-bottom: var(--space-lg);
}

.back-to-home {
	display: inline-block;
	background: var(--color-primary);
	color: var(--color-text-inverse);
	text-decoration: none;
	padding: var(--space-md) var(--space-xl);
	border-radius: var(--radius-md);
	font-weight: 600;
	transition: var(--transition-fast);
}

.back-to-home:hover {
	background: var(--color-primary-dark);
	color: var(--color-text-inverse);
	text-decoration: none;
	transform: translateY(-2px);
}

.next-post-error {
	background: var(--color-bg-muted);
	border-left: 4px solid var(--color-error);
	padding: var(--space-lg);
	margin: var(--space-lg) 0;
	border-radius: var(--radius-md);
}

.next-post-error button {
	background: var(--color-error);
	color: var(--color-text-inverse);
	border: none;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--font-size-sm);
	margin-left: var(--space-sm);
}

/* Single Post Specific Styles */
.single-post-content {
	max-width: 800px;
	margin: 0 auto;
}

.single-post-content .entry-content {
	font-size: var(--font-size-lg);
	line-height: 1.8;
}

.single-post-content .entry-header {
	text-align: center;
	margin-bottom: var(--space-2xl);
	padding-bottom: var(--space-xl);
	border-bottom: 1px solid var(--color-border-light);
}

.single-post-content .entry-title {
	font-size: var(--font-size-4xl);
	line-height: 1.2;
	margin-bottom: var(--space-lg);
}

.single-post-content .entry-meta {
	font-size: var(--font-size-base);
	color: var(--color-text-secondary);
	margin-bottom: var(--space-lg);
}

.single-post-content .post-thumbnail {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-xl);
}

/*--------------------------------------------------------------
# Post Content Enhancements
--------------------------------------------------------------*/

/* Article Content Styles */
.entry-content {
	color: var(--color-text-primary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: var(--space-2xl);
	margin-bottom: var(--space-lg);
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
	margin-top: 0;
}

/* Wide blocks */
.entry-content .alignwide {
	max-width: calc(100vw - 2 * var(--container-padding));
	margin-left: calc(50% - 50vw + var(--container-padding));
	margin-right: calc(50% - 50vw + var(--container-padding));
}

@media (min-width: 1024px) {
	.entry-content .alignwide {
		max-width: 1000px;
		margin-left: calc(50% - 500px);
		margin-right: calc(50% - 500px);
	}
}

/* Full width blocks */
.entry-content .alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Pull quotes */
.entry-content .wp-block-pullquote {
	border: none;
	background: var(--color-bg-secondary);
	padding: var(--space-2xl);
	margin: var(--space-2xl) 0;
	text-align: center;
	font-size: var(--font-size-xl);
	line-height: 1.4;
}

.entry-content .wp-block-pullquote blockquote {
	background: none;
	border: none;
	margin: 0;
	padding: 0;
	font-size: inherit;
}

/* Drop caps */
.entry-content .has-drop-cap:first-letter {
	float: left;
	font-size: 4em;
	line-height: 0.8;
	margin: 0.1em 0.1em 0 0;
	font-weight: 700;
	color: var(--color-primary);
}

/*--------------------------------------------------------------
# Widget Styles
--------------------------------------------------------------*/

.widget {
	margin-bottom: var(--space-2xl);
	background: var(--color-bg-primary);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
}

.widget-title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	margin-bottom: var(--space-lg);
	color: var(--color-text-primary);
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: var(--space-sm);
}

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

.widget li {
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border-light);
}

.widget li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.widget a {
	color: var(--color-text-primary);
	text-decoration: none;
	transition: var(--transition-fast);
}

.widget a:hover {
	color: var(--color-primary);
}

/*--------------------------------------------------------------
# Post Meta Information
--------------------------------------------------------------*/

.post-meta-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
	margin: var(--space-lg) 0;
	padding: var(--space-lg);
	background: var(--color-bg-secondary);
	border-radius: var(--border-radius);
	border: 1px solid var(--color-border-light);
}

.meta-item {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm);
	background: var(--color-bg-primary);
	border-radius: var(--border-radius-sm);
	transition: all var(--transition-fast);
}

.meta-item:hover {
	background: rgba(var(--color-primary-rgb), 0.05);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meta-icon {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	flex-shrink: 0;
}

.meta-label {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: max-content;
}

.meta-value {
	font-size: var(--font-size-base);
	color: var(--color-text-primary);
	font-weight: 600;
	margin-left: auto;
}

/* Desktop: 4 columns in one row */
@media (min-width: 768px) {
	.post-meta-info {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-sm);
	}
	
	.meta-item {
		flex-direction: column;
		text-align: center;
		padding: var(--space-md);
	}
	
	.meta-label {
		margin-bottom: var(--space-xs);
		order: 2;
	}
	
	.meta-value {
		margin-left: 0;
		order: 3;
	}
	
	.meta-icon {
		order: 1;
		width: 24px;
		height: 24px;
		margin-bottom: var(--space-xs);
	}
}

/* Large desktop optimizations */
@media (min-width: 1024px) {
	.post-meta-info {
		padding: var(--space-xl);
	}
	
	.meta-item {
		padding: var(--space-lg);
	}
	
	.meta-icon {
		width: 28px;
		height: 28px;
	}
	
	.meta-label {
		font-size: var(--font-size-xs);
	}
	
	.meta-value {
		font-size: var(--font-size-lg);
	}
}

/* Individual meta item styling */
.meta-author .meta-icon {
	color: var(--color-secondary);
}

.meta-reading-time .meta-icon {
	color: var(--color-primary);
}

.meta-views .meta-icon {
	color: #10b981; /* Green for views */
}

.meta-date .meta-icon {
	color: #f59e0b; /* Orange for date */
}

/* Animation for counting up views */
.meta-views .meta-value {
	transition: all var(--transition-fast);
}

.meta-views:hover .meta-value {
	transform: scale(1.05);
}

/*--------------------------------------------------------------
# Responsive Utilities
--------------------------------------------------------------*/

/* Show/hide elements based on screen size */
.mobile-only {
	display: block;
}

.tablet-up {
	display: none;
}

.desktop-only {
	display: none;
}

@media (min-width: 768px) {
	.mobile-only {
		display: none;
	}
	
	.tablet-up {
		display: block;
	}
}

@media (min-width: 1024px) {
	.desktop-only {
		display: block;
	}
}

/*--------------------------------------------------------------
# Comment Form Accordion
--------------------------------------------------------------*/

.comment-form-accordion {
	margin: var(--space-xl) 0;
	border-top: 2px solid var(--color-border-light);
	padding-top: var(--space-lg);
}

.comment-form-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--space-md) var(--space-lg);
	background: var(--color-bg-secondary);
	border: 2px solid var(--color-border-light);
	border-radius: var(--border-radius);
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--color-text-primary);
	cursor: pointer;
	transition: all var(--transition-medium);
	position: relative;
	overflow: hidden;
}

.comment-form-toggle::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left var(--transition-medium);
}

.comment-form-toggle:hover {
	border-color: var(--color-primary);
	background: var(--color-bg-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.comment-form-toggle:hover::before {
	left: 100%;
}

.comment-form-toggle:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.comment-form-toggle:active {
	transform: translateY(0);
}

.toggle-text {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.toggle-icon {
	width: 24px;
	height: 24px;
	transition: transform var(--transition-medium);
	flex-shrink: 0;
	margin-left: var(--space-sm);
}

.toggle-icon.rotated {
	transform: rotate(180deg);
}

.comment-form-container {
	overflow: hidden;
	transition: all var(--transition-medium) ease-in-out;
	background: var(--color-bg-light);
	border-radius: 0 0 var(--border-radius) var(--border-radius);
	border: 2px solid var(--color-border-light);
	border-top: none;
	margin-top: -2px;
}

.comment-form-container.open {
	border-color: var(--color-primary);
}

/* Style the WordPress comment form inside accordion */
.comment-form-container .comment-respond {
	padding: var(--space-lg);
	margin: 0;
}

.comment-form-container .comment-reply-title {
	display: none; /* Hide the default title since we have our own button */
}

.comment-form-container .comment-form {
	margin: 0;
}

.comment-form-container .comment-form p {
	margin-bottom: var(--space-md);
}

.comment-form-container .comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: var(--space-xs);
	color: var(--color-text-primary);
}

.comment-form-container .comment-form input[type="text"],
.comment-form-container .comment-form input[type="email"],
.comment-form-container .comment-form input[type="url"],
.comment-form-container .comment-form textarea {
	width: 100%;
	padding: var(--space-sm);
	border: 2px solid var(--color-border-light);
	border-radius: var(--border-radius);
	font-size: var(--font-size-base);
	transition: border-color var(--transition-fast);
	background: var(--color-bg-primary);
}

.comment-form-container .comment-form input[type="text"]:focus,
.comment-form-container .comment-form input[type="email"]:focus,
.comment-form-container .comment-form input[type="url"]:focus,
.comment-form-container .comment-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form-container .comment-form textarea {
	resize: vertical;
	min-height: 120px;
}

.comment-form-container .form-submit {
	margin-top: var(--space-lg);
}

.comment-form-container .form-submit .submit {
	background: var(--color-primary);
	color: white;
	border: none;
	padding: var(--space-md) var(--space-xl);
	border-radius: var(--border-radius);
	font-weight: 600;
	font-size: var(--font-size-base);
	cursor: pointer;
	transition: all var(--transition-fast);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.comment-form-container .form-submit .submit:hover {
	background: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.comment-form-container .form-submit .submit:active {
	transform: translateY(0);
}

.comment-form-container .comment-notes {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	background: var(--color-bg-secondary);
	padding: var(--space-sm);
	border-radius: var(--border-radius);
	border-left: 4px solid var(--color-primary);
}

.comment-form-container .required {
	color: #ef4444;
}

/* Mobile adjustments */
@media (max-width: 767px) {
	.comment-form-toggle {
		padding: var(--space-sm) var(--space-md);
		font-size: var(--font-size-base);
	}
	
	.comment-form-container .comment-respond {
		padding: var(--space-md);
	}
	
	.toggle-icon {
		width: 20px;
		height: 20px;
	}
}

/*--------------------------------------------------------------
# Star Rating System
--------------------------------------------------------------*/

.post-star-rating {
	margin: var(--space-xl) 0;
	padding: var(--space-lg);
	background: var(--color-bg-secondary);
	border: 2px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	text-align: center;
	transition: all var(--transition-base);
	position: relative;
}

.post-star-rating:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-md);
}

.rating-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--color-text-primary);
	margin-bottom: var(--space-md);
	letter-spacing: 0.02em;
}

.stars-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-xs);
	margin-bottom: var(--space-md);
	padding: var(--space-sm) 0;
}

.star {
	display: inline-block;
	width: 32px;
	height: 32px;
	cursor: pointer;
	transition: all var(--transition-fast);
	position: relative;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.star svg {
	width: 100%;
	height: 100%;
	fill: var(--color-border);
	transition: all var(--transition-fast);
}

/* Star states */
.star.inactive svg {
	fill: var(--color-border-light);
	stroke: var(--color-border);
	stroke-width: 1;
}

.star.active svg {
	fill: #fbbf24;
	stroke: #f59e0b;
	stroke-width: 1;
	transform: scale(1.05);
}

.star.half svg {
	fill: url(#half-star-gradient);
	stroke: #f59e0b;
	stroke-width: 1;
}

.star.user-rated svg {
	fill: #f59e0b;
	stroke: #d97706;
	stroke-width: 2;
}

/* Hover effects */
.post-star-rating:not(.user-rated):not(.submitting) .star:hover svg {
	fill: #fbbf24;
	stroke: #f59e0b;
	stroke-width: 1;
	transform: scale(1.1);
	filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.post-star-rating:not(.user-rated):not(.submitting) .star:hover ~ .star svg {
	fill: var(--color-border-light);
	stroke: var(--color-border);
	transform: scale(0.95);
}

/* Rating info */
.rating-info {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	font-weight: 500;
	margin-top: var(--space-sm);
}

/* Loading and submitted states */
.post-star-rating.submitting {
	opacity: 0.7;
	pointer-events: none;
}

.post-star-rating.user-rated {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-color: #f59e0b;
}

.post-star-rating.user-rated .rating-title {
	color: #92400e;
}

/* Messages */
.rating-message {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	font-size: var(--font-size-sm);
	font-weight: 500;
	white-space: nowrap;
	z-index: var(--z-dropdown);
	animation: fadeInUp 0.3s ease;
}

.rating-message-success {
	background: var(--color-success);
	color: white;
}

.rating-message-error {
	background: var(--color-error);
	color: white;
}

.rating-message-warning {
	background: var(--color-warning);
	color: white;
}

.rating-message-loading {
	background: var(--color-text-secondary);
	color: white;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes starGlow {
	0%, 100% {
		filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0));
	}
	50% {
		filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
	}
}

.post-star-rating.user-rated .star.user-rated svg {
	animation: starGlow 2s ease-in-out;
}

/* SVG gradient definition for half stars */
.star-rating-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
	.post-star-rating {
		margin: var(--space-lg) 0;
		padding: var(--space-md);
	}
	
	.rating-title {
		font-size: var(--font-size-base);
		margin-bottom: var(--space-sm);
	}
	
	.star {
		width: 28px;
		height: 28px;
	}
	
	.stars-container {
		gap: 2px;
		margin-bottom: var(--space-sm);
	}
	
	.rating-info {
		font-size: var(--font-size-xs);
	}
	
	.rating-message {
		position: static;
		transform: none;
		margin: var(--space-sm) 0 0 0;
		text-align: center;
	}
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
	.star {
		width: 36px;
		height: 36px;
	}
}

/* Large screen enhancements */
@media (min-width: 1024px) {
	.star {
		width: 40px;
		height: 40px;
	}
	
	.stars-container {
		gap: var(--space-sm);
	}
}

/* High contrast and accessibility */
@media (prefers-contrast: high) {
	.star.active svg,
	.star.user-rated svg {
		stroke-width: 3;
	}
	
	.post-star-rating {
		border-width: 3px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.star,
	.star svg,
	.post-star-rating,
	.rating-message {
		transition: none;
		animation: none;
	}
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
	.post-star-rating {
		background: rgba(55, 65, 81, 0.5);
		border-color: rgba(107, 114, 128, 0.3);
	}
	
	.post-star-rating.user-rated {
		background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
	}
	
	.rating-title {
		color: rgba(255, 255, 255, 0.9);
	}
	
	.rating-info {
		color: rgba(255, 255, 255, 0.7);
	}
}

/*--------------------------------------------------------------
# Post Author Information
--------------------------------------------------------------*/

.post-author-info {
	margin: var(--space-xl) 0;
	padding: var(--space-lg);
	background: var(--color-bg-secondary);
	border: 2px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: flex-start;
	gap: var(--space-lg);
	transition: all var(--transition-base);
	position: relative;
}

.post-author-info:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-md);
}

.author-avatar-container {
	flex-shrink: 0;
}

.author-avatar-container .author-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid var(--color-border-light);
	transition: all var(--transition-base);
}

.post-author-info:hover .author-avatar {
	border-color: var(--color-primary);
	transform: scale(1.05);
}

.author-details {
	flex: 1;
	min-width: 0;
}

.author-name-title {
	margin-bottom: var(--space-sm);
	font-size: var(--font-size-lg);
	line-height: 1.3;
}

.author-name-link {
	color: var(--color-text-primary);
	text-decoration: none;
	font-weight: 700;
	font-size: var(--font-size-lg);
	transition: color var(--transition-fast);
}

.author-name-link:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.author-title {
	color: var(--color-text-secondary);
	font-weight: 500;
	font-size: var(--font-size-base);
}

.author-description {
	color: var(--color-text-secondary);
	font-size: var(--font-size-base);
	line-height: 1.6;
	margin-top: var(--space-sm);
}

.author-description p {
	margin: 0;
}

.author-description p + p {
	margin-top: var(--space-sm);
}

/* Mobile responsiveness */
@media (max-width: 767px) {
	.post-author-info {
		margin: var(--space-lg) 0;
		padding: var(--space-md);
		gap: var(--space-md);
		flex-direction: column;
		text-align: center;
	}
	
	.author-avatar-container {
		align-self: center;
	}
	
	.author-avatar-container .author-avatar {
		width: 60px;
		height: 60px;
	}
	
	.author-name-title {
		font-size: var(--font-size-base);
		margin-bottom: var(--space-xs);
	}
	
	.author-name-link {
		font-size: var(--font-size-base);
	}
	
	.author-description {
		font-size: var(--font-size-sm);
	}
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
	.post-author-info {
		gap: var(--space-md);
	}
	
	.author-avatar-container .author-avatar {
		width: 70px;
		height: 70px;
	}
}

/* Large screen enhancements */
@media (min-width: 1024px) {
	.post-author-info {
		padding: var(--space-xl);
		gap: var(--space-xl);
	}
	
	.author-avatar-container .author-avatar {
		width: 90px;
		height: 90px;
	}
	
	.author-name-title {
		font-size: var(--font-size-xl);
	}
	
	.author-name-link {
		font-size: var(--font-size-xl);
	}
}

/* High contrast and accessibility */
@media (prefers-contrast: high) {
	.post-author-info {
		border-width: 3px;
	}
	
	.author-avatar {
		border-width: 4px !important;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.post-author-info,
	.author-avatar {
		transition: none;
	}
	
	.post-author-info:hover .author-avatar {
		transform: none;
	}
}

/* Dark mode support for author section */
@media (prefers-color-scheme: dark) {
	.post-author-info {
		background: rgba(55, 65, 81, 0.5);
		border-color: rgba(107, 114, 128, 0.3);
	}
	
	.author-name-link {
		color: rgba(255, 255, 255, 0.9);
	}
	
	.author-name-link:hover {
		color: var(--color-primary);
	}
	
	.author-title {
		color: rgba(255, 255, 255, 0.7);
	}
	
	.author-description {
		color: rgba(255, 255, 255, 0.8);
	}
	
	.author-avatar {
		border-color: rgba(107, 114, 128, 0.5) !important;
	}
	
	.post-author-info:hover .author-avatar {
		border-color: var(--color-primary) !important;
	}
}

/*--------------------------------------------------------------
# Taxonomy SEO & Breadcrumbs
--------------------------------------------------------------*/

/* Custom SEO H1 styling */
.custom-seo-h1 {
	color: var(--color-heading, #111827);
	font-weight: 700;
	margin-bottom: var(--space-md);
	line-height: 1.2;
}

.custom-seo-description {
	color: var(--color-text-secondary, #6b7280);
	font-size: var(--font-size-lg);
	line-height: 1.6;
	margin-top: var(--space-md);
}

/* Taxonomy breadcrumb */
.taxonomy-breadcrumb {
	margin-bottom: var(--space-lg);
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--font-size-sm);
}

.breadcrumb-item {
	display: flex;
	align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
	content: '/';
	margin: 0 var(--space-sm);
	color: var(--color-text-muted);
	font-weight: normal;
}

.breadcrumb-item a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition-fast);
}

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

.breadcrumb-item.active {
	color: var(--color-text-secondary);
	font-weight: 500;
}

/* Page header enhancements for taxonomy pages */
.page-header {
	margin-bottom: var(--space-2xl);
	padding-bottom: var(--space-lg);
}

.page-header .page-title {
	margin-bottom: var(--space-md);
}

.page-header .archive-description {
	max-width: 70ch;
}

.page-header .archive-description p {
	margin-bottom: var(--space-sm);
}

.page-header .archive-description p:last-child {
	margin-bottom: 0;
}



/* Mobile responsive */
@media (max-width: 767px) {
	.taxonomy-breadcrumb {
		margin-bottom: var(--space-md);
	}
	
	.breadcrumb-list {
		font-size: var(--font-size-xs);
	}
	
	.breadcrumb-item:not(:last-child)::after {
		margin: 0 var(--space-xs);
	}
	
	.page-header {
		margin-bottom: var(--space-xl);
	}
	
	.page-header .archive-description {
		max-width: 100%;
	}
	
	.custom-seo-h1 {
		font-size: var(--font-size-2xl);
		line-height: 1.3;
	}
	
	.custom-seo-description {
		font-size: var(--font-size-base);
	}
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
	.page-header .archive-description {
		max-width: 60ch;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.taxonomy-breadcrumb {
		border-color: rgba(107, 114, 128, 0.3);
	}
	
	.breadcrumb-item:not(:last-child)::after {
		color: rgba(255, 255, 255, 0.5);
	}
	
	.breadcrumb-item.active {
		color: rgba(255, 255, 255, 0.8);
	}
	
	.custom-seo-h1 {
		color:#000;
	}
	
	.custom-seo-description {
		color:#000;
	}
}

/*--------------------------------------------------------------
# Table of Contents
--------------------------------------------------------------*/

.table-of-contents {
	background: var(--color-bg-secondary, #f2f5f9);
	border: 1px solid var(--color-border-light, #f2f5f9);
	border-radius: var(--radius-lg, 8px);
	margin: var(--space-xl, 1.5rem) 0;
	padding: var(--space-lg, 1rem);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.table-of-contents__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md, 0.75rem);
	padding-bottom: var(--space-sm, 0.5rem);
	border-bottom: 1px solid var(--color-border-light, #e5e7eb);
}

.table-of-contents__title {
	font-size: var(--font-size-lg, 1.125rem);
	font-weight: 600;
	color: var(--color-heading, #111827);
	margin: 0;
	line-height: 1.4;
}

.table-of-contents__toggle {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: var(--space-xs, 0.25rem);
	padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
	border-radius: var(--radius-md, 6px);
	color: var(--color-text-secondary, #6b7280);
	font-size: var(--font-size-sm, 0.875rem);
	font-weight: 500;
	transition: all 0.2s ease;
}

.table-of-contents__toggle:hover {
	background: var(--color-bg-muted, #f3f4f6);
	color: var(--color-text-primary, #111827);
}

.table-of-contents__toggle:focus {
	outline: 2px solid var(--color-primary, #3b82f6);
	outline-offset: 2px;
}

.toggle-icon {
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}

.table-of-contents.collapsed .toggle-icon {
	transform: rotate(180deg);
}

.table-of-contents__list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	max-height: 1000px; /* Large enough to show all content */
}

.table-of-contents.collapsed .table-of-contents__list {
	max-height: 0;
}

.table-of-contents__list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.table-of-contents__list li:last-child {
	border-bottom: none;
}

.table-of-contents__list a {
	display: block;
	padding: var(--space-sm, 0.5rem) 0;
	color: var(--color-link, #3b82f6);
	text-decoration: none;
	font-size: var(--font-size-sm, 0.875rem);
	line-height: 1.5;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
	padding-left: var(--space-sm, 0.5rem);
	position: relative;
}

.table-of-contents__list a:hover {
	color: var(--color-link-hover, #1d4ed8);
	background: rgba(59, 130, 246, 0.05);
	border-left-color: var(--color-primary, #3b82f6);
	transform: translateX(2px);
}

.table-of-contents__list a.active {
	color: var(--color-primary, #3b82f6);
	background: rgba(59, 130, 246, 0.1);
	border-left-color: var(--color-primary, #3b82f6);
	font-weight: 500;
}

/* Level styling */
.table-of-contents__list .level-1 {
	counter-increment: level1;
	counter-reset: level2;
}

.table-of-contents__list .level-2 {
	counter-increment: level2;
	margin-left: var(--space-lg, 1rem);
}

.table-of-contents__list .level-1 > a::before {
	content: counter(level1) ". ";
	font-weight: 600;
	color: var(--color-text-secondary, #6b7280);
}

.table-of-contents__list .level-2 > a::before {
	content: counter(level1) "." counter(level2) " ";
	font-weight: 500;
	color: var(--color-text-muted, #9ca3af);
	font-size: 0.8em;
}

.table-of-contents__list .level-2 > a {
	font-size: var(--font-size-xs, 0.75rem);
	padding-left: var(--space-md, 0.75rem);
}

/* Placeholder styles */
.table-of-contents__placeholder {
	text-align: center;
	padding: var(--space-lg, 1rem);
}

.table-of-contents__loading {
	color: var(--color-text-secondary, #6b7280);
	font-size: var(--font-size-sm, 0.875rem);
	margin: var(--space-sm, 0.5rem) 0 0;
	font-style: italic;
}

/* Responsive design */
@media (max-width: 767px) {
	.table-of-contents {
		margin: var(--space-lg, 1rem) 0;
		padding: var(--space-md, 0.75rem);
	}
	
	.table-of-contents__title {
		font-size: var(--font-size-base, 1rem);
	}
	
	.table-of-contents__list .level-2 {
		margin-left: var(--space-md, 0.75rem);
	}
	
	.table-of-contents__list a {
		font-size: var(--font-size-xs, 0.75rem);
		padding: var(--space-xs, 0.25rem) 0;
	}
	
	.table-of-contents__list .level-2 > a {
		font-size: 0.7rem;
		padding-left: var(--space-sm, 0.5rem);
	}
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
	.table-of-contents {
		margin: var(--space-lg, 1rem) 0;
	}
}

/* Desktop enhancements */
@media (min-width: 1024px) {
	.table-of-contents {
		position: relative;
		max-height: none;
		overflow-y: visible;
	}
	
	.table-of-contents__list {
		max-height: 70vh;
		overflow-y: auto;
	}
	
	/* Custom scrollbar for desktop */
	.table-of-contents__list::-webkit-scrollbar {
		width: 4px;
	}
	
	.table-of-contents__list::-webkit-scrollbar-track {
		background: var(--color-bg-muted, #f3f4f6);
		border-radius: 2px;
	}
	
	.table-of-contents__list::-webkit-scrollbar-thumb {
		background: var(--color-border, #d1d5db);
		border-radius: 2px;
	}
	
	.table-of-contents__list::-webkit-scrollbar-thumb:hover {
		background: var(--color-text-secondary, #6b7280);
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.table-of-contents {
		background: #f2f5f9;
		border-color:#f2f5f9; 
	}
	
	.table-of-contents__header {
		border-color: rgba(75, 85, 99, 0.3);
	}
	
	.table-of-contents__title {
		color: #000;
	}
	
	.table-of-contents__toggle {
		color: #000;
	}
	
	.table-of-contents__toggle:hover {
		background: rgba(55, 65, 81, 0.5);
		color: rgba(255, 255, 255, 0.9);
	}
	
	.table-of-contents__list li {
		border-color: rgba(75, 85, 99, 0.2);
	}
	
	.table-of-contents__list a {
		color: rgba(96, 165, 250, 0.9);
	}
	
	.table-of-contents__list a:hover {
		color: rgba(96, 165, 250, 1);
		background: rgba(59, 130, 246, 0.1);
	}
	
	.table-of-contents__list a.active {
		color: rgba(96, 165, 250, 1);
		background: rgba(59, 130, 246, 0.15);
	}
	
	.table-of-contents__list .level-1 > a::before {
		color:#000;
	}
	
	.table-of-contents__list .level-2 > a::before {
		color: rgba(255, 255, 255, 0.5);
	}
	
	.table-of-contents__loading {
		color: rgba(255, 255, 255, 0.6);
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.table-of-contents {
		border-width: 2px;
	}
	
	.table-of-contents__list a {
		border-left-width: 4px;
	}
	
	.table-of-contents__list a:focus {
		outline: 3px solid;
		outline-offset: 2px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.table-of-contents,
	.table-of-contents__list,
	.table-of-contents__list a,
	.table-of-contents__toggle,
	.toggle-icon {
		transition: none;
	}
	
	.table-of-contents__list a:hover {
		transform: none;
	}
}
