/*!
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: #000000;
	--color-text-secondary: #111111;
	--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 - Unified Global Styles
--------------------------------------------- */
html {
	font-size: 16px; /* Base for rem calculations */
}

/* Global base typography - all body text inherits from here */
body {
	color: var(--color-text-primary);
	font-family: var(--font-primary);
	font-size: var(--font-size-base); /* 16px on mobile, 18px on tablet+ */
	line-height: 1.6; /* Comfortable reading line-height */
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Form elements inherit from body */
button,
input,
select,
optgroup,
textarea {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Headings - Unified Typography
   Use same font-family and color as body, only size and weight differ
   This maintains visual hierarchy while keeping consistency
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-primary); /* Same color as body text */
	font-family: var(--font-primary); /* Same font-family as body */
	font-weight: 700; /* Bold for hierarchy */
	line-height: 1.3; /* Tighter line-height for headings */
	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 - Unified Base Typography
   All these elements inherit font-size, color, and line-height from body
   Only margins are customized for spacing
--------------------------------------------- */
p {
	margin: 0 0 var(--space-lg) 0;
	/* Inherits: font-size, color, line-height, font-family from body */
}

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 - Unified Base Typography
   Inherits color and line-height from body, only font-size is slightly larger
--------------------------------------------- */
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); /* Slightly larger for emphasis */
	/* Inherits: color, line-height, font-family from body */
	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 - Unified Base Typography
   Inherit font-size, color, line-height from body
--------------------------------------------- */
ul, ol {
	margin: 0 0 var(--space-lg) 0;
	padding-left: var(--space-lg);
	/* Inherits: font-size, color, line-height, font-family from body */
}

li {
	margin-bottom: var(--space-sm);
	/* Inherits: font-size, color, line-height, font-family from body */
}

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;
}

/* Remove duplicate list styles - using unified styles above */
/* ul, ol styles are now defined in "Lists - Unified Base Typography" section */

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;
}

/* Tables - Unified Base Typography
   Inherit font-size, color, line-height from body
--------------------------------------------- */
table {
	margin: 0 0 var(--space-lg) 0;
	width: 100%;
	border-collapse: collapse;
	/* Inherits: font-size, color, line-height, font-family from body */
}

td, th {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--color-border-light);
	/* Inherits: font-size, color, line-height, font-family from body */
	text-align: left;
}

th {
	font-weight: 600; /* Slightly bolder for headers */
	background: var(--color-bg-secondary);
}

/* Figure captions - Unified Base Typography
   Inherit font-size, color, line-height from body
--------------------------------------------- */
figcaption {
	margin-top: var(--space-sm);
	font-size: var(--font-size-sm); /* Slightly smaller for captions */
	color: var(--color-text-secondary); /* Lighter color for captions */
	/* Inherits: line-height, font-family from body */
	text-align: center;
}

/* 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 */
	}

	/* Full width override - no sidebar */
	.full-width .content-area {
		grid-template-columns: 1fr;
	}
}

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

/* Post Column Wrapper */
.post-column {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* 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(2, 1fr);
	}
}

