/*
Theme Name: VisiPlanai Tema
Author: VisiPlanai
Description: Savarankiška tema, pritaikyta VisiPlanai planų palyginimo įskiepiui.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: visiplanai-tema
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--vp-ink: #11132b;
	--vp-text: #202238;
	--vp-muted: #555b70;
	--vp-line: #e5e7f0;
	--vp-surface: #f7f8fc;
	--vp-white: #fff;
	--vp-violet: #6842f4;
	--vp-violet-dark: #5130d6;
	--vp-violet-soft: #f0ebff;
	--vp-mint: #12bd91;
	--vp-mint-soft: #e6faf4;
	--vp-yellow: #ffc928;
	--vp-yellow-soft: #fff7d5;
	--vp-blue: #2770ef;
	--vp-font: "Sora", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--vp-heading-font: "Sora", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--vp-body-font-size: 17px;
	--vp-hero-title-size: 72px;
	--vp-section-title-size: 48px;
	--vp-article-title-size: 60px;
	--vp-accent-font-size: 13px;
	--vp-menu-font-size: 14px;
	--vp-card-font-size: 14px;
	--vp-button-font-size: 14px;
	--vp-footer-font-size: 15px;
	--vp-shell: 1400px;
	--vp-reading: 780px;
	--vp-shadow: 0 22px 65px -38px rgba(34, 31, 79, 0.3);
	--vp-shadow-soft: 0 12px 40px -28px rgba(31, 32, 68, 0.28);
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

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

body.visiplanai-theme {
	margin: 0;
	color: var(--vp-text);
	background: var(--vp-white);
	font-family: var(--vp-font);
	font-size: var(--vp-body-font-size);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.visiplanai-theme :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--vp-heading-font);
}

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

a {
	color: var(--vp-violet-dark);
	text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 10px;
	left: 10px;
	display: block;
	width: auto !important;
	height: auto !important;
	padding: 12px 16px !important;
	clip: auto !important;
	clip-path: none !important;
	border-radius: 8px;
	background: var(--vp-ink);
	color: #fff;
}

/* Global site header. It deliberately does not open a content wrapper so plugin
   templates retain their existing width and full-bleed behavior. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid #ececf3;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(14px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: grid;
	width: min(1280px, calc(100% - 64px));
	min-height: 82px;
	grid-template-columns: minmax(170px, auto) 1fr;
	align-items: center;
	gap: 42px;
	margin-inline: auto;
}

.site-branding {
	min-width: 0;
}

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

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 54px;
}

.site-branding__text {
	color: var(--vp-ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.primary-navigation {
	justify-self: end;
}

.primary-menu,
.primary-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: clamp(2px, 1.2vw, 18px);
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 9px;
	color: var(--vp-ink);
	font-size: var(--vp-menu-font-size);
	font-weight: 650;
	text-decoration: none;
	transition: color 160ms ease, background 160ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: var(--vp-violet-soft);
	color: var(--vp-violet-dark);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 20;
	display: none;
	min-width: 220px;
	padding: 8px;
	border: 1px solid var(--vp-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--vp-shadow);
}

.primary-menu > li:nth-last-child(-n + 2) > .sub-menu {
	right: 0;
	left: auto;
}

.primary-menu > li.vp-submenu-align-right > .sub-menu {
	right: 0;
	left: auto;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	width: 100%;
}

@media (min-width: 1001px) {
	.primary-menu > .menu-item-has-children > a {
		gap: 7px;
	}

	.primary-menu > .menu-item-has-children > a::after {
		display: block;
		width: 7px;
		height: 7px;
		flex: 0 0 7px;
		border-right: 1.7px solid currentColor;
		border-bottom: 1.7px solid currentColor;
		content: "";
		transform: translateY(-2px) rotate(45deg);
		transition: transform 160ms ease;
	}

	.primary-menu > .menu-item-has-children:hover > a::after,
	.primary-menu > .menu-item-has-children:focus-within > a::after {
		transform: translateY(2px) rotate(225deg);
	}
}

.menu-toggle {
	position: relative;
	display: none;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 10px;
	border: 1px solid var(--vp-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.submenu-toggle {
	display: none;
}

.menu-toggle > span:not(.screen-reader-text) {
	position: absolute;
	top: 50%;
	left: 11px;
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--vp-ink);
	transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle > span:nth-child(1) {
	transform: translateY(-7px);
}

.menu-toggle > span:nth-child(2) {
	transform: translateY(-1px);
}

.menu-toggle > span:nth-child(3) {
	transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
	transform: translateY(-1px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
	transform: translateY(-1px) rotate(-45deg);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--vp-line);
	background: #fbfbfe;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.site-footer__inner {
	display: grid;
	width: min(var(--vp-shell), calc(100% - 64px));
	grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(120px, 0.75fr));
	gap: clamp(28px, 5vw, 84px);
	padding: 52px 0 38px;
	margin-inline: auto;
}

.site-footer__inner:not(.has-social) {
	grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(120px, 0.75fr));
}

.site-footer__brand p {
	max-width: 310px;
	margin: 18px 0 0;
	color: #292d40;
	font-size: var(--vp-footer-font-size);
	font-weight: 400;
}

.site-footer__column h2,
.site-footer .widget-title,
.site-footer .wp-block-heading {
	margin: 0 0 14px;
	color: var(--vp-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: calc(var(--vp-footer-font-size) + 2px);
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.site-footer .widget {
	margin: 0;
	color: #292d40;
	font-size: var(--vp-footer-font-size);
	font-weight: 400;
	line-height: 1.55;
}

.site-footer .widget + .widget {
	margin-top: 22px;
}

.site-footer__widgets {
	margin-top: 18px;
}

.site-footer__widgets :first-child,
.site-footer .widget > :first-child {
	margin-top: 0;
}

.site-footer__widgets :last-child,
.site-footer .widget > :last-child {
	margin-bottom: 0;
}

.site-footer ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li,
.site-footer a {
	color: #292d40;
	font-size: var(--vp-footer-font-size);
	font-weight: 400;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--vp-violet-dark);
}

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

.widget :where(select, input:not([type="checkbox"]):not([type="radio"]), textarea) {
	max-width: 100%;
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 7px;
}

.widget .wp-block-search__input {
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--vp-line);
	border-radius: 8px;
}

.widget .wp-block-search__button {
	padding: 9px 12px;
	border: 1px solid var(--vp-violet);
	border-radius: 8px;
	background: var(--vp-violet);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.widget_calendar table,
.wp-block-calendar table {
	width: 100%;
	border-collapse: collapse;
}

.widget_calendar :where(th, td),
.wp-block-calendar :where(th, td) {
	padding: 5px;
	border: 1px solid var(--vp-line);
	font-size: 12px;
	text-align: center;
}

.site-footer__bottom {
	width: min(var(--vp-shell), calc(100% - 64px));
	padding: 18px 0 28px;
	border-top: 1px solid var(--vp-line);
	margin-inline: auto;
}

.site-footer__bottom p {
	margin: 0;
	color: #363a4d;
	font-size: max(13px, calc(var(--vp-footer-font-size) - 1px));
}

/* Ordinary WordPress content */
.vp-content-shell {
	width: min(1160px, calc(100% - 48px));
	min-height: 54vh;
	padding: 42px 0 88px;
	margin-inline: auto;
}

