.akv2-code-section,
.akv2-code-archive,
.akv2-code-single {
	--akv2-code-ink: #221f47;
	--akv2-code-primary: #5b51d8;
	color: var(--akv2-code-ink);
}

.akv2-code-section {
	position: relative;
	margin: clamp(3rem, 7vw, 6rem) auto;
	padding: clamp(1.25rem, 4vw, 3.5rem) 0;
	overflow: hidden;
	
}

.akv2-code-section-inner {
	margin-inline: auto;
}

.akv2-code-archive-inner,
.akv2-code-single-inner {
	width: var(--view-container, 1300px);
	max-width: 95%;
	margin-inline: auto;
}

.akv2-code-section-heading,
.akv2-code-archive-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.akv2-code-section-eyebrow {
	color: var(--akv2-code-primary);
	font-size: .85rem;
	font-weight: 700;
}

.akv2-code-section-heading h2,
.akv2-code-archive-heading h1 {
	margin: .3rem 0 0;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	font-weight: 800;
}

.akv2-code-section-all {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .75rem 1rem;
	border: 1px solid rgba(91, 81, 216, .2);
	border-radius: 999px;
	color: var(--akv2-code-primary);
	text-decoration: none;
	transition: transform .2s ease, background .2s ease;
}

.akv2-code-section-all:hover {
	transform: translateY(-2px);
	background: #fff;
}

.akv2-code-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.akv2-code-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: clamp(1.25rem, 3vw, 1.8rem);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, .76);
	box-shadow: 0 14px 36px rgba(34, 31, 71, .08);
	backdrop-filter: blur(18px);
	transition: transform .25s ease, box-shadow .25s ease;
}

.akv2-code-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 44px rgba(34, 31, 71, .13);
}

.akv2-code-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.akv2-code-icon {
	display: inline-grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid rgba(91, 81, 216, .18);
	border-radius: 15px;
	background: linear-gradient(145deg, #f0eeff, #fff);
	color: var(--akv2-code-primary);
}

.akv2-code-icon svg {
	width: 24px;
	height: 24px;
}

.akv2-code-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.akv2-code-language,
.akv2-code-category,
.akv2-code-card-categories a {
	padding: .35rem .7rem;
	border-radius: 999px;
	background: #f1efff;
	color: #5b51d8;
	font-size: .78rem;
	font-weight: 700;
}

.akv2-code-card-title {
	margin: 1.2rem 0 .65rem;
	font-size: 1.2rem;
	line-height: 1.55;
}

.akv2-code-card-title a {
	color: inherit;
	text-decoration: none;
}

.akv2-code-card-excerpt {
	display: -webkit-box;
	min-height: 3.2em;
	margin: 0 0 1rem;
	overflow: hidden;
	color: #69677b;
	line-height: 1.75;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.akv2-code-card-categories {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-bottom: 1rem;
}

.akv2-code-card-categories a {
	background: #f4f5f8;
	color: #5c6070;
	text-decoration: none;
}

.akv2-code-card-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: .9rem;
	border-top: 1px solid #eeedf5;
	color: var(--akv2-code-primary);
	font-weight: 800;
	text-decoration: none;
}

.akv2-code-card-cta span:last-child {
	display: inline-grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 50%;
	background: #f1efff;
	transition: transform .25s ease;
}

.akv2-code-card-cta:hover span:last-child {
	transform: translateX(-5px);
}

.akv2-code-archive {
	padding: 2rem 0 5rem;
}

.akv2-code-archive-heading {
	margin: 1.5rem 0 2rem;
}

.akv2-code-archive-heading p {
	margin: .55rem 0 0;
	color: #727084;
}

.akv2-code-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	color: #858397;
}

.akv2-code-breadcrumb a {
	color: var(--akv2-code-primary);
	text-decoration: none;
}

.akv2-code-pagination {
	margin-top: 2rem;
}

.akv2-code-single {
	padding: 2rem 0 5rem;
}

.akv2-code-single-header {
	margin: 1.5rem 0;
	padding: clamp(1.4rem, 4vw, 2.6rem);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 1.5rem;
	background:
		radial-gradient(circle at 100% 0, rgba(91, 81, 216, .14), transparent 18rem),
		rgba(255, 255, 255, .8);
	box-shadow: 0 16px 45px rgba(34, 31, 71, .08);
	backdrop-filter: blur(16px);
}

.akv2-code-single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .8rem;
}

.akv2-code-single-categories a {
	color: var(--akv2-code-primary);
	text-decoration: none;
}

.akv2-code-single h1 {
	margin: .4rem 0 1rem;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1.4;
}

.akv2-code-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .65rem;
	color: #6d6a80;
}

.akv2-code-type,
.akv2-code-language {
	padding: .4rem .75rem;
	border-radius: 999px;
	background: #f0eeff;
	color: var(--akv2-code-primary);
	font-size: .82rem;
	font-weight: 700;
}