@media (min-width: 1280px) {
	.posts-grid {
		grid-template-columns: repeat(2, 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;
	align-items: center;
	justify-content: space-between;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0;
	position: relative;
}

/* Left section: Burger + Logo */
.header-left {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex: 0 0 auto;
	justify-content: flex-start;
}

/* 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;
	flex-shrink: 0;
}

.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 {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.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 - Hidden, menu is in offcanvas */
.desktop-navigation {
	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 {
	flex-shrink: 0;
	margin-left: auto;
}

.search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--border-radius);
	transition: all var(--transition-fast);
	color: var(--color-text-primary);
	font-size: var(--font-size-base);
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
}

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

/* 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;
}

/* Header Search Form - Inline Expanding Search */
.header-search-form-wrapper {
	position: absolute;
	top: 100%;
	right: 0;
	width: 0;
	overflow: hidden;
	background: var(--color-bg-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	transition: width 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	z-index: var(--z-dropdown);
}

.header-search-form-wrapper.active {
	width: 400px;
	opacity: 1;
}

.header-search-form-container {
	padding: var(--space-md);
}

.header-search-form {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	position: relative;
}

.header-search-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid var(--color-border-light);
	border-radius: 8px;
	font-size: 16px;
	background: var(--color-bg-primary);
	color: var(--color-text-primary);
	transition: border-color 0.2s ease;
	min-width: 0;
}

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

.header-search-input::placeholder {
	color: var(--color-text-secondary);
}

.header-search-submit {
	background: var(--color-primary);
	border: none;
	border-radius: 8px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

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

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

.header-search-close {
	background: var(--color-bg-secondary);
	border: none;
	border-radius: 8px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

.header-search-close:hover {
	background: var(--color-border-medium);
	transform: scale(1.1);
}

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

/* Search Toggle Button */
.search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-sm);
	border-radius: var(--border-radius);
	transition: all var(--transition-fast);
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-toggle svg {
	width: 24px;
	height: 24px;
}

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

/* Mobile Search Styles */
@media (max-width: 767px) {
	.header-search-form-wrapper {
		right: 0;
		left: 0;
		width: 0;
	}

	.header-search-form-wrapper.active {
		width: 100%;
	}

	.header-search-form-container {
		padding: var(--space-sm);
	}

	.header-search-form {
		gap: var(--space-xs);
	}

	.header-search-input {
		padding: 16px;
		font-size: 16px;
		border-radius: 8px;
	}

	.header-search-submit {
		width: 52px;
		height: 52px;
	}

	.header-search-submit svg {
		width: 24px;
		height: 24px;
	}

	.header-search-close {
		width: 44px;
		height: 44px;
	}

	.header-search-close svg {
		width: 20px;
		height: 20px;
	}

	.search-toggle {
		padding: var(--space-sm);
	}

	.search-toggle svg {
		width: 28px;
		height: 28px;
	}
}

/* Desktop Styles */
@media (min-width: 768px) {
	/* Burger menu visible on all screen sizes */
	.mobile-menu-toggle {
		display: flex;
	}
	
	/* Left section with burger and logo - left aligned */
	.header-left {
		justify-content: flex-start;
	}
	
	/* Desktop navigation hidden - menu is in offcanvas */
	.desktop-navigation {
		display: none;
	}
	
	/* Search on the right */
	.header-search {
		margin-left: auto;
	}
}

.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;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

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

/* Card Content Wrapper */
.post-card .entry-content-wrapper {
	padding: var(--space-lg);
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Category (plain text, not a link) */
.post-card .entry-category {
	font-size: var(--font-size-sm);
	color: #666;
	margin-bottom: var(--space-sm);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

/* Categories (old style - kept for backward compatibility) */
.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;
}

/* Entry Summary (Short Description) */
.post-card .entry-summary {
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: var(--color-text-secondary);
	margin: var(--space-sm) 0 var(--space-md) 0;
	flex: 1;
}

.post-card .entry-summary p {
	margin: 0 0 var(--space-sm) 0;
}

.post-card .entry-summary p:last-child {
	margin-bottom: 0;
}

/* Author Section */
.post-card .entry-author {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-top: auto;
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border-light);
}

.post-card .entry-author .author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Tailwind class equivalents for hardcoded avatar */
.post-card .entry-author .rounded-full {
	border-radius: 9999px;
}

.post-card .entry-author .w-10 {
	width: 2.5rem; /* 40px */
}

.post-card .entry-author .h-10 {
	height: 2.5rem; /* 40px */
}

.post-card .entry-author .mr-3 {
	margin-right: 0.75rem; /* 12px */
}

.post-card .entry-author .author-name {
	font-size: var(--font-size-sm);
	color: var(--color-text-primary);
	font-weight: 500;
}

/* 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;
}

/* Post Meta Row (Single Post) */
.post-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1rem; /* gap-x-4 gap-y-2 */
	font-size: 0.875rem; /* text-sm */
	color: #6b7280; /* text-gray-500 */
	margin-bottom: 1rem; /* mb-4 */
}

.post-meta-row > div {
	flex-shrink: 0;
}

.post-meta-row .flex {
	display: flex;
}

.post-meta-row .items-center {
	align-items: center;
}

.post-meta-row .gap-1 {
	gap: 0.25rem;
}

.post-meta-row .gap-4 {
	gap: 1rem;
}

.post-meta-row .whitespace-nowrap {
	white-space: nowrap;
}

.post-meta-row .flex-shrink-0 {
	flex-shrink: 0;
}

.post-meta-row .underline {
	text-decoration: underline;
}

.post-meta-row .hover\:text-gray-700:hover {
	color: #374151;
}

.post-meta-row .w-6 {
	width: 1.5rem;
}

.post-meta-row .h-6 {
	height: 1.5rem;
}

/* Desktop: no wrap */
@media (min-width: 768px) {
	.post-meta-row {
		flex-wrap: nowrap;
	}
}

/* Post Author Section (Single Post) */
.post-author-section {
	display: flex;
	align-items: center;
	gap: 0.75rem; /* gap-3 */
	margin-top: 1.5rem; /* mt-6 */
}

.post-author-section .flex {
	display: flex;
}

.post-author-section .flex-col {
	flex-direction: column;
}

.post-author-section .items-center {
	align-items: center;
}

.post-author-section .gap-3 {
	gap: 0.75rem;
}

.post-author-section .flex-shrink-0 {
	flex-shrink: 0;
}

.post-author-section .rounded-full {
	border-radius: 9999px;
}

.post-author-section .w-10 {
	width: 2.5rem; /* 40px */
}

.post-author-section .h-10 {
	height: 2.5rem; /* 40px */
}

.post-author-section .object-cover {
	object-fit: cover;
}

.post-author-section .text-sm {
	font-size: 0.875rem;
}

.post-author-section .text-gray-500 {
	color: #6b7280;
}

.post-author-section .text-gray-900 {
	color: #111827;
}

.post-author-section .font-semibold {
	font-weight: 600;
}

.post-author-section .text-xs {
	font-size: 0.75rem;
}

.post-author-section .mt-0\.5 {
	margin-top: 0.125rem;
}

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

/* Speech Bubble Shortcode
---------------------------------------------- */
.speech-bubble-wrapper {
	margin: var(--space-xl) 0;
	position: relative;
}

.speech-bubble {
	position: relative;
	background: var(--color-bg-primary);
	border: 2px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-lg) var(--space-xl);
	box-shadow: var(--shadow-sm);
}