.vp-content-shell--article {
	width: min(1120px, calc(100% - 48px));
}

.vp-content-layout,
.vp-content-main {
	min-width: 0;
}

.vp-content-shell--with-sidebar .vp-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	align-items: start;
	gap: 32px;
}

.vp-content-shell--with-sidebar.vp-listing-page .vp-post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vp-widget-sidebar {
	position: sticky;
	top: 108px;
	display: grid;
	gap: 18px;
}

.admin-bar .vp-widget-sidebar {
	top: 140px;
}

.vp-widget-sidebar .widget {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--vp-line);
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--vp-shadow-soft);
}

.vp-widget-sidebar .widget-title,
.vp-widget-sidebar .wp-block-heading {
	margin: 0 0 14px;
	color: var(--vp-ink);
	font-size: 18px;
	line-height: 1.25;
}

.vp-widget-sidebar :where(ul, ol) {
	display: grid;
	gap: 8px;
	padding-left: 20px;
	margin: 0;
}

.vp-widget-sidebar a {
	color: var(--vp-ink);
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.vp-widget-sidebar :where(p, li) {
	font-size: 14px;
	line-height: 1.6;
}

.vp-widget-sidebar :where(select, input:not([type="checkbox"]):not([type="radio"]), textarea) {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vp-line);
	border-radius: 9px;
	background: #fff;
}

