/*
Theme Name: Lendly Tema
Author: lendly.lt
Author URI: https://lendly.lt/
Description: Savarankiška Lendly.lt tema, suderinta su Lendly paskolų palyginimo įskiepiu.
Version: 1.0.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: lendly-tema
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--lnd-ink: #15263c;
	--lnd-text: #263b52;
	--lnd-muted: #607087;
	--lnd-blue: #2267a8;
	--lnd-blue-dark: #174d7d;
	--lnd-blue-soft: #dcecf9;
	--lnd-blue-pale: #edf4fb;
	--lnd-bg: #f4f7fb;
	--lnd-line: #d6e1ed;
	--lnd-white: #fff;
	--lnd-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--lnd-shell: 1200px;
	--lnd-reading: 760px;
	--lnd-shadow: 0 14px 38px rgba(21, 54, 87, 0.08);
	--lnd-shadow-soft: 0 8px 24px rgba(21, 54, 87, 0.06);
}

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

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

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

.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: 11px 15px !important;
	clip: auto !important;
	clip-path: none !important;
	border-radius: 7px;
	background: var(--lnd-ink);
	color: #fff;
}

/* Site chrome. No content wrapper is opened here, so plugin canvases stay full width. */
.lnd-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(214, 225, 237, 0.9);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 3px 16px rgba(21, 54, 87, 0.035);
	backdrop-filter: blur(12px);
}

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

.lnd-header__inner {
	display: grid;
	width: min(var(--lnd-shell), calc(100% - 48px));
	min-height: 76px;
	grid-template-columns: minmax(170px, auto) 1fr;
	align-items: center;
	gap: 38px;
	margin-inline: auto;
}

.lnd-brand {
	min-width: 0;
}

.lnd-brand .custom-logo-link,
.lnd-footer__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.lnd-brand .custom-logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 50px;
}

.lnd-brand__name {
	color: var(--lnd-blue-dark);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.045em;
	text-decoration: none;
}

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

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

.lnd-menu {
	display: flex;
	align-items: center;
	gap: clamp(4px, 1vw, 16px);
}

.lnd-menu li {
	position: relative;
}

.lnd-menu a {
	position: relative;
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	padding: 8px 9px;
	color: var(--lnd-ink);
	font-size: 15px;
	font-weight: 680;
	text-decoration: none;
	transition: color 150ms ease;
}

.lnd-menu > li > a::before {
	position: absolute;
	right: 9px;
	bottom: 3px;
	left: 9px;
	height: 2px;
	border-radius: 999px;
	background: var(--lnd-blue);
	content: "";
	opacity: 0;
	transform: scaleX(0.45);
	transition: opacity 150ms ease, transform 150ms ease;
}

.lnd-menu a:hover,
.lnd-menu a:focus-visible,
.lnd-menu .current-menu-item > a,
.lnd-menu .current-menu-ancestor > a,
.lnd-menu .current_page_item > a {
	color: var(--lnd-blue);
}

.lnd-menu > li > a:hover::before,
.lnd-menu > li > a:focus-visible::before,
.lnd-menu > .current-menu-item > a::before,
.lnd-menu > .current-menu-ancestor > a::before,
.lnd-menu > .current_page_item > a::before {
	opacity: 1;
	transform: scaleX(1);
}

.lnd-menu .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 30;
	display: none;
	min-width: 235px;
	padding: 7px;
	border: 1px solid var(--lnd-line);
	border-top: 3px solid var(--lnd-blue);
	border-radius: 6px 6px 11px 11px;
	background: #fff;
	box-shadow: var(--lnd-shadow);
}

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

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

.lnd-menu .sub-menu a {
	width: 100%;
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 7px;
	font-size: 14px;
}

.lnd-menu .sub-menu a:hover,
.lnd-menu .sub-menu a:focus-visible {
	background: var(--lnd-blue-pale);
}

.lnd-nav-toggle,
.lnd-submenu-toggle {
	display: none;
}

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

	.lnd-menu > .menu-item-has-children > a::after {
		display: block;
		width: 6px;
		height: 6px;
		flex: 0 0 6px;
		border-right: 1.6px solid currentColor;
		border-bottom: 1.6px solid currentColor;
		content: "";
		transform: translateY(-2px) rotate(45deg);
	}
}