.speech-bubble-content {
	font-size: var(--font-size-lg);
	line-height: 1.7;
	color: var(--color-text-primary);
	font-style: italic;
}

.speech-bubble-content p {
	margin: 0;
}

.speech-bubble-content p + p {
	margin-top: var(--space-sm);
}

/* Speech bubble tail (pointing down-right) */
.speech-bubble-tail {
	position: absolute;
	bottom: -12px;
	right: 40px;
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 12px solid var(--color-bg-primary);
}

.speech-bubble-tail::before {
	content: '';
	position: absolute;
	bottom: 2px;
	left: -14px;
	width: 0;
	height: 0;
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 14px solid var(--color-border-light);
	z-index: -1;
}

/* Author section */
.speech-bubble-author {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
	margin-top: var(--space-md);
	padding-right: var(--space-md);
}

.speech-bubble-avatar {
	flex-shrink: 0;
}

.speech-bubble-avatar img {
	display: block;
}

.speech-bubble-author-info {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.speech-bubble-author-name {
	font-weight: 600;
	font-size: var(--font-size-sm);
	color: var(--color-text-primary);
}

.speech-bubble-author-role {
	font-size: var(--font-size-xs);
	color: var(--color-text-secondary);
	margin-top: 2px;
}

/* Mobile: Stack author info */
@media (max-width: 767px) {
	.speech-bubble-author {
		flex-direction: row-reverse;
		justify-content: flex-start;
	}
	
	.speech-bubble-author-info {
		text-align: left;
	}
}

/* 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 - only hide when infinite scroll is enabled */
body.infinite-scroll-enabled .pagination-wrapper {
	display: none;
}

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

.no-js .pagination-wrapper {
	display: block;
}

/* 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;
}

/* Full width single post - wider content */
.full-width .single-post-content {
	max-width: 1200px;
}

.single-post-content .entry-content {
	line-height: 1.5;
}

.single-post-content .entry-header {
	text-align: left;
	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 inherits all typography from body
   Only color is explicitly set here for clarity
--------------------------------------------- */
.entry-content {
	color: var(--color-text-primary);
	/* Inherits: font-size, line-height, font-family from body */
}

/* Ensure all text elements in entry-content inherit base typography */
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content blockquote,
.entry-content figcaption {
	/* All inherit font-size, color, line-height, font-family from body */
	/* Only margins are customized below */
}

.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);
}