.vp-article-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 820px);
	align-items: start;
	justify-content: center;
	gap: 42px;
}

.vp-article-layout--no-toc {
	grid-template-columns: minmax(0, 820px);
}

.vp-article-column {
	min-width: 0;
}

.vp-toc {
	position: sticky;
	top: 108px;
	padding: 20px 16px;
	border: 1px solid #e1e3ed;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 18px 40px -34px rgba(32, 28, 70, 0.55);
}

.admin-bar .vp-toc {
	top: 140px;
}

.vp-toc__toggle {
	display: none;
}

.vp-toc__title {
	display: block;
	margin: 0 8px 12px;
	color: var(--vp-ink);
	font-size: 17px;
	font-weight: 750;
}

.vp-toc ol {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vp-toc a {
	display: block;
	padding: 8px 9px 8px 11px;
	border-left: 2px solid #e1e3ed;
	border-radius: 0 8px 8px 0;
	color: #24283a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.vp-toc a:hover,
.vp-toc a:focus-visible,
.vp-toc a.is-active {
	border-left-color: var(--vp-violet);
	background: var(--vp-violet-soft);
	color: var(--vp-violet-dark);
}

.vp-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--vp-text);
	font-size: 13px;
}

.vp-breadcrumbs a {
	color: var(--vp-ink);
	font-weight: 600;
	text-decoration: none;
}

.vp-breadcrumbs [aria-current="page"] {
	max-width: 65ch;
	overflow: hidden;
	color: #454a5e;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vp-eyebrow {
	margin: 0 0 12px;
	color: var(--vp-violet);
	font-size: var(--vp-accent-font-size);
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vp-article,
.vp-page {
	border: 1px solid var(--vp-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--vp-shadow-soft);
}

.vp-content-shell--article .vp-article {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.vp-article__header,
.vp-page__header {
	padding: clamp(30px, 6vw, 68px) clamp(24px, 7vw, 78px) clamp(26px, 4vw, 44px);
	background: #fff;
	border-radius: 22px 22px 0 0;
}

.vp-content-shell--article .vp-article__header {
	padding: 4px 0 13px;
	border-bottom: 1px solid var(--vp-line);
	border-radius: 0;
	background: transparent;
}

.vp-article__header h1,
.vp-page__header h1,
.vp-listing-header h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--vp-ink);
	font-size: clamp(34px, 5.6vw, var(--vp-article-title-size));
	font-weight: 750;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.vp-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 22px;
	color: #505568;
	font-size: 14px;
}

.vp-article__meta b {
	color: var(--vp-ink);
	font-weight: 650;
}

.vp-article__meta span + span::before {
	margin-right: 24px;
	color: #b4b7c4;
	content: "•";
}

.vp-article__meta a {
	color: var(--vp-violet-dark);
	font-weight: 650;
	text-decoration: none;
}

.vp-article__media,
.vp-page__media {
	margin: 0;
}

.vp-article__media img,
.vp-page__media img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.vp-entry-content {
	max-width: var(--vp-reading);
	padding: clamp(30px, 6vw, 68px) clamp(24px, 7vw, 78px);
	margin-inline: auto;
}

