/*
Theme Name: Verslo portalas
Author: Svetainės komanda
Description: Šviesi blokinė WordPress tema verslo ir finansų naujienų portalui.
Version: 1.6.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verslo-portalas
Tags: news, blog, block-patterns, block-styles, full-site-editing, custom-logo, featured-images, translation-ready
*/

:root {
	--vp-shadow: 0 14px 40px rgba(13, 45, 89, 0.08);
	--vp-border: #dfe7f1;
	--vp-muted: #627087;
	--vp-blue: #0b5ed7;
	--vp-blue-dark: #073b82;
	--vp-surface: #fafcff;
	--vp-site-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: #fff;
	color: #10213a;
}

.vp-topbar > .alignwide,
.vp-header-main > .alignwide,
.vp-footer > .alignwide,
.vp-main > .alignwide,
main.vp-main.alignwide,
main.vp-standard-page {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--vp-site-width) !important;
	padding-left: 0;
	padding-right: 0;
	width: calc(100% - 2rem) !important;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

img { display: block; }

.vp-site-header {
	background: #fff;
	display: contents;
}

.vp-sticky-header,
header.wp-block-template-part:has(.vp-site-header) {
	display: contents;
}

.vp-topbar {
	background: #fbfcfe;
	border-bottom: 1px solid var(--vp-border);
	font-size: 0.9rem;
}

.vp-topbar .wp-block-navigation-item__content {
	font-weight: 650;
	padding-block: 0.72rem;
}

.vp-topbar .wp-block-navigation { font-size: 0.9rem !important; font-weight: 650; }