/* Footer mirrors the requested information hierarchy but uses Lendly's product palette. */
.lnd-footer {
	border-top: 4px solid var(--lnd-blue);
	background: #f8fafc;
	color: var(--lnd-text);
}

.lnd-footer__grid {
	display: grid;
	width: min(var(--lnd-shell), calc(100% - 48px));
	grid-template-columns: minmax(230px, 1.2fr) minmax(175px, 0.9fr) minmax(210px, 1.1fr) minmax(210px, 1fr);
	gap: clamp(30px, 4vw, 64px);
	padding: 64px 0 54px;
	margin-inline: auto;
}

.lnd-footer__brand,
.lnd-footer__column {
	min-width: 0;
}

.lnd-footer__logo {
	margin-bottom: 25px;
}

.lnd-footer__logo .custom-logo {
	display: block;
	width: auto;
	max-width: 245px;
	max-height: 78px;
}

.lnd-footer__description {
	max-width: 31ch;
	margin: 0;
	font-size: 15px;
	line-height: 1.72;
}

.lnd-footer__description strong {
	color: var(--lnd-ink);
}

.lnd-footer__contact {
	display: grid;
	gap: 4px;
	margin-top: 24px;
	font-size: 14px;
	font-style: normal;
}

.lnd-footer__contact strong {
	color: var(--lnd-ink);
}

.lnd-footer__contact a,
.lnd-footer__menu a,
.lnd-footer-widget a {
	color: var(--lnd-text);
	text-decoration-color: rgba(34, 103, 168, 0.35);
	text-underline-offset: 3px;
}

.lnd-footer__column .lnd-footer-widget a {
	text-decoration: none;
}

.lnd-footer__contact a:hover,
.lnd-footer__menu a:hover,
.lnd-footer-widget a:hover,
.lnd-footer__contact a:focus-visible,
.lnd-footer__menu a:focus-visible,
.lnd-footer-widget a:focus-visible {
	color: var(--lnd-blue);
}

.lnd-footer__title,
.lnd-footer-widget .widget-title,
.lnd-footer-widget .wp-block-heading {
	margin: 3px 0 20px;
	color: var(--lnd-ink);
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 760;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.lnd-footer__menu,
.lnd-footer-widget :where(ul, ol) {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lnd-footer__menu a,
.lnd-footer-widget li,
.lnd-footer-widget p {
	font-size: 14px;
	line-height: 1.55;
}

.lnd-footer__menu a {
	text-decoration: none;
}

.lnd-footer-widget {
	margin: 0;
}

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

.lnd-footer-widget > :first-child {
	margin-top: 0;
}

.lnd-footer-widget > :last-child {
	margin-bottom: 0;
}

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

.lnd-footer__bottom {
	display: flex;
	width: min(var(--lnd-shell), calc(100% - 48px));
	justify-content: space-between;
	gap: 24px;
	padding: 19px 0 22px;
	border-top: 1px solid var(--lnd-line);
	margin-inline: auto;
	color: var(--lnd-muted);
}

.lnd-footer__bottom p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

/* Plugin canvas: intentionally no width, padding, type or descendant rules. */
.lnd-plugin-canvas {
	display: block;
	min-height: 1px;
}

/* Shared editorial shells. */
.lnd-page-shell,
.lnd-article-shell,
.lnd-listing {
	width: min(1120px, calc(100% - 48px));
	min-height: 56vh;
	padding: 36px 0 78px;
	margin-inline: auto;
}

.lnd-page-shell {
	width: min(920px, calc(100% - 48px));
}

.lnd-crumbs {
	margin-bottom: 21px;
	color: var(--lnd-muted);
}

.lnd-crumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lnd-crumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
}

.lnd-crumbs li + li::before {
	margin-right: 6px;
	color: #a6b2bf;
	content: "/";
}

.lnd-crumbs a {
	color: var(--lnd-blue);
	text-decoration: none;
}

.lnd-crumbs [aria-current="page"] {
	max-width: 58ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Standard pages use a restrained document presentation. */
.lnd-page {
	overflow: hidden;
	border: 1px solid var(--lnd-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--lnd-shadow-soft);
}

.lnd-page__header {
	padding: clamp(34px, 6vw, 62px) clamp(24px, 7vw, 72px) 30px;
	border-bottom: 1px solid var(--lnd-line);
	background: linear-gradient(135deg, #f8fbfe 0%, var(--lnd-blue-pale) 100%);
}

.lnd-page__header h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--lnd-ink);
	font-size: clamp(35px, 5.4vw, 56px);
	font-weight: 780;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.lnd-page__content {
	max-width: var(--lnd-reading);
	padding: clamp(32px, 6vw, 60px) clamp(24px, 7vw, 72px);
	margin-inline: auto;
}

/* Single article: TOC is deliberately retained on the left. */
.lnd-article-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 780px);
	align-items: start;
	justify-content: center;
	gap: 48px;
}

