@font-face {
	font-family: "Kaman UI";
	src: url("../../assets/ui-font.woff2") format("woff2");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--kl-primary: #0158cc;
	--kl-primary-dark: #0649a4;
	--kl-text: #1d2433;
	--kl-muted: #6b7280;
	--kl-border: #e5e7eb;
	--kl-surface: #ffffff;
	--kl-page: #f5f7fa;
	--kl-radius: 18px;
	--kl-container: 1200px;
	font-family: "Kaman UI", Tahoma, sans-serif;
	color: var(--kl-text);
	background: var(--kl-page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	min-width: 320px;
	font-family: "Kaman UI", Tahoma, sans-serif;
	line-height: 1.8;
	color: var(--kl-text);
	background: var(--kl-page);
}
body, button, input, select, textarea { font-family: "Kaman UI", Tahoma, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--kl-primary); text-decoration: none; }
a:hover { color: var(--kl-primary-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgb(1 88 204 / 35%); outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.kl-container { width: min(var(--kl-container), calc(100% - 40px)); margin-inline: auto; }
.kl-skip-link {
	position: fixed;
	z-index: 100000;
	top: 12px;
	inset-inline-start: 12px;
	padding: 9px 16px;
	border-radius: 10px;
	color: #fff;
	background: var(--kl-primary);
	transform: translateY(-160%);
}
.kl-skip-link:focus { color: #fff; transform: translateY(0); }

.kl-site-header {
	position: relative;
	z-index: 100;
	background: var(--kl-surface);
	border-bottom: 1px solid var(--kl-border);
	box-shadow: 0 4px 18px rgb(16 24 40 / 4%);
}
.kl-site-header__inner {
	min-height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}
.kl-brand { flex: 0 0 auto; }
.kl-brand .custom-logo { display: block; width: auto; max-width: 220px; max-height: 58px; }
.kl-brand__text { color: var(--kl-text); font-size: 22px; font-weight: 800; }
.kl-primary-navigation { margin-inline-start: auto; }
.kl-nav-list, .kl-footer-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kl-nav-list a { display: block; padding: 12px 0; color: var(--kl-text); font-size: 14px; font-weight: 600; }
.kl-nav-list a:hover, .kl-nav-list .current-menu-item > a { color: var(--kl-primary); }
.kl-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--kl-border);
	border-radius: 12px;
	background: #fff;
}
.kl-menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 3px; background: var(--kl-text); }