.vp-header-main {
	background: #fff;
	border-bottom: 1px solid var(--vp-border);
	box-shadow: 0 4px 18px rgba(13, 45, 89, 0.04);
	margin-block: 0 !important;
	min-height: 65px;
	padding-block: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Neutralize the global block gap WordPress adds between the two header rows. */
.vp-site-header > .vp-header-main,
.wp-site-blocks .vp-site-header > .vp-header-main {
	margin-block-start: 0 !important;
}

body.admin-bar .vp-header-main { top: 32px; }

.vp-header-main > .alignwide {
	align-items: center;
	display: grid !important;
	grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
	margin-block: 0 !important;
	min-height: 64px;
}

.vp-brand-logo {
	align-items: baseline;
	color: #10213a;
	display: inline-flex;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 820;
	letter-spacing: -0.055em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.vp-brand-logo__suffix {
	color: var(--vp-blue);
	font-size: 0.78em;
	font-weight: 780;
}

.vp-category-navigation { grid-column: 2; justify-self: center; margin-left: 0; }

.vp-category-navigation__list {
	align-items: center;
	display: flex;
	gap: clamp(0.9rem, 2vw, 1.6rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.vp-category-navigation__list a {
	color: #10213a;
	display: block;
	font-size: 1.06rem;
	font-weight: 750;
	line-height: 1.2;
	padding-block: 0;
	text-decoration: none;
}

.vp-category-navigation__list a:hover,
.vp-category-navigation__list .is-current a { color: var(--vp-blue); }

.vp-menu-toggle,
.vp-menu-close {
	background: transparent;
	border: 0;
	color: #10213a;
	cursor: pointer;
}

.vp-menu-toggle { display: none; padding: 0.6rem; }
.vp-menu-close { display: none; }

.vp-menu-toggle__icon {
	display: grid;
	gap: 4px;
	width: 25px;
}

.vp-menu-toggle__icon > span {
	background: currentColor;
	border-radius: 2px;
	display: block;
	height: 2px;
	width: 100%;
}

.vp-main { min-height: 55vh; }

.vp-standard-page > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	max-width: 760px;
}

.vp-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	grid-template-rows: 1fr 1fr;
	gap: 0.9rem;
	height: clamp(340px, 38vw, 480px);
	margin-block: clamp(1.25rem, 3vw, 2.6rem);
	min-height: 0;
}

.vp-featured-card {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: #082f66;
	border-radius: 16px;
}

.vp-featured-grid > .vp-featured-card:first-child { grid-row: 1 / 3; }

.vp-featured-grid > .vp-featured-card:nth-child(2) { grid-column: 2; }

.vp-featured-pair {
	align-items: stretch;
	display: grid;
	grid-auto-rows: 1fr;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
	grid-column: 2;
}

.vp-featured-pair .vp-featured-card { height: 100%; min-height: 0; min-width: 0; }

.vp-featured-card img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	transition: transform 350ms ease;
	width: 100%;
}

.vp-image-placeholder {
	background: linear-gradient(135deg, #0b5ed7, #073b82);
	display: block;
	height: 100%;
	width: 100%;
}

.vp-featured-card > a > .vp-image-placeholder {
	inset: 0;
	position: absolute;
}

.vp-category-lead .vp-image-placeholder,
.vp-list-card .vp-image-placeholder,
.vp-related-card .vp-image-placeholder {
	aspect-ratio: 3 / 2;
	border-radius: 12px;
}

.vp-list-card .vp-image-placeholder { aspect-ratio: 4 / 3; }

.vp-featured-card:hover img { transform: scale(1.025); }

.vp-featured-card::after {
	background: linear-gradient(180deg, rgba(5, 23, 46, 0.02) 15%, rgba(5, 23, 46, 0.88) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.vp-featured-card__content {
	bottom: 0;
	color: #fff;
	left: 0;
	padding: clamp(1.1rem, 2.5vw, 2rem);
	position: absolute;
	right: 0;
	z-index: 1;
}

.vp-featured-card__content a { color: inherit; text-decoration: none; }
.vp-featured-card__content h2 { font-size: clamp(1.25rem, 2.4vw, 2.65rem); line-height: 1.08; margin: 0.7rem 0 0; }
.vp-featured-grid > .vp-featured-card:nth-child(2) .vp-featured-card__content h2 { font-size: clamp(1.1rem, 1.65vw, 1.65rem); }
.vp-featured-pair > .vp-featured-card .vp-featured-card__content h2 { font-size: clamp(1rem, 1.3vw, 1.2rem); }

.vp-kicker {
	background: var(--vp-blue);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	padding: 0.35rem 0.65rem;
	text-transform: uppercase;
}

.vp-kicker a { color: #fff; text-decoration: none; }

.vp-home-layout {
	align-items: start;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 4.25rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.vp-category-section { margin-bottom: clamp(2.25rem, 3.5vw, 3.25rem); }

.vp-section-heading {
	align-items: center;
	border-bottom: 1px solid var(--vp-border);
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-bottom: 0.8rem;
}

.vp-section-heading h2 {
	font-size: clamp(1.55rem, 2vw, 2rem);
	margin: 0;
	padding-left: 0.85rem;
	position: relative;
}

.vp-section-heading h2::before {
	background: var(--vp-blue);
	border-radius: 4px;
	content: "";
	height: 1.25em;
	left: 0;
	position: absolute;
	top: 0.04em;
	width: 4px;
}

.vp-section-heading > a {
	align-items: center;
	color: var(--vp-blue-dark);
	display: inline-flex;
	font-size: 0.96rem;
	font-weight: 720;
	gap: 0.4rem;
	line-height: 1.2;
	text-decoration: none;
}

.vp-section-heading > a svg { flex: 0 0 auto; }

.vp-category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
	gap: 1.15rem;
}

.vp-category-lead > a,
.vp-list-card > a,
.vp-related-card > a {
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	display: block;
	overflow: hidden;
	width: 100%;
}

.vp-category-lead > a img,
.vp-list-card > a img,
.vp-related-card > a img {
	border-radius: 0;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.vp-archive-card img {
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.vp-category-lead h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.18; margin: 0.7rem 0 0.35rem; }
.vp-category-lead h3 a, .vp-list-card h3 a, .vp-related-card h3 a, .vp-archive-card h2 a { color: inherit; text-decoration: none; }
.vp-category-lead h3 a:hover, .vp-list-card h3 a:hover, .vp-related-card h3 a:hover, .vp-archive-card h2 a:hover { color: var(--vp-blue); }

.vp-card-meta,
.vp-post-meta,
.vp-archive-card .wp-block-post-date {
	color: #35465d;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	font-weight: 520;
	gap: 0.45rem 0.85rem;
}

.vp-post-meta {
	color: #35465d;
	font-size: 0.86rem;
	font-weight: 520;
}

.vp-card-meta a,
.vp-post-meta a {
	color: inherit;
	font-weight: 650;
	text-decoration: none;
}

.vp-card-meta a:hover,
.vp-post-meta a:hover { color: var(--vp-blue); }

.vp-card-excerpt { color: #48576c; line-height: 1.5; margin: 0.45rem 0 0; }

.vp-category-list { display: grid; gap: 0.65rem; }

.vp-list-card {
	align-items: center;
	border-bottom: 1px solid var(--vp-border);
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 0.8rem;
	padding-bottom: 0.65rem;
}

.vp-list-card:last-child { border-bottom: 0; }
.vp-list-card > a { aspect-ratio: 4 / 3; }
.vp-list-card h3 { font-size: 0.96rem; line-height: 1.22; margin: 0 0 0.3rem; }

.vp-sidebar { min-width: 0; }

.vp-sidebar-sticky {
	position: static;
}

.vp-home-sidebar,
.vp-article-sidebar {
	position: sticky;
	top: calc(var(--vp-header-height, 112px) + 0.75rem);
}

body.admin-bar .vp-home-sidebar,
body.admin-bar .vp-article-sidebar { top: calc(var(--vp-header-height, 112px) + 33px + 0.75rem); }

.vp-widget {
	background: var(--vp-surface);
	border: 1px solid var(--vp-border);
	border-radius: 14px;
	margin-bottom: 1.25rem;
	padding: 1.25rem;
}

.vp-widget-title,
.vp-widget .wp-block-heading {
	font-size: 1.1rem;
	margin-top: 0;
}

.vp-widget ul { margin: 0; padding-left: 1.2rem; }
.vp-widget li + li { margin-top: 0.65rem; }

.vp-empty-state {
	background: var(--vp-surface);
	border: 1px dashed #b9c8db;
	border-radius: 14px;
	color: var(--vp-muted);
	padding: 1.2rem;
}

.vp-article-layout {
	align-items: start;
	column-gap: clamp(2rem, 5vw, 5.5rem);
	display: grid;
	grid-template-columns: minmax(0, 760px) 280px;
	justify-content: start;
	margin-block: clamp(1.25rem, 3vw, 2.75rem) clamp(2rem, 5vw, 4.5rem);
	row-gap: 1rem;
}

.vp-article-header { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.vp-article-header h1 { font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -0.035em; line-height: 1.04; margin: 0.8rem 0 1rem; }
.vp-article-body { grid-column: 1; grid-row: 2; min-width: 0; }
.vp-article-body > .wp-block-post-featured-image { margin: 0 0 2rem; }
.vp-article-body > .wp-block-post-featured-image img { aspect-ratio: 3 / 2; border-radius: 16px; height: auto; object-fit: cover; width: 100%; }
.vp-article-sidebar { align-self: start; grid-column: 2; grid-row: 2; }

.vp-article .wp-block-post-content {
	font-size: 1.075rem;
	line-height: 1.78;
}

.vp-article .wp-block-post-content > h2 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	line-height: 1.2;
	margin-top: 1.5em;
	scroll-margin-top: calc(var(--vp-header-height, 112px) + 2rem);
}

.vp-article .wp-block-post-content > p + h2 {
	margin-block-start: 1em !important;
}

.vp-article .wp-block-post-content > h3 { margin-top: 1.8em; }
.vp-article .wp-block-post-content a { color: var(--vp-blue-dark); }

.vp-toc {
	background: #fff;
	border: 0;
	border-left: 4px solid var(--vp-blue);
	border-radius: 0 10px 10px 0;
	box-shadow: 0 10px 28px rgba(13, 45, 89, 0.1);
	margin-bottom: 1.25rem;
	padding: 1.05rem 1.15rem;
}

.vp-toc summary { color: #10213a; cursor: pointer; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; }
.vp-toc nav { border-top: 1px solid var(--vp-border); margin-top: 0.85rem; padding-top: 0.85rem; }
.vp-toc ol { margin: 0; padding-left: 1.2rem; }
.vp-toc li + li { margin-top: 0.7rem; }
.vp-toc a { color: #253a56; font-size: 0.92rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.vp-toc a:hover, .vp-toc a.is-active { color: var(--vp-blue); font-weight: 760; }
.vp-toc[hidden] { display: none; }

.vp-author-box {
	align-items: center;
	background: var(--vp-surface);
	border: 1px solid var(--vp-border);
	border-radius: 16px;
	display: grid;
	gap: 1.1rem;
	grid-template-columns: 84px minmax(0, 1fr);
	margin-top: 3.5rem;
	padding: 1.4rem;
}

.vp-author-box img { border-radius: 50%; }
.vp-author-box > a { display: block; }
.vp-author-box h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.vp-author-box h2 a { color: inherit; text-decoration: none; }
.vp-author-box h2 a:hover { color: var(--vp-blue); }
.vp-author-box p { color: #4c5c72; margin: 0; }

.vp-related { margin-top: 3.5rem; }
.vp-related > h2 { border-bottom: 1px solid var(--vp-border); font-size: 1.55rem; padding-bottom: 0.75rem; }
.vp-related-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.vp-related-card h3 { font-size: 1rem; line-height: 1.3; margin: 0.7rem 0 0; }

.vp-archive-grid { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.vp-archive-card h2,
.vp-archive-card .wp-block-post-title { font-size: 1.15rem !important; line-height: 1.28; margin: 0.7rem 0 0.4rem; }

.vp-footer {
	background: #071c36;
	color: #dbe8f8;
	margin-top: clamp(4rem, 8vw, 7rem);
	padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.vp-footer a { color: #fff; }
.vp-footer .vp-brand-logo { color: #fff; }
.vp-footer .vp-brand-logo__suffix { color: #79b0ff; }
.vp-footer .wp-block-heading { font-size: 1rem !important; line-height: 1.25; margin-bottom: 0.75rem; }
.vp-footer-grid { align-items: start; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.vp-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.2);
	color: #d6e1ef;
	font-size: 0.92rem;
	font-weight: 600;
	justify-content: center !important;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	text-align: center;
}

.vp-footer-bottom p { margin: 0; }
.vp-footer-bottom p + p { display: none; }

.vp-pagination { margin-top: 3rem; }
.vp-pagination .page-numbers { border: 1px solid var(--vp-border); border-radius: 8px; display: inline-flex; min-height: 40px; min-width: 40px; padding: 0.45rem 0.7rem; place-content: center; text-decoration: none; }
.vp-pagination .current { background: var(--vp-blue); border-color: var(--vp-blue); color: #fff; }

.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: #fff;
	clip: auto !important;
	clip-path: none;
	color: #10213a;
	display: block;
	font-weight: 700;
	height: auto;
	left: 0.75rem;
	padding: 0.8rem 1rem;
	top: 0.75rem;
	width: auto;
	z-index: 100000;
}

@media (max-width: 1020px) {
	.vp-home-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 2rem; }
	.vp-article-layout { column-gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 250px; }
	.vp-featured-grid { min-height: 0; }
}

@media (max-width: 800px) {
	body.vp-menu-is-open { overflow: hidden; }
	.vp-header-main { padding-block: 0; }
	.vp-header-main > .alignwide { grid-template-columns: 1fr auto; min-height: 60px; }
	.vp-category-navigation { align-items: center; display: flex; grid-column: 2; justify-self: end; }
	.vp-menu-toggle { align-items: center; display: inline-flex; justify-content: center; }
	.vp-category-navigation__panel {
		background: #fff;
		display: none;
		inset: 0;
		overflow-y: auto;
		padding: 5.25rem 1.5rem 2rem;
		position: fixed;
		z-index: 1100;
	}
	.vp-category-navigation.is-open .vp-category-navigation__panel { display: block; }
	.vp-menu-close {
		display: grid;
		font-size: 2.25rem;
		height: 48px;
		line-height: 1;
		padding: 0;
		place-items: center;
		position: absolute;
		right: 1.25rem;
		top: 1.1rem;
		width: 48px;
	}
	.vp-category-navigation__list { align-items: stretch; display: grid; gap: 0; }
	.vp-category-navigation__list li { border-bottom: 1px solid var(--vp-border); }
	.vp-category-navigation__list a { font-size: 1.15rem; padding: 1rem 0.25rem; }
	.vp-featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; min-height: 0; }
	.vp-featured-grid > .vp-featured-card:first-child,
	.vp-featured-grid > .vp-featured-card:nth-child(2),
	.vp-featured-pair { grid-column: auto; grid-row: auto; }
	.vp-featured-card { min-height: 360px; }
	.vp-featured-grid > .vp-featured-card:nth-child(2) { min-height: 290px; }
	.vp-featured-pair .vp-featured-card { min-height: 240px; }
	.vp-home-layout, .vp-article-layout { grid-template-columns: minmax(0, 1fr); }
	.vp-home-sidebar { position: static; }
	.vp-home-sidebar .vp-sidebar-sticky { position: static; }
	.vp-article-header { grid-column: 1; grid-row: 1; }
	.vp-article-sidebar {
		grid-column: 1;
		grid-row: 2;
		position: sticky;
		top: calc(var(--vp-header-height, 104px) + 0.6rem);
		z-index: 50;
	}
	body.admin-bar .vp-article-sidebar { top: calc(var(--vp-header-height, 104px) + 33px + 0.6rem); }
	.vp-article-sidebar .vp-sidebar-sticky { position: static; }
	.vp-article-body { grid-column: 1; grid-row: 3; }
	.vp-article-sidebar .vp-widget-area { display: none; }
	.vp-article-layout { margin-top: 1rem; row-gap: 0.85rem; }
	.vp-toc { margin-bottom: 0; }
	.vp-category-section { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
	.vp-category-grid { gap: 1.5rem; grid-template-columns: 1fr; }
	.vp-category-lead h3 { font-size: clamp(1.35rem, 4vw, 1.65rem); margin: 0.9rem 0 0.45rem; }
	.vp-card-excerpt { line-height: 1.65; }
	.vp-category-list { gap: 1rem; }
	.vp-list-card { gap: 1rem; grid-template-columns: 116px minmax(0, 1fr); padding-bottom: 1rem; }
	.vp-list-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
	.vp-related-grid, .vp-archive-grid { grid-template-columns: repeat(2, 1fr); }
	.vp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 801px) {
	.vp-category-grid { align-items: start; }
	.vp-category-list {
		align-content: start;
		align-self: start;
		grid-auto-rows: max-content;
	}
	.vp-list-card { align-items: start; }
	.vp-category-lead > a { aspect-ratio: 16 / 9; }
	.vp-category-lead .vp-card-excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
	.vp-toc summary { cursor: default; list-style: none; }
	.vp-toc summary::-webkit-details-marker { display: none; }
}

@media (max-width: 782px) {
	body.admin-bar .vp-header-main { top: 46px; }
	body.admin-bar .vp-article-sidebar { top: calc(var(--vp-header-height, 104px) + 47px + 0.6rem); }
}

@media (max-width: 560px) {
	.vp-topbar .wp-block-navigation { font-size: 0.86rem !important; font-weight: 650; }
	.vp-header-main { padding-block: 0 !important; }
	.vp-featured-card { min-height: 310px; }
	.vp-featured-pair { grid-template-columns: 1fr; }
	.vp-featured-pair .vp-featured-card { min-height: 230px; }
	.vp-featured-card__content h2,
	.vp-featured-grid > .vp-featured-card:nth-child(2) .vp-featured-card__content h2,
	.vp-featured-pair > .vp-featured-card .vp-featured-card__content h2 { font-size: 1.35rem; }
	.vp-category-section { margin-bottom: 3.5rem; }
	.vp-section-heading { align-items: flex-start; gap: 0.85rem; }
	.vp-section-heading > a { font-size: 0.9rem; margin-top: 0.25rem; }
	.vp-list-card { grid-template-columns: 100px minmax(0, 1fr); }
	.vp-related-grid, .vp-archive-grid, .vp-footer-grid { grid-template-columns: 1fr; }
	.vp-author-box { grid-template-columns: 64px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