.lnd-article-layout--plain {
	grid-template-columns: minmax(0, 780px);
}

.lnd-toc {
	position: sticky;
	top: 101px;
	border: 1px solid var(--lnd-line);
	border-radius: 10px;
	background: #f9fbfd;
}

.admin-bar .lnd-toc {
	top: 133px;
}

.lnd-toc__toggle {
	display: none;
}

.lnd-toc__panel {
	padding: 17px 15px 18px;
}

.lnd-toc__heading {
	display: block;
	padding: 0 7px 12px;
	border-bottom: 1px solid var(--lnd-line);
	margin-bottom: 8px;
	color: var(--lnd-ink);
	font-size: 13px;
	font-weight: 780;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

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

.lnd-toc a {
	display: block;
	padding: 7px;
	border-radius: 6px;
	color: #41556c;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background 150ms ease, color 150ms ease;
}

.lnd-toc a:hover,
.lnd-toc a:focus-visible,
.lnd-toc a.is-current {
	background: var(--lnd-blue-soft);
	color: var(--lnd-blue-dark);
}

.lnd-article {
	min-width: 0;
}

.lnd-article__header {
	position: relative;
	padding: 5px 0 27px 23px;
	border-bottom: 1px solid var(--lnd-line);
}

.lnd-article__header::before {
	position: absolute;
	top: 8px;
	bottom: 28px;
	left: 0;
	width: 4px;
	border-radius: 99px;
	background: linear-gradient(var(--lnd-blue), #55a7ce);
	content: "";
}

.lnd-article__category {
	display: inline-flex;
	margin-bottom: 12px;
	color: var(--lnd-blue);
	font-size: 12px;
	font-weight: 780;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
}

.lnd-article__header h1 {
	max-width: 17ch;
	margin: 0;
	color: var(--lnd-ink);
	font-size: clamp(38px, 5.6vw, 60px);
	font-weight: 780;
	line-height: 1.06;
	letter-spacing: -0.05em;
}

.lnd-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-top: 19px;
	color: var(--lnd-muted);
	font-size: 13px;
	font-weight: 550;
}

.lnd-article__meta a {
	color: var(--lnd-blue-dark);
	font-weight: 650;
	text-decoration-color: rgba(34, 103, 168, 0.35);
	text-underline-offset: 3px;
}

.lnd-article__meta > * + *::before {
	margin-right: 22px;
	color: #b2bfcb;
	content: "•";
}

#lendly-author {
	scroll-margin-top: 100px;
}

.admin-bar #lendly-author {
	scroll-margin-top: 132px;
}

.lnd-article__media {
	margin: 30px 0 0;
}

.lnd-article__media img {
	display: block;
	width: 100%;
	max-height: 500px;
	border-radius: 12px;
	object-fit: cover;
}

.lnd-article__content {
	padding-top: 37px;
}

.lnd-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding-top: 25px;
	border-top: 1px solid var(--lnd-line);
	margin-top: 36px;
}