/* Categories widget styling */
.widget_categories .post-count {
	color: var(--color-text-secondary);
	font-size: var(--font-size-sm);
	font-weight: normal;
}

/*--------------------------------------------------------------
# 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;
	}
}

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

/* Minimal rating container - no background, no border */
.minimal-rating {
	margin: var(--space-xl) 0;
	text-align: center;
}

/* Rating container with reverse flex for CSS trick */
.rating {
	display: flex;
	flex-direction: row-reverse; /* Important for the CSS trick */
	justify-content: flex-end;
	gap: 4px;
	margin-bottom: var(--space-sm);
}

/* Hide radio inputs visually but keep them accessible */
.rating > input {
	position: absolute;
	appearance: none;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

/* Label styles - stars */
.rating > label {
	cursor: pointer;
	font-size: 28px;
	color: #ccc; /* Light grey by default */
	line-height: 1;
	transition: color 0.2s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.rating > label:before {
	content: "★";
	display: block;
}

/* Disabled state when already rated */
.rating.rated > label,
.minimal-rating.rated .rating > label {
	cursor: default;
	pointer-events: none;
}

.minimal-rating.submitting .rating > label {
	cursor: wait;
	opacity: 0.6;
}

/* Hover effect - light up stars up to cursor position */
.minimal-rating:not(.rated):not(.submitting) .rating > label:hover,
.minimal-rating:not(.rated):not(.submitting) .rating > label:hover ~ label {
	color: #ff9e0b; /* Bright yellow/orange on hover */
}

/* Active/Checked state - selected stars remain bright */
.rating > input:checked ~ label {
	color: #ffa723; /* Active color - bright gold/orange */
}

/* Additional hover states for checked inputs */
.rating > input:checked + label:hover,
.rating > input:checked + label:hover ~ label,
.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label,
.rating > label:hover ~ input:checked ~ label {
	color: #ff9e0b; /* Slightly brighter on hover when checked */
}

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

/* Mobile responsiveness */
@media (max-width: 767px) {
	.minimal-rating {
		margin: var(--space-lg) 0;
	}
	
	.rating:not(:checked) > label {
		font-size: 24px;
	}
	
	.minimal-rating .rating-info {
		font-size: var(--font-size-xs);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.rating > label {
		transition: none;
	}
}

/*--------------------------------------------------------------
# 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 - New Implementation
   Complete TOC with CSS counters and toggle functionality
--------------------------------------------- */
.toc-container {
	background: var(--color-bg-secondary);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	margin: var(--space-xl) 0;
	padding: var(--space-lg);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

/* TOC Header with title and toggle button */
.toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border-light);
}

.toc-title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--color-text-primary);
	margin: 0;
	line-height: 1.4;
	font-family: var(--font-primary);
}

