/* Optyk Oczy Blog Enhancements: Green Links, Custom TOC, Author Box */
html {
	scroll-behavior: smooth;
}

.single-post .entry-content h2[id] {
	scroll-margin-top: 110px;
}

/* 1. Brand Green Links inside Blog Articles */
.single-post .entry-content p a,
.single-post .entry-content ul:not(.optyk-toc__list) a,
.single-post .entry-content ol:not(.optyk-toc__list) a {
	color: #008a08 !important;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(0, 138, 8, 0.38);
	text-underline-offset: 3px;
	transition: color 0.2s ease, background-color 0.2s ease, text-decoration-color 0.2s ease;
	border-radius: 3px;
	padding: 0 2px;
}

.single-post .entry-content p a:hover,
.single-post .entry-content ul:not(.optyk-toc__list) a:hover,
.single-post .entry-content ol:not(.optyk-toc__list) a:hover {
	color: #005e05 !important;
	background-color: rgba(0, 138, 8, 0.08);
	text-decoration-color: #008a08;
}

/* 2. Vertical centering for 2-column Elementor blog sections */
@media (min-width: 768px) {
	.single-post .elementor-section.elementor-top-section > .elementor-container {
		align-items: center;
	}
	.single-post .elementor-column.elementor-col-50 > .elementor-widget-wrap,
	.single-post .elementor-column.elementor-col-50 > .elementor-column-wrap > .elementor-widget-wrap {
		align-content: center;
		align-items: center;
	}
}

/* 3. Custom Domain-Styled Table of Contents (Spis treści) */
.optyk-toc-wrap {
	max-width: 1140px;
	margin: 28px auto 36px auto;
	padding: 0 15px;
	box-sizing: border-box;
	width: 100%;
}

.optyk-toc {
	background: linear-gradient(145deg, #f4faf4 0%, #ffffff 100%);
	border: 1px solid #cfe8d0;
	border-left: 5px solid #008a08;
	border-radius: 12px;
	padding: 22px 28px;
	box-shadow: 0 8px 24px rgba(0, 138, 8, 0.05);
	transition: box-shadow 0.25s ease;
}

.optyk-toc:hover {
	box-shadow: 0 10px 28px rgba(0, 138, 8, 0.08);
}

.optyk-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(0, 138, 8, 0.14);
}

.optyk-toc.is-collapsed .optyk-toc__header {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom-color: transparent;
}

.optyk-toc__title-group {
	display: flex;
	align-items: center;
	gap: 12px;
}

.optyk-toc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background-color: #e3f5e4;
	color: #008a08;
	line-height: 1;
}

.optyk-toc__title {
	font-size: 19px;
	font-weight: 700;
	color: #182619;
	letter-spacing: -0.01em;
}

.optyk-toc__toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	background: #ffffff !important;
	color: #008a08 !important;
	border: 1px solid #cce6cd !important;
	border-radius: 20px !important;
	padding: 6px 14px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	cursor: pointer;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: all 0.2s ease;
}

.optyk-toc__toggle:hover,
.optyk-toc__toggle:focus {
	background: #008a08 !important;
	color: #ffffff !important;
	border-color: #008a08 !important;
}

.optyk-toc__toggle-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.optyk-toc.is-collapsed .optyk-toc__toggle-arrow {
	transform: rotate(-90deg);
}

.optyk-toc__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.optyk-toc.is-collapsed .optyk-toc__list {
	display: none !important;
}

.optyk-toc__item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.optyk-toc__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none !important;
	color: #243325 !important;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.45;
	transition: all 0.2s ease;
}

.optyk-toc__link:hover {
	background-color: rgba(0, 138, 8, 0.08);
	color: #008a08 !important;
	transform: translateX(4px);
}

.optyk-toc__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 6px;
	border-radius: 6px;
	background-color: #e5f5e5;
	color: #008a08;
	font-size: 12.5px;
	font-weight: 700;
	flex-shrink: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.optyk-toc__link:hover .optyk-toc__num {
	background-color: #008a08;
	color: #ffffff;
}

/* 4. Author Meta in Header & Archive + Author Box at Bottom */
.entry-meta .posted-by {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
}

.entry-meta .posted-by .meta-label {
	color: #666;
	margin-right: 2px;
}

.entry-meta .posted-by .author.vcard {
	color: #008a08;
	font-weight: 600;
}

.optyk-author-box-wrap {
	max-width: 1140px;
	margin: 44px auto 16px auto;
	padding: 0 15px;
	box-sizing: border-box;
	width: 100%;
}

.optyk-author-box {
	display: flex;
	align-items: center;
	gap: 24px;
	background: linear-gradient(135deg, #f4faf4 0%, #ffffff 100%);
	border: 1px solid #cfe8d0;
	border-left: 5px solid #008a08;
	border-radius: 12px;
	padding: 26px 30px;
	box-shadow: 0 8px 24px rgba(0, 138, 8, 0.05);
}

.optyk-author-box__avatar {
	flex-shrink: 0;
	width: 82px;
	height: 82px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #cce6cd;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 138, 8, 0.08);
}

.optyk-author-box__avatar img {
	width: 66px !important;
	height: 66px !important;
	object-fit: contain !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.optyk-author-box__body {
	flex: 1;
}

.optyk-author-box__badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #008a08;
	background: #e3f5e4;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
}

.optyk-author-box__name {
	font-size: 21px !important;
	font-weight: 700 !important;
	color: #182619 !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.3 !important;
}

.optyk-author-box__bio {
	font-size: 15px !important;
	line-height: 1.65 !important;
	color: #3a473b !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.optyk-toc {
		padding: 18px 18px;
	}
	.optyk-author-box {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px 20px;
		gap: 16px;
	}
}