.vp-content-shell--article .vp-entry-content {
	max-width: 100%;
	padding: 46px 0;
}

.vp-content-shell--article .vp-article__media {
	margin-top: 34px;
}

.vp-content-shell--article .vp-article__media img {
	border-radius: 18px;
}

.vp-entry-content > :first-child {
	margin-top: 0;
}

.vp-entry-content > :last-child {
	margin-bottom: 0;
}

.vp-entry-content :where(h2, h3, h4) {
	margin: 1.4em 0 0.6em;
	color: var(--vp-ink);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.vp-entry-content p + h2 {
	margin-top: 1.15em;
}

.vp-entry-content h2 {
	scroll-margin-top: 126px;
}

.vp-entry-content h2 {
	font-size: clamp(26px, 4vw, 36px);
}

.vp-entry-content h3 {
	font-size: clamp(21px, 3vw, 27px);
}

.vp-entry-content p,
.vp-entry-content li {
	font-size: 17px;
	line-height: 1.8;
}

.vp-entry-content blockquote {
	padding: 18px 24px;
	border-left: 4px solid var(--vp-violet);
	border-radius: 0 12px 12px 0;
	margin: 30px 0;
	background: var(--vp-violet-soft);
}

.vp-entry-content table {
	width: 100%;
	overflow: hidden;
	border: 1px solid #d9dce7;
	border-radius: 14px;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(37, 39, 76, 0.04), 0 14px 38px -30px rgba(31, 32, 68, 0.34);
}

.vp-entry-content th,
.vp-entry-content td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--vp-line);
	text-align: left;
	vertical-align: top;
}

.vp-entry-content th {
	background: var(--vp-violet-soft);
	color: var(--vp-ink);
	font-size: 14px;
	font-weight: 750;
}

.vp-entry-content td {
	color: var(--vp-text);
	font-size: 15px;
}

.vp-entry-content tbody tr:nth-child(even) td {
	background: #fafafe;
}

.vp-entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.vp-entry-content tbody tr:hover td {
	background: #f5f2ff;
}

.vp-entry-content caption,
.wp-block-table figcaption {
	padding: 10px 4px;
	color: #51566a;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}

.vp-entry-content .wp-block-table {
	margin: 32px 0;
	overflow-x: auto;
	border: 1px solid #d9dce7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px -24px rgba(31, 32, 68, 0.45);
}

.vp-entry-content .wp-block-table table {
	border: 0;
	margin: 0;
	box-shadow: none;
}

.vp-article__footer {
	padding: 0 clamp(24px, 7vw, 78px) 42px;
}

.vp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vp-tags a {
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--vp-violet-soft);
	font-size: 12px;
	text-decoration: none;
}

.vp-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 22px;
}

.vp-post-navigation div:last-child {
	text-align: right;
}

.vp-post-navigation a {
	display: inline-block;
	padding: 14px 18px;
	border: 1px solid var(--vp-line);
	border-radius: 10px;
	background: #fff;
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}

.vp-listing-header {
	padding: 4px 0 20px;
	border-bottom: 1px solid var(--vp-line);
	background: transparent;
}

.vp-listing-header__description {
	max-width: 700px;
	margin-top: 18px;
}

.vp-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 32px;
}

.vp-post-card {
	overflow: hidden;
	border: 1px solid var(--vp-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--vp-shadow-soft);
}

.vp-post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.vp-post-card__media img,
.vp-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.vp-post-card__placeholder {
	background: linear-gradient(135deg, var(--vp-violet-soft), var(--vp-mint-soft));
}

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

.vp-post-card__body {
	padding: 22px;
}

.vp-post-card__body h2 {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.25;
}

.vp-post-card__body h2 a {
	color: var(--vp-ink);
	text-decoration: none;
}

.vp-post-card__body > p:not(.vp-eyebrow) {
	color: var(--vp-muted);
	font-size: 13px;
}

.vp-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--vp-violet-dark);
	font-size: var(--vp-button-font-size);
	font-weight: 700;
	text-decoration: none;
}