.toc-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: var(--space-xs);
	border-radius: var(--radius-sm);
	color: var(--color-text-secondary);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.toc-toggle:hover {
	background: var(--color-bg-muted);
	color: var(--color-text-primary);
}

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

.toc-chevron {
	transition: transform 0.3s ease;
	stroke: currentColor;
}

.toc-collapsed .toc-chevron {
	transform: rotate(180deg);
}

/* TOC List with CSS Counters
   Counter system: H2 items numbered 1., 2., 3.
   H3 items numbered 1.1., 1.2., 2.1., 2.2., etc.
--------------------------------------------- */
.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc-level1; /* Reset counter for H2 items */
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	max-height: 2000px;
	opacity: 1;
}

.toc-collapsed .toc-list {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
}

/* TOC Items - Base styles */
.toc-item {
	margin: 0;
	padding: 0;
	/* Inherits: font-size, color, line-height, font-family from body */
}

/* TOC Items - Level 1 (H2) - Parent items */
.toc-item.toc-level-2 {
	counter-increment: toc-level1; /* Increment H2 counter */
	counter-reset: toc-level2; /* Reset H3 counter for each new H2 */
}

/* TOC Items - Level 2 (H3) - Child items, nested under H2 */
.toc-item.toc-level-3 {
	counter-increment: toc-level2; /* Increment H3 counter */
	margin-left: var(--space-lg);
	padding-left: var(--space-md);
}

/* TOC Links - Base styles */
.toc-link {
	display: block;
	padding: var(--space-sm) 0;
	color: #29b6f6; /* Light blue as specified */
	text-decoration: none;
	/* Inherits: font-size, line-height, font-family from body */
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
	padding-left: var(--space-sm);
	position: relative;
}

.toc-link:hover {
	color: #0288d1; /* Darker blue on hover */
	background: rgba(41, 182, 246, 0.05);
	border-left-color: #29b6f6;
	text-decoration: none;
}

.toc-link.toc-active {
	color: #0288d1;
	background: rgba(41, 182, 246, 0.1);
	border-left-color: #29b6f6;
	font-weight: 500;
}

/* CSS Counters for automatic numbering */
/* H2 items: "1.", "2.", "3." */
.toc-item.toc-level-2 > .toc-link::before {
	content: counter(toc-level1) ". ";
	font-weight: 600;
	color: var(--color-text-secondary);
	margin-right: var(--space-xs);
	display: inline-block;
}

/* H3 items: "1.1.", "1.2.", "2.1.", "2.2.", etc. */
.toc-item.toc-level-3 > .toc-link::before {
	content: counter(toc-level1) "." counter(toc-level2) ". ";
	font-weight: 500;
	color: var(--color-text-muted);
	margin-right: var(--space-xs);
	font-size: 0.9em;
	display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.toc-container {
		margin: var(--space-lg) 0;
		padding: var(--space-md);
	}
	
	.toc-title {
		font-size: var(--font-size-base);
	}
	
	.toc-item.toc-level-3 {
		margin-left: var(--space-md);
		padding-left: var(--space-sm);
	}
}

/* Old TOC styles - keeping for backward compatibility if needed */
.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;
	}
}