.akv2-code-intro,
.akv2-code-content,
.akv2-code-comments {
	margin: 1.5rem 0;
	padding: clamp(1.2rem, 3vw, 2rem);
	border: 1px solid #e9e7f2;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 10px 28px rgba(34, 31, 71, .05);
	line-height: 1.9;
}

.akv2-code-block {
	margin: 1.5rem 0;
	padding: 1rem 0;
	overflow: auto;
	border: 1px solid #293548;
	border-radius: 1rem;
	background: #101827;
	color: #dce5f2;
	direction: ltr;
	font: 13px/1.75 Consolas, Monaco, monospace;
	tab-size: 4;
}

.akv2-code-source-area {
	min-width: 0;
	margin: 1.5rem 0;
}

.akv2-code-source-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: -.65rem;
}

.akv2-code-copy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 2.65rem;
	max-width: 100%;
	padding: .55rem .9rem;
	border: 1px solid rgba(91, 81, 216, .24);
	border-radius: .8rem;
	background: #fff;
	color: var(--akv2-code-primary);
	font: inherit;
	font-size: .9rem;
	font-weight: 750;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.akv2-code-copy-button svg {
	flex: 0 0 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
	stroke: currentColor;
}

.akv2-code-copy-button:hover {
	transform: translateY(-1px);
	border-color: var(--akv2-code-primary);
	background: #f6f4ff;
}

.akv2-code-copy-button:focus-visible {
	outline: 3px solid rgba(91, 81, 216, .35);
	outline-offset: 2px;
}

.akv2-code-copy-button:disabled {
	cursor: wait;
	opacity: .7;
}

.akv2-code-copy-status {
	min-height: 1.5em;
	color: #18794e;
	font-size: .88rem;
}

.akv2-code-copy-status.is-error {
	color: #b42318;
}

.akv2-code-copy-source {
	display: none !important;
}

.akv2-code-source {
	display: block;
	min-width: max-content;
}

.akv2-code-line {
	display: flex;
	min-height: 1.75em;
	padding-inline: 1rem;
	white-space: pre;
}

.akv2-code-line-number {
	position: sticky;
	left: 0;
	flex: 0 0 3.2em;
	margin-right: 1rem;
	padding-right: .8rem;
	border-right: 1px solid #293548;
	background: #101827;
	color: #738198;
	text-align: right;
	user-select: none;
}

.akv2-code-line-source {
	display: inline-block;
	min-width: 0;
}

.akv2-token-keyword { color: #c792ea; }
.akv2-token-string { color: #c3e88d; }
.akv2-token-comment { color: #7f8c9e; font-style: italic; }
.akv2-token-number { color: #f78c6c; }
.akv2-token-tag { color: #89ddff; }
.akv2-token-identifier { color: #82aaff; }

.akv2-code-voting {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 1.25rem 0;
}

.akv2-code-voting button {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .65rem .9rem;
	border: 1px solid #e7e5f1;
	border-radius: 999px;
	background: #fff;
	color: var(--akv2-code-ink);
	cursor: pointer;
}

.akv2-code-voting button.active {
	border-color: #bcb6fa;
	background: #f1efff;
	color: var(--akv2-code-primary);
}

.akv2-code-voting button:disabled {
	cursor: wait;
	opacity: .65;
}

.akv2-code-voting-message {
	color: #b42318;
}

.akv2-code-comments ol {
	padding-inline-start: 1.5rem;
}

.akv2-code-comments .comment {
	margin: 1rem 0;
	padding: 1rem;
	border-radius: .8rem;
	background: #f8f7fc;
}

.akv2-code-comments .comment-meta {
	color: #77748a;
	font-size: .88rem;
}

.akv2-code-comments .comment-reply-link {
	color: var(--akv2-code-primary);
	font-weight: 700;
	text-decoration: none;
}

.akv2-code-comments textarea,
.akv2-code-comments input[type="text"],
.akv2-code-comments input[type="email"],
.akv2-code-comments input[type="url"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: .75rem;
	border: 1px solid #dcd9e9;
	border-radius: .65rem;
	background: #fff;
}

.akv2-code-comments textarea {
	min-height: 140px;
}

.akv2-code-comments input[type="submit"] {
	box-sizing: border-box;
	display: block;
	width: auto;
	max-width: 100%;
	padding: .75rem 1.2rem;
	border: 0;
	border-radius: 999px;
	background: var(--akv2-code-primary);
	color: #fff;
	cursor: pointer;
}

.akv2-code-comments .form-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	max-width: 100%;
	margin-inline: 0;
	overflow: hidden;
}

.akv2-code-comments .form-submit input#submit.submit {
	flex: 0 1 auto;
	margin-inline: 0;
}

@media (max-width: 700px) {
	.akv2-code-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.akv2-code-section-heading,
	.akv2-code-archive-heading {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akv2-code-card,
	.akv2-code-card-cta span:last-child,
	.akv2-code-section-all {
		transition: none;
	}
}