.navigation.pagination {
	margin-top: 36px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.nav-links .page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--vp-line);
	border-radius: 9px;
	background: #fff;
	text-decoration: none;
}

.nav-links .current {
	border-color: var(--vp-violet);
	background: var(--vp-violet);
	color: #fff;
}

.vp-comments {
	padding: clamp(24px, 5vw, 46px);
	border: 1px solid var(--vp-line);
	border-radius: 18px;
	margin-top: 24px;
	background: #fff;
}

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

.comment-list .comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--vp-line);
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 650;
}

.comment-form :where(input[type="text"], input[type="email"], input[type="url"], textarea),
.vp-search-form input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--vp-line);
	border-radius: 9px;
	background: #fff;
}

.comment-form input[type="submit"],
.vp-search-form button,
.vp-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--vp-violet);
	border-radius: 9px;
	background: var(--vp-violet);
	color: #fff;
	font-size: var(--vp-button-font-size);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vp-search-form {
	display: flex;
	gap: 8px;
}

.vp-search-form label {
	flex: 1;
}

.vp-empty,
.vp-error-page__card {
	padding: clamp(28px, 7vw, 72px);
	border: 1px solid var(--vp-line);
	border-radius: 20px;
	margin-top: 28px;
	background: var(--vp-surface);
	text-align: center;
}

.vp-error-page__card {
	max-width: 760px;
	margin: 54px auto;
}

.vp-error-page__code {
	margin: 0;
	color: var(--vp-violet);
	font-size: clamp(70px, 14vw, 140px);
	font-weight: 800;
	line-height: 1;
}

.vp-error-page__card h1 {
	margin: 18px 0 8px;
	color: var(--vp-ink);
}

.vp-error-page__actions {
	display: flex;
	max-width: 560px;
	justify-content: center;
	gap: 12px;
	margin: 28px auto 0;
}

.vp-error-page__actions .vp-search-form {
	flex: 1;
}

@media (max-width: 1000px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.vp-js .menu-toggle {
		display: grid;
		justify-self: end;
	}

	.primary-navigation {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.primary-menu {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.vp-js .primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		max-height: calc(100vh - 82px);
		overflow-y: auto;
		padding: 18px 20px 26px;
		border-top: 1px solid var(--vp-line);
		background: #fff;
		box-shadow: 0 24px 48px -34px rgba(20, 20, 52, 0.5);
	}

	.vp-js .primary-navigation.is-open {
		display: block;
	}

	.vp-js .primary-menu {
		display: grid;
		width: 100%;
		justify-content: stretch;
		gap: 3px;
	}

	.vp-js .primary-menu > li {
		width: 100%;
	}

	.vp-js .primary-menu a {
		width: 100%;
		font-size: var(--vp-menu-font-size);
	}

	.vp-js .primary-menu > .menu-item-has-children {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		align-items: center;
	}

	.vp-js .submenu-toggle {
		display: grid;
		width: 40px;
		height: 40px;
		place-items: center;
		padding: 0;
		border: 1px solid var(--vp-line);
		border-radius: 9px;
		background: #fff;
		color: var(--vp-ink);
		cursor: pointer;
	}

	.vp-js .submenu-toggle span {
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 160ms ease;
	}

	.vp-js .submenu-toggle[aria-expanded="true"] span {
		transform: translateY(2px) rotate(225deg);
	}

	.vp-js .primary-menu .sub-menu {
		position: static;
		display: none;
		grid-column: 1 / -1;
		padding: 0 0 0 18px;
		border: 0;
		box-shadow: none;
	}

	.vp-js .primary-menu li:not(.is-submenu-open):hover > .sub-menu,
	.vp-js .primary-menu li:not(.is-submenu-open):focus-within > .sub-menu {
		display: none;
	}

	.vp-js .primary-menu .is-submenu-open > .sub-menu {
		display: grid;
	}

	.vp-article-layout {
		display: block;
	}

	.vp-content-shell--with-sidebar .vp-content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.vp-widget-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 32px;
	}

	.vp-toc {
		top: 92px;
		z-index: 15;
		padding: 0;
		margin-bottom: 18px;
		box-shadow: 0 12px 30px -24px rgba(32, 28, 70, 0.65);
	}

	.admin-bar .vp-toc {
		top: 124px;
	}

	.vp-toc__toggle {
		display: flex;
		width: 100%;
		min-height: 46px;
		align-items: center;
		justify-content: space-between;
		padding: 10px 14px;
		border: 0;
		border-radius: 14px;
		background: #fff;
		color: var(--vp-ink);
		font: inherit;
		font-weight: 750;
		cursor: pointer;
	}

	.vp-toc__toggle i {
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--vp-violet);
		border-bottom: 2px solid var(--vp-violet);
		transform: translateY(-2px) rotate(45deg);
		transition: transform 160ms ease;
	}

	.vp-toc__toggle[aria-expanded="true"] i {
		transform: translateY(2px) rotate(225deg);
	}

	.vp-toc__nav {
		display: none;
		max-height: min(54vh, 440px);
		overflow-y: auto;
		padding: 2px 12px 13px;
		border-top: 1px solid var(--vp-line);
	}

	.vp-toc.is-open .vp-toc__nav {
		display: block;
	}

	.vp-toc__title {
		display: none;
	}

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

	.site-footer__inner:not(.has-social) {
		grid-template-columns: 1.4fr repeat(2, 1fr);
	}

	.vp-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vp-content-shell--with-sidebar.vp-listing-page .vp-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 940px) {
	.site-header__inner {
		width: min(100% - 40px, 1280px);
	}
}