.svg-icon svg{
	width: 16px;
	height: 16px;
}


 .wa-plugin-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      background: white;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .wa-two-col-layout {
      display: grid;
      grid-template-columns: 70% 1fr;
      gap: 40px;
      align-items: start;
    }
    
    .wa-content-area h2 {
      font-size: 32px;
      margin-bottom: 20px;
      color: #333;
    }
    
    .wa-content-area p {
      font-size: 16px;
      line-height: 1.6;
      color: #555;
    }
    
    .wa-promo-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      text-align: center;
      padding-top: 10px;
    }
    
    .wa-app-image {
      width: 100%;
      max-width: 200px;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .wa-store-btn {
      display: inline-block;
      padding: 12px 24px;
      background: #28a745;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-weight: 500;
      transition: background 0.3s ease;
    }
    
    .wa-store-btn:hover {
      background: #218838;
    }
    
    /* Адаптивность для планшетов */
    @media (max-width: 968px) {
      .wa-two-col-layout {
        grid-template-columns: 65% 1fr;
        gap: 30px;
      }
    }
    
    /* Адаптивность для мобильных */
    @media (max-width: 768px) {
      .wa-plugin-wrapper {
        padding: 30px 20px;
      }
      
      .wa-two-col-layout {
        grid-template-columns: 1fr;
        gap: 30px;
      }
      
      .wa-promo-block {
        padding-top: 0;
      }
      
      .wa-content-area h2 {
        font-size: 28px;
      }
    }

/**
 * Стили для кастомной навигации между записями
 */

/* Основной контейнер навигации */
.custom-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Колонка навигации */
.nav-column {
    display: flex;
    flex-direction: column;
}

/* Если есть только одна колонка - центрируем её */
.custom-post-navigation:has(.nav-prev:not(:has(+ .nav-next))) .nav-prev,
.custom-post-navigation:has(.nav-next:not(~ .nav-prev)) .nav-next {
    margin: 0 auto;
    max-width: 360px;
}

/* Заголовок навигации со стрелкой */
.nav-header {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Ссылка-обёртка (картинка + заголовок) */
.nav-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-3px);
}

/* Обёртка изображения (для позиционирования бейджа) */
.nav-image-wrapper {
    position: relative;
    width: 360px;
    max-width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

/* Изображение записи */
.nav-image {
    width: 360px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* Заголовок статьи */
.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-link:hover .nav-title {
    color: #ff6b6b;
}

/* Выравнивание текста в колонках */
.nav-prev {
    text-align: left;
}

.nav-prev .nav-column {
    align-items: flex-start;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-column {
    align-items: flex-end;
}

.nav-next .nav-image-wrapper {
    margin-left: auto;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .custom-post-navigation {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .nav-prev,
    .nav-next {
        text-align: center;
    }

    .nav-prev .nav-column,
    .nav-next .nav-column {
        align-items: center;
    }

    .nav-next .nav-image-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-image-wrapper,
    .nav-image {
        width: 100%;
        max-width: 360px;
    }
}

/**
 * Sidebar Table of Contents
 * Minimalist design with blue accent
 */

/* Main wrapper - makes TOC sticky */
.sidebar-toc-wrapper {
    position: sticky;
    top: 20px;
    z-index: 10;
    background: #ffffff;
    padding: 0;
    margin-bottom: 30px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* Left accent line */
    border-left: 3px solid #4AAFE8;
    padding-left: 12px;
}

/* TOC Title */
.sidebar-toc-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 18px;
    line-height: 1.7;
}

/* Navigation container */
.sidebar-toc-nav {
    position: relative;
}

/* TOC List */
.sidebar-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* TOC List Item */
.sidebar-toc-item {
    margin-bottom: 16px;
}

.sidebar-toc-item:last-child {
    margin-bottom: 0;
}

/* TOC Link - Default state */
.sidebar-toc-link {
    display: block;
    padding: 0;
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.7;
    transition: color 0.2s ease;
}

/* TOC Link - Hover state */
.sidebar-toc-link:hover {
    color: #4AAFE8;
}

/* TOC Link - Active state (when viewing this section) */
.sidebar-toc-link.active {
    color: #4AAFE8;
}

/* Remove all decorative elements */
.sidebar-toc-link::before,
.sidebar-toc-link::after {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar-toc-wrapper {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }

    .sidebar-toc-title {
        font-size: 14px;
    }

    .sidebar-toc-link {
        font-size: 14px;
    }
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}