.lnd-article__tags a {
	padding: 5px 10px;
	border: 1px solid var(--lnd-line);
	border-radius: 999px;
	background: #fff;
	color: var(--lnd-blue-dark);
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

/* Theme-owned prose. Low-specificity descendants let plugin components keep their rules. */
.lnd-prose {
	color: var(--lnd-text);
}

.lnd-prose > :first-child {
	margin-top: 0;
}

.lnd-prose > :last-child {
	margin-bottom: 0;
}

.lnd-prose :where(h2, h3, h4) {
	color: var(--lnd-ink);
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.lnd-prose :where(h2) {
	margin: 1.55em 0 0.55em;
	font-size: clamp(25px, 3.5vw, 34px);
	scroll-margin-top: 112px;
}

.lnd-prose :where(h3) {
	margin: 1.4em 0 0.55em;
	font-size: clamp(20px, 2.7vw, 25px);
}

.lnd-prose :where(h4) {
	margin: 1.35em 0 0.5em;
	font-size: 19px;
}

.lnd-prose :where(p, li) {
	font-size: 16px;
	line-height: 1.78;
}

.lnd-prose :where(a) {
	color: var(--lnd-blue);
	text-decoration-color: rgba(34, 103, 168, 0.4);
	text-underline-offset: 3px;
}

.lnd-prose :where(blockquote) {
	padding: 18px 22px;
	border-left: 4px solid var(--lnd-blue);
	border-radius: 0 9px 9px 0;
	margin: 28px 0;
	background: var(--lnd-blue-pale);
	color: var(--lnd-ink);
}

.lnd-prose :where(blockquote p) {
	margin: 0;
}

.lnd-prose :where(ul, ol) {
	padding-left: 1.4em;
}

.lnd-prose :where(li + li) {
	margin-top: 0.35em;
}

.lnd-prose :where(table) {
	width: 100%;
	border: 1px solid var(--lnd-line);
	border-collapse: collapse;
	background: #fff;
}

.lnd-prose :where(th, td) {
	padding: 12px 14px;
	border-bottom: 1px solid var(--lnd-line);
	text-align: left;
	vertical-align: top;
}

.lnd-prose :where(th) {
	background: var(--lnd-blue-pale);
	color: var(--lnd-ink);
	font-size: 13px;
	font-weight: 750;
}

.lnd-prose :where(td) {
	font-size: 14px;
}

.lnd-prose :where(.wp-block-table) {
	overflow-x: auto;
	border: 1px solid var(--lnd-line);
	border-radius: 10px;
	margin: 30px 0;
	box-shadow: var(--lnd-shadow-soft);
}

.lnd-prose :where(.wp-block-table table) {
	border: 0;
	margin: 0;
}

.lnd-prose :where(img) {
	max-width: 100%;
	height: auto;
}

.lnd-page-links {
	margin-top: 25px;
}

/* Posts index, archives and search. */
.lnd-listing__header {
	padding: clamp(36px, 7vw, 72px);
	border-radius: 16px;
	margin-bottom: 34px;
	background:
		linear-gradient(125deg, rgba(23, 77, 125, 0.98), rgba(34, 103, 168, 0.93)),
		radial-gradient(circle at 88% 20%, rgba(85, 178, 213, 0.45), transparent 37%);
	color: #fff;
}

.lnd-listing__header--compact {
	padding: clamp(28px, 5vw, 50px);
}

.lnd-kicker {
	margin: 0 0 9px !important;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px !important;
	font-weight: 760;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.lnd-listing__header h1 {
	max-width: 18ch;
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 6vw, 62px);
	font-weight: 780;
	line-height: 1.05;
	letter-spacing: -0.05em;
}

.lnd-listing__header > p:not(.lnd-kicker),
.lnd-listing__header > div {
	max-width: 650px;
	margin: 15px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.6;
}

.lnd-listing__header > div p {
	margin: 0;
}

.lnd-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.lnd-card {
	overflow: hidden;
	border: 1px solid var(--lnd-line);
	border-radius: 13px;
	background: #fff;
	box-shadow: var(--lnd-shadow-soft);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lnd-card:hover {
	border-color: #b8cddd;
	box-shadow: var(--lnd-shadow);
	transform: translateY(-2px);
}

.lnd-card__image {
	display: block;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: var(--lnd-blue-pale);
}

.lnd-card__image img,
.lnd-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	transition: transform 220ms ease;
}

.lnd-card__placeholder {
	background:
		linear-gradient(145deg, rgba(34, 103, 168, 0.2), rgba(57, 160, 199, 0.07)),
		var(--lnd-blue-pale);
}

.lnd-card:hover .lnd-card__image img {
	transform: scale(1.025);
}

.lnd-card__body {
	padding: 20px;
}

.lnd-card__body time {
	color: var(--lnd-blue);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.lnd-card__body h2 {
	margin: 9px 0 10px;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

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

.lnd-card__body p {
	margin: 0 0 15px;
	color: var(--lnd-muted);
	font-size: 13px;
	line-height: 1.65;
}

.lnd-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--lnd-blue);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.lnd-card__link span {
	font-size: 15px;
	line-height: 1;
	transition: transform 150ms ease;
}

.archive .lnd-listing__header h1 {
	max-width: 24ch;
	font-size: clamp(31px, 4.4vw, 48px);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

.lnd-card__link:hover span {
	transform: translateX(3px);
}

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

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

.nav-links .page-numbers {
	display: inline-grid;
	min-width: 39px;
	height: 39px;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--lnd-line);
	border-radius: 7px;
	background: #fff;
	color: var(--lnd-blue-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

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

.lnd-empty,
.lnd-error__card {
	padding: 34px;
	border: 1px solid var(--lnd-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--lnd-shadow-soft);
}

.lnd-error {
	display: grid;
	width: min(760px, calc(100% - 48px));
	min-height: 62vh;
	place-items: center;
	padding: 60px 0 82px;
	margin-inline: auto;
	text-align: center;
}

.lnd-error__number {
	margin: 0;
	color: var(--lnd-blue);
	font-size: 72px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
}

.lnd-error h1 {
	margin: 12px 0 10px;
	color: var(--lnd-ink);
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.lnd-error__actions {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	margin-top: 25px;
}

.lnd-button,
.lnd-search button {
	display: inline-flex;
	min-height: 43px;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--lnd-blue);
	border-radius: 8px;
	background: var(--lnd-blue);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 720;
	text-decoration: none;
	cursor: pointer;
}

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

.lnd-search label {
	display: flex;
}

.lnd-search input {
	width: 220px;
	min-height: 43px;
	padding: 9px 12px;
	border: 1px solid var(--lnd-line);
	border-radius: 8px;
	background: #fff;
	color: var(--lnd-text);
	font: inherit;
	font-size: 14px;
}

@media (max-width: 1020px) {
	.lnd-footer__grid {
		grid-template-columns: 1.25fr repeat(2, 1fr);
	}

	.lnd-footer__column:last-child {
		grid-column: 2 / -1;
	}

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

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

	.lnd-js .lnd-nav-toggle {
		display: grid;
		width: 42px;
		height: 42px;
		place-items: center;
		padding: 10px;
		border: 1px solid var(--lnd-line);
		border-radius: 8px;
		background: #fff;
		color: var(--lnd-ink);
		cursor: pointer;
	}

	.lnd-nav-toggle > span:not(.screen-reader-text) {
		grid-area: 1 / 1;
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 99px;
		background: currentColor;
		transition: transform 170ms ease, opacity 170ms ease;
	}

	.lnd-nav-toggle > span:nth-child(1) {
		transform: translateY(-6px);
	}

	.lnd-nav-toggle > span:nth-child(3) {
		transform: translateY(6px);
	}

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

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

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

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

	.lnd-js .lnd-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		max-height: calc(100vh - 76px);
		overflow-y: auto;
		padding: 14px 20px 22px;
		border-top: 1px solid var(--lnd-line);
		background: #fff;
		box-shadow: 0 20px 36px rgba(21, 54, 87, 0.13);
	}

	.lnd-js .lnd-navigation.is-visible {
		display: block;
	}

	.lnd-js .lnd-menu {
		display: grid;
		width: 100%;
		gap: 2px;
	}

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

	.lnd-js .lnd-menu a {
		width: 100%;
		font-size: 15px;
	}

	.lnd-menu > li > a::before {
		display: none;
	}

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

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

	.lnd-submenu-toggle::before {
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		content: "";
		transform: translateY(-2px) rotate(45deg);
		transition: transform 150ms ease;
	}

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

	.lnd-js .lnd-menu .sub-menu {
		position: static;
		display: none;
		grid-column: 1 / -1;
		padding: 3px 0 5px 15px;
		border: 0;
		box-shadow: none;
	}

	.lnd-js .lnd-menu li:not(.is-expanded):hover > .sub-menu,
	.lnd-js .lnd-menu li:not(.is-expanded):focus-within > .sub-menu {
		display: none;
	}

	.lnd-js .lnd-menu .is-expanded > .sub-menu {
		display: grid;
	}

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

	.lnd-toc {
		top: 91px;
		z-index: 20;
		margin-bottom: 23px;
		background: #fff;
		box-shadow: var(--lnd-shadow-soft);
	}

	.admin-bar .lnd-toc {
		top: 123px;
	}

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

	.lnd-toc__toggle i {
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--lnd-blue);
		border-bottom: 2px solid var(--lnd-blue);
		transform: translateY(-2px) rotate(45deg);
		transition: transform 150ms ease;
	}

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

	.lnd-toc__panel {
		display: none;
		max-height: min(52vh, 400px);
		overflow-y: auto;
		padding: 8px 12px 13px;
		border-top: 1px solid var(--lnd-line);
	}

	.lnd-toc.is-open .lnd-toc__panel {
		display: block;
	}

	.lnd-toc__heading {
		display: none;
	}
}

@media (max-width: 700px) {
	.admin-bar .lnd-header {
		top: 46px;
	}

	.lnd-header__inner {
		width: calc(100% - 28px);
		min-height: 68px;
	}

	.lnd-brand .custom-logo {
		max-width: 160px;
		max-height: 44px;
	}

	.lnd-js .lnd-navigation {
		max-height: calc(100vh - 68px);
	}

	.lnd-footer__grid {
		width: calc(100% - 32px);
		grid-template-columns: 1fr 1fr;
		gap: 34px 22px;
		padding: 46px 0 40px;
	}

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

	.lnd-footer__column:last-child {
		grid-column: 1 / -1;
	}

	.lnd-footer__description {
		max-width: 42ch;
	}

	.lnd-footer__bottom {
		width: calc(100% - 32px);
		flex-direction: column;
		gap: 6px;
	}

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

	.lnd-crumbs {
		margin-bottom: 15px;
	}

	.lnd-crumbs li {
		font-size: 12px;
	}

	.lnd-page__header {
		padding: 30px 22px 24px;
	}

	.lnd-page__content {
		padding: 30px 22px 42px;
	}

	.lnd-article__header {
		padding: 2px 0 23px 17px;
	}

	.lnd-article__header h1 {
		font-size: clamp(33px, 10vw, 46px);
	}

	.lnd-article__meta {
		display: grid;
		gap: 5px;
	}

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

	.lnd-article__content {
		padding-top: 29px;
	}

	.lnd-prose :where(p, li) {
		font-size: 15px;
		line-height: 1.75;
	}

	.lnd-prose :where(h2) {
		scroll-margin-top: 135px;
	}

	.lnd-card-grid {
		grid-template-columns: 1fr;
	}

	.lnd-listing__header {
		padding: 32px 25px;
	}

	.archive .lnd-listing__header h1 {
		font-size: clamp(27px, 8.6vw, 34px);
		line-height: 1.14;
	}

	.lnd-error {
		width: calc(100% - 28px);
	}

	.lnd-error__card {
		padding: 27px 21px;
	}

	.lnd-error__actions,
	.lnd-search {
		flex-direction: column;
	}

	.lnd-search label,
	.lnd-search input,
	.lnd-search button,
	.lnd-button {
		width: 100%;
	}

	.lnd-toc {
		top: 81px;
	}

	.admin-bar .lnd-toc {
		top: 127px;
	}

	#lendly-author {
		scroll-margin-top: 90px;
	}

	.admin-bar #lendly-author {
		scroll-margin-top: 134px;
	}
}

@media (max-width: 460px) {
	.lnd-footer__grid {
		grid-template-columns: 1fr;
	}

	.lnd-footer__brand,
	.lnd-footer__column:last-child {
		grid-column: auto;
	}
}

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