@media (max-width: 680px) {
	:root {
		--vp-body-font-size: 16px;
		--vp-hero-title-size: 48px;
		--vp-section-title-size: 34px;
		--vp-article-title-size: 42px;
		--vp-accent-font-size: 12px;
		--vp-menu-font-size: 15px;
		--vp-card-font-size: 13px;
		--vp-button-font-size: 13px;
		--vp-footer-font-size: 14px;
	}

	.admin-bar .site-header {
		top: 46px;
	}
	.site-header__inner {
		width: calc(100% - 28px);
		min-height: 70px;
	}

	.site-branding .custom-logo {
		max-width: 170px;
		max-height: 44px;
	}

	.vp-js .primary-navigation {
		max-height: calc(100vh - 70px);
	}

	.site-footer__inner {
		width: calc(100% - 32px);
		grid-template-columns: 1fr 1fr;
		gap: 30px 20px;
	}

	.site-footer__inner:not(.has-social) {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__bottom {
		width: calc(100% - 32px);
	}

	.vp-content-shell,
	.vp-content-shell--article {
		width: calc(100% - 28px);
		padding: 24px 0 58px;
	}

	.vp-widget-sidebar,
	.vp-content-shell--with-sidebar.vp-listing-page .vp-post-grid {
		grid-template-columns: 1fr;
	}

	.vp-toc {
		top: 78px;
	}

	.admin-bar .vp-toc {
		top: 124px;
	}

	.vp-entry-content h2 {
		scroll-margin-top: 142px;
	}

	.vp-article,
	.vp-page,
	.vp-listing-header {
		border-radius: 15px;
	}

	.vp-article__header,
	.vp-page__header {
		border-radius: 15px 15px 0 0;
	}

	.vp-article__header h1,
	.vp-page__header h1,
	.vp-listing-header h1 {
		font-size: clamp(31px, 10vw, 43px);
	}

	.vp-entry-content p,
	.vp-entry-content li {
		font-size: 16px;
	}

	.vp-article__meta {
		display: grid;
		gap: 7px;
	}

	.vp-article__meta span + span::before {
		display: none;
	}

	.vp-post-grid,
	.vp-post-navigation {
		grid-template-columns: 1fr;
	}

	.vp-post-navigation div:last-child {
		text-align: left;
	}

	.vp-error-page__actions,
	.vp-search-form {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