.kl-main { min-height: 55vh; padding-block: 48px 72px; }
.kl-stage-notice, .kl-not-found { padding-block: clamp(64px, 12vw, 140px); text-align: center; }
.kl-stage-notice__eyebrow { color: var(--kl-primary); font-weight: 700; }
.kl-stage-notice h1, .kl-not-found h1 { margin: 8px 0 12px; font-size: clamp(26px, 4vw, 42px); line-height: 1.4; }
.kl-stage-notice p, .kl-not-found p { color: var(--kl-muted); }
.kl-not-found__code { color: var(--kl-primary) !important; font-size: 54px; font-weight: 900; }
.kl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 18px;
	padding: 10px 22px;
	border-radius: 12px;
	color: #fff;
	background: var(--kl-primary);
	font-weight: 700;
}
.kl-button:hover { color: #fff; background: var(--kl-primary-dark); }

.kl-content-layout { max-width: 920px; }
.kl-entry, .kl-empty-content, .kl-post-card {
	overflow: hidden;
	border: 1px solid var(--kl-border);
	border-radius: var(--kl-radius);
	background: var(--kl-surface);
	box-shadow: 0 8px 28px rgb(16 24 40 / 4%);
}
.kl-entry { padding: clamp(22px, 4vw, 48px); }
.kl-entry__header { margin-bottom: 28px; }
.kl-entry__title { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.45; }
.kl-entry__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--kl-muted); font-size: 13px; }
.kl-entry__thumbnail { margin: 0 0 28px; }
.kl-entry__thumbnail img { display: block; width: 100%; border-radius: 14px; }
.kl-entry__content { font-size: 16px; overflow-wrap: anywhere; }
.kl-entry__content > :first-child { margin-top: 0; }
.kl-entry__content h2, .kl-entry__content h3 { margin-top: 1.8em; }
.kl-entry__content img { border-radius: 12px; }
.kl-entry__footer { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--kl-muted); font-size: 13px; }
.kl-page-links { margin-top: 24px; }
.kl-post-navigation { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; }
.kl-post-navigation a { display: flex; flex-direction: column; max-width: 48%; padding: 16px; border: 1px solid var(--kl-border); border-radius: 12px; background: #fff; }
.kl-post-navigation__label { color: var(--kl-muted); font-size: 12px; }
.kl-post-navigation__title { font-weight: 700; }

.kl-archive-header { margin-bottom: 28px; }
.kl-page-title { margin: 0; font-size: clamp(25px, 3vw, 36px); }
.kl-archive-description { margin-top: 12px; color: var(--kl-muted); }
.kl-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kl-post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf1f6; }
.kl-post-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.kl-post-card:hover .kl-post-card__image img { transform: scale(1.035); }
.kl-post-card__body { padding: 20px; }
.kl-post-card__meta { color: var(--kl-muted); font-size: 12px; }
.kl-post-card__title { margin: 8px 0; font-size: 18px; line-height: 1.6; }
.kl-post-card__title a { color: var(--kl-text); }
.kl-post-card__excerpt { color: var(--kl-muted); font-size: 14px; }
.kl-post-card__more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; }
.kl-empty-content { padding: 28px; }
.kl-search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; }
.kl-search-form__input { min-width: 0; flex: 1; padding: 10px 14px; border: 1px solid var(--kl-border); border-radius: 10px; background: #fff; }
.kl-search-form__submit { padding: 10px 18px; border: 0; border-radius: 10px; color: #fff; background: var(--kl-primary); }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid var(--kl-border); border-radius: 9px; background: #fff; }
.page-numbers.current { color: #fff; border-color: var(--kl-primary); background: var(--kl-primary); }

.kl-site-footer { padding-block: 42px 24px; color: #e7edf6; background: #172235; }
.kl-site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.kl-site-footer__brand > a { color: #fff; font-size: 20px; font-weight: 800; }
.kl-site-footer__brand p { margin: 8px 0 0; color: #b9c4d4; font-size: 13px; }
.kl-footer-nav { flex-wrap: wrap; gap: 12px 22px; }
.kl-footer-nav a { color: #e7edf6; font-size: 13px; }
.kl-copyright { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 12%); color: #b9c4d4; font-size: 12px; }

.kl-comments { margin-top: 42px; }
.kl-comments__title { font-size: 22px; }
.kl-comment-list { padding-inline-start: 24px; }
.kl-comment-list .comment { margin-block: 18px; }
.kl-comment-list .comment-body { padding: 16px; border: 1px solid var(--kl-border); border-radius: 12px; background: #fff; }
.kl-comment-list .avatar { border-radius: 50%; }
.kl-comments .comment-respond { margin-top: 28px; }
.kl-comments input:not([type="checkbox"]), .kl-comments textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--kl-border); border-radius: 9px; }
.kl-comments input[type="submit"] { width: auto; padding: 10px 20px; border: 0; color: #fff; background: var(--kl-primary); cursor: pointer; }

@media (max-width: 900px) {
	.kl-site-header__inner { min-height: 72px; gap: 14px; }
	.kl-menu-toggle { display: block; order: 3; flex: 0 0 auto; }
	.kl-primary-navigation { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 10px 20px 18px; border-top: 1px solid var(--kl-border); background: #fff; box-shadow: 0 12px 22px rgb(16 24 40 / 8%); }
	.kl-primary-navigation.is-open { display: block; }
	.kl-nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.kl-nav-list a { padding: 11px 0; border-bottom: 1px solid #f0f2f5; }
	.kl-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kl-site-footer__inner { grid-template-columns: 1fr; }
	.kl-copyright { grid-column: auto; }
}
@media (max-width: 600px) {
	.kl-container { width: min(var(--kl-container), calc(100% - 28px)); }
	.kl-main { padding-block: 28px 48px; }
	.kl-post-grid { grid-template-columns: 1fr; gap: 16px; }
	.kl-entry { padding: 20px; }
	.kl-post-navigation { flex-direction: column; }
	.kl-post-navigation a { max-width: 100%; }
	.kl-search-form { flex-direction: column; }
}
