/*
Theme Name: KingTrader Pro
Theme URI: https://kingtrader.net/
Description: Fast, wide, responsive Genesis child theme for kingtrader.net. One stylesheet, one small script, no external font requests. Works with Site Kit and AdSense Auto ads.
Author: KingTrader
Version: 1.3.2
Template: genesis
Text Domain: kingtrader-pro
License: GPL-2.0-or-later
*/

/* ---------- Tokens ---------- */
@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #0c1b33;
	--body: #25324a;
	--muted: #57657c;
	--navy: #0f2f66;
	--navy-deep: #0a2350;
	--blue: #1549a8;
	--up: #0a8f5b;
	--up-bright: #2fd08c;
	--down: #d23b3b;
	--down-bright: #ff7a70;
	--paper: #fff;
	--mist: #f2f5fa;
	--line: #dde4ee;
	--display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--radius: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.65;
	overflow-wrap: break-word;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.01em;
}
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.25em; padding-left: 1.3em; }
blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--up); color: var(--ink); font-size: 1.08em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .94em; }
th, td { padding: .6em .75em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); font-family: var(--display); background: var(--mist); }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
pre { overflow-x: auto; padding: 1em; background: var(--mist); border-radius: 8px; }
input, button, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
	width: 100%;
	padding: .7em .9em;
	background: var(--paper);
	border: 1px solid #b9c4d4;
	border-radius: 8px;
}
button, input[type="submit"], input[type="button"], .button {
	display: inline-block;
	padding: .7em 1.25em;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-family: var(--display);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover, .button:hover { background: var(--navy-deep); color: #fff; }

.screen-reader-text, .screen-reader-shortcut, .screen-reader-text span {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-shortcut:focus, .screen-reader-text:focus {
	clip: auto !important;
	width: auto; height: auto;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
	white-space: normal;
}
.genesis-skip-link { margin: 0; padding: 0; list-style: none; }
.genesis-skip-link li { width: 0; height: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap .wrap { padding: 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin: 0 auto 1.25em; }
.wp-caption { max-width: 100%; }
.entry-content::after, .entry::after, .site-inner::after { content: ""; display: table; clear: both; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header > .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.title-area { flex: none; }
.site-title { margin: 0; line-height: 0; }
.site-title img { display: block; width: auto; height: 50px; }
.kt-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 10px 14px;
	background: var(--mist);
	color: var(--ink);
}
.kt-menu-toggle:hover { background: var(--line); color: var(--ink); }
.kt-menu-toggle__bars, .kt-menu-toggle__bars::before, .kt-menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.kt-menu-toggle__bars { position: relative; }
.kt-menu-toggle__bars::before, .kt-menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.kt-menu-toggle__bars::before { top: -6px; }
.kt-menu-toggle__bars::after { top: 6px; }

.kt-panel {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	max-height: calc(100vh - 68px);
	overflow-y: auto;
	padding: 12px 20px 24px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 18px 30px -18px rgba(12, 27, 51, .35);
}
.site-header.is-open .kt-panel { display: block; }
.nav-primary .wrap { padding: 0; }
.genesis-nav-menu { margin: 0; padding: 0; list-style: none; }
.genesis-nav-menu a {
	display: block;
	padding: 12px 4px;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .02em;
	text-decoration: none;
	border-bottom: 1px solid var(--mist);
}
.genesis-nav-menu a:hover, .genesis-nav-menu .current-menu-item > a { color: var(--blue); }
.genesis-nav-menu .sub-menu { margin: 0; padding: 0 0 0 16px; list-style: none; }
.genesis-nav-menu .sub-menu a { font-weight: 500; font-size: 14px; text-transform: none; }
.kt-header-search { margin-top: 16px; }

.search-form { position: relative; display: flex; margin: 0; }
.search-form input[type="search"] { padding-right: 96px; border-radius: 999px; }
.search-form input[type="submit"] {
	position: absolute; right: 4px; top: 4px; bottom: 4px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
}

@media (min-width: 1100px) {
	.kt-menu-toggle { display: none; }
	.kt-panel {
		display: flex; align-items: center; gap: 16px; flex: 1;
		position: static; max-height: none; overflow: visible;
		padding: 0; border: 0; box-shadow: none;
	}
	.nav-primary { flex: 1; }
	.genesis-nav-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
	.genesis-nav-menu > li { position: relative; }
	.genesis-nav-menu a { padding: 23px 11px; font-size: 14px; border: 0; }
	.genesis-nav-menu > li > a { box-shadow: inset 0 -3px 0 transparent; }
	.genesis-nav-menu > li:hover > a, .genesis-nav-menu > .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--up); }
	.genesis-nav-menu .sub-menu {
		display: none;
		position: absolute; left: 0; top: 100%;
		width: 290px;
		padding: 8px;
		background: var(--paper);
		border: 1px solid var(--line);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: 0 22px 34px -20px rgba(12, 27, 51, .45);
	}
	.genesis-nav-menu li { position: relative; }
	.genesis-nav-menu li:hover > .sub-menu,
	.genesis-nav-menu li:focus-within > .sub-menu,
	.genesis-nav-menu li.is-open > .sub-menu { display: block; }
	.genesis-nav-menu .sub-menu .sub-menu { left: 100%; top: -9px; border-radius: var(--radius); }
	.genesis-nav-menu .sub-menu a { padding: 10px 12px; border-radius: 6px; line-height: 1.35; }
	.genesis-nav-menu .sub-menu a:hover { background: var(--mist); }
	.kt-header-search { flex: none; width: 190px; margin: 0; }
	.kt-header-search input[type="search"] { padding: .5em 1em; font-size: 14px; background: var(--mist); border-color: transparent; }
	.kt-header-search input[type="submit"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); padding: 0; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
	.kt-header-search { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Home hero ---------- */
.kt-hero { position: relative; overflow: hidden; background: var(--navy); color: #dbe6f8; }
.kt-hero > .wrap { position: relative; padding-top: 44px; padding-bottom: 44px; }
.kt-hero__text { position: relative; z-index: 1; max-width: 640px; }
.kt-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(34px, 6.4vw, 68px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
}
.kt-hero__lead { max-width: 34em; margin: 0 0 24px; font-size: clamp(16px, 1.6vw, 19px); }
.kt-hero__search { max-width: 520px; }
.kt-hero__search input[type="search"] { padding: .9em 1.2em; padding-right: 110px; border-color: transparent; color: var(--ink); }
.kt-hero__search input[type="submit"] { background: var(--up); padding: 0 22px; font-size: 15px; }
.kt-hero__search input[type="submit"]:hover { background: #087a4d; }
.kt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.kt-chips a {
	display: block;
	padding: 6px 14px;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 999px;
}
.kt-chips a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.kt-hero__chart { display: none; }
@media (min-width: 860px) {
	.kt-hero > .wrap { padding-top: 68px; padding-bottom: 68px; }
	.kt-hero__chart {
		display: block;
		position: absolute; right: 20px; bottom: 0;
		width: min(46%, 540px); height: auto;
	}
	.kt-hero__chart line { stroke-width: 2; }
	.kt-hero__chart .up line { stroke: var(--up-bright); }
	.kt-hero__chart .up rect { fill: var(--up-bright); }
	.kt-hero__chart .down line { stroke: var(--down-bright); }
	.kt-hero__chart .down rect { fill: var(--down-bright); }
	.kt-hero__trend { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-dasharray: 5 7; }
}
@media (min-width: 860px) and (prefers-reduced-motion: no-preference) {
	.kt-hero__chart g { opacity: 0; transform: translateY(14px); animation: kt-candle .5s ease-out forwards; }
	.kt-hero__chart g:nth-of-type(2) { animation-delay: .06s; }
	.kt-hero__chart g:nth-of-type(3) { animation-delay: .12s; }
	.kt-hero__chart g:nth-of-type(4) { animation-delay: .18s; }
	.kt-hero__chart g:nth-of-type(5) { animation-delay: .24s; }
	.kt-hero__chart g:nth-of-type(6) { animation-delay: .3s; }
	.kt-hero__chart g:nth-of-type(7) { animation-delay: .36s; }
	.kt-hero__chart g:nth-of-type(8) { animation-delay: .42s; }
	.kt-hero__chart g:nth-of-type(9) { animation-delay: .48s; }
	.kt-hero__chart g:nth-of-type(10) { animation-delay: .54s; }
	.kt-hero__chart g:nth-of-type(11) { animation-delay: .6s; }
	.kt-hero__chart g:nth-of-type(12) { animation-delay: .66s; }
	@keyframes kt-candle { to { opacity: 1; transform: none; } }
}

/* ---------- Page layout ---------- */
.site-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 56px; }
.content-sidebar-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.content, .sidebar { min-width: 0; }
@media (min-width: 1024px) {
	.site-inner { padding-top: 44px; }
	.content-sidebar .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
	.sidebar-content .content-sidebar-wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
	.sidebar-content .content { order: 2; }
}

/* ---------- Listings (home, categories, search) ---------- */
.kt-section-title, .archive-title { font-size: clamp(24px, 3vw, 32px); }
.kt-section-title { margin: 0; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.archive-description { margin: 0; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.archive-description .archive-title { margin: 0; }
.archive-description p { margin: .6em 0 0; color: var(--muted); }

.kt-listing .content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 28px; align-content: start; grid-auto-flow: row dense; }
.kt-listing .content > * { grid-column: 1 / -1; margin: 0; }
@media (min-width: 640px) {
	.kt-listing .content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kt-listing .content > .kt-card { grid-column: auto; }
	.kt-listing .content > .kt-card--lead { grid-column: 1 / -1; }
}

.kt-card { position: relative; }
.kt-card__media { display: block; margin-bottom: 14px; overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 16 / 9; }
.kt-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kt-card .entry-header { display: flex; flex-direction: column; }
.kt-card .kt-card__media { order: 1; }
.kt-card .kt-meta { order: 2; margin: 0 0 8px; }
.kt-card .entry-title { order: 3; margin: 0 0 8px; font-size: 21px; line-height: 1.22; }
.kt-card .entry-title a { color: var(--ink); text-decoration: none; }
.kt-card .entry-title a:hover { color: var(--blue); text-decoration: underline; }
.kt-card .entry-content { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.kt-card .entry-content p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; }
.kt-card .entry-content .more-link { display: none; }
@media (min-width: 800px) {
	.kt-card--lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 32px; }
	.kt-card--lead .entry-header { display: contents; }
	.kt-card--lead .kt-card__media { grid-column: 1; grid-row: 1 / span 3; margin: 0; align-self: start; }
	.kt-card--lead .kt-meta { grid-column: 2; grid-row: 1; padding-top: 6px; }
	.kt-card--lead .entry-title { grid-column: 2; grid-row: 2; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.14; }
	.kt-card--lead .entry-content { grid-column: 2; grid-row: 3; font-size: 16.5px; }
	.kt-card--lead .entry-content p { -webkit-line-clamp: 4; }
}

/* Meta line */
.kt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.kt-meta__cat {
	padding-left: 12px;
	color: var(--up);
	font-family: var(--display);
	font-weight: 700;
	text-decoration: none;
	background: linear-gradient(var(--up), var(--up)) left center / 4px 14px no-repeat;
}
.kt-meta__cat:hover { color: var(--navy-deep); text-decoration: underline; }

/* Pagination */
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination .pagination-omission {
	display: block;
	min-width: 44px;
	padding: 9px 14px;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.pagination .pagination-omission { border-color: transparent; }
.pagination a:hover { border-color: var(--ink); }
.pagination .active a { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Single posts and pages ---------- */
.singular .entry, .single .entry, .page .entry { max-width: 780px; }
.kt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.kt-crumbs a { color: var(--muted); }
.single .entry-header, .page .entry-header { margin-bottom: 26px; }
.single .entry-title, .page .entry-title, .error404 .entry-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4.6vw, 48px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.025em;
}
.single .kt-meta { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; }

.single .entry-content, .page .entry-content { font-size: 18px; line-height: 1.72; }
.entry-content h2 { margin: 1.9em 0 .55em; font-size: clamp(24px, 2.8vw, 30px); }
.entry-content h3 { margin: 1.6em 0 .5em; font-size: clamp(20px, 2.2vw, 23px); }
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.4em 0 .4em; font-size: 18px; }
.entry-content li { margin-bottom: .45em; }
.entry-content figure { margin: 1.8em 0; }
.entry-content img { border-radius: 8px; }
.entry-content figcaption, .wp-caption-text { margin-top: .6em; color: var(--muted); font-size: 14px; line-height: 1.45; }
.entry-content iframe { display: block; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content p > iframe[src*="youtube"], .entry-content p > iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.kt-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 8px; }
.kt-table table { min-width: 520px; margin: 0; }
.kt-table tr:last-child td { border-bottom: 0; }

.kt-toc { margin: 1.8em 0; padding: 18px 22px; background: var(--mist); border-left: 4px solid var(--up); border-radius: 0 8px 8px 0; font-size: 16px; line-height: 1.45; }
.kt-toc summary { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer; }
.kt-toc ol { margin: 12px 0 0; padding-left: 1.4em; }
.kt-toc li { margin-bottom: .5em; }
.kt-toc a { color: var(--ink); text-decoration: none; }
.kt-toc a:hover { color: var(--blue); text-decoration: underline; }

/* Post views counter */
.entry-content .post-views { margin-bottom: 1em; color: var(--muted); font-size: 14px; }

/* Note box used in older posts */
.city { width: 100%; margin-bottom: 20px; padding: 18px 20px; background: #fffbd1; color: var(--ink); border: 2px dotted var(--down); border-radius: 6px; font-size: 17px; }

/* Built-in shortcodes */
.kt-box { margin: 1.6em 0; padding: 18px 22px; background: var(--mist); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; }
.kt-box > :last-child { margin-bottom: 0; }
.kt-box--note { background: #fff8db; border-color: #e0a800; }
.kt-box--info { background: #e9f1ff; border-color: var(--blue); }
.kt-box--council { background: #e6f6ef; border-color: var(--up); }
.kt-box--custom { background: var(--paper); border: 2px solid var(--blue); border-radius: 8px; }
.kt-box__title { margin: 0 0 .5em; color: var(--ink); font-family: var(--display); font-weight: 700; }
.kt-btn-wrap { margin: 1.6em 0; }
.kt-btn { padding: .85em 1.6em; background: var(--up); font-size: 17px; }
.kt-btn:hover { background: #087a4d; }
.kt-accordion { margin: 1.6em 0; border-top: 1px solid var(--line); }
.kt-accordion__item { border-bottom: 1px solid var(--line); }
.kt-accordion__item summary { padding: 14px 0; color: var(--ink); font-family: var(--display); font-weight: 600; cursor: pointer; }
.kt-accordion__body { padding: 0 0 12px; }

/* Related articles */
.kt-related { clear: both; margin-top: 2.6em; padding-top: 1.4em; border-top: 3px solid var(--ink); }
.kt-related__title { margin: 0 0 18px; font-size: 24px; }
.kt-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin: 0; padding: 0; list-style: none; }
.kt-related a { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; }
.kt-related a:hover span { color: var(--blue); text-decoration: underline; }
.kt-related img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; border-radius: 8px; background: var(--mist); }
@media (min-width: 700px) { .kt-related ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Plugin output inside posts */
.rmp-widgets-container { margin: 2.4em 0 !important; padding: 24px 16px !important; background: var(--mist); border-radius: var(--radius); }
.crp_related { clear: both; margin-top: 2.4em; padding-top: 1.4em; border-top: 3px solid var(--ink); }
.crp_related h3 { margin-top: 0; }
.crp_related ul { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.crp_related li { margin: 0 !important; }

/* Ads: keep Auto ads inside the layout */
.google-auto-placed, ins.adsbygoogle { max-width: 100%; clear: both; }
.content .google-auto-placed { margin: 28px 0; }
.sidebar .google-auto-placed { margin: 0 0 28px; }

/* Comments */
.comment-respond, .entry-comments, .entry-pings { max-width: 780px; margin-top: 44px; padding-top: 28px; border-top: 3px solid var(--ink); }
.comment-reply-title, .entry-comments h3 { font-size: 24px; }
.comment-list, .comment-list ul { margin: 0; padding: 0; list-style: none; }
.comment-list li { margin-top: 20px; padding: 18px 20px; background: var(--mist); border-radius: 8px; }
.comment-list .children li { background: var(--paper); border: 1px solid var(--line); }
.comment-header { font-size: 14.5px; }
.comment-header p { display: inline; margin: 0 8px 0 0; }
.comment-respond label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: 15px; }
.comment-respond .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-respond input[type="checkbox"] { width: auto; }

/* ---------- Sidebar ---------- */
.sidebar .widget { margin-bottom: 36px; }
.sidebar .widget-title, .sidebar .widgettitle { margin: 0 0 6px; padding-bottom: 12px; font-size: 20px; border-bottom: 3px solid var(--ink); }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.sidebar li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.sidebar li a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Footer ---------- */
.kt-footer-topics { padding: 44px 0 32px; background: var(--navy); color: #dbe6f8; }
.kt-footer-topics__title { margin: 0 0 18px; color: #fff; font-size: 22px; }
.kt-footer-topics ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.kt-footer-topics a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.kt-footer-topics a:hover { color: var(--up-bright); }
.kt-footer-topics a span { color: #a9bcdb; font-variant-numeric: tabular-nums; }
.site-footer { padding: 22px 0 28px; background: var(--navy-deep); color: #b9c8e2; font-size: 14.5px; }
.site-footer p { margin: 0; }
.kt-footer-links ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; padding: 0; list-style: none; }
.kt-footer-links a { text-decoration: none; }
.kt-footer-links a:hover { text-decoration: underline; }
.genesis-nav-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-footer a { color: #fff; }

/* ---------- Apps showcase (/app) ---------- */
.kt-apps-hero { background: var(--navy); color: #dbe6f8; overflow: hidden; }
.kt-apps-hero > .wrap { display: grid; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.kt-apps-hero__title { margin: 0 0 14px; color: #fff; font-size: clamp(36px, 6.4vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.kt-apps-hero__lead { max-width: 34em; margin: 0 0 24px; font-size: clamp(16px, 1.6vw, 19px); }
.kt-apps-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.kt-apps-btn { background: var(--up); padding: .85em 1.5em; }
.kt-apps-btn:hover { background: #087a4d; }
.kt-apps-hero__jump { color: #fff; }
.kt-apps-hero__jump:hover { color: var(--up-bright); }
.kt-apps-hero__icons { display: flex; gap: 10px; }
.kt-apps-hero__icons img { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55); }
@media (min-width: 860px) {
	.kt-apps-hero > .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-top: 64px; padding-bottom: 64px; }
	.kt-apps-hero__icons { justify-content: flex-end; flex-wrap: wrap; gap: 20px; max-width: 420px; margin-left: auto; }
	.kt-apps-hero__icons img { width: 112px; height: 112px; }
	.kt-apps-hero__icons img:nth-child(even) { transform: translateY(22px); }
}
.kt-apps-page .content > .archive-description { display: none; }
.kt-apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; scroll-margin-top: 96px; }
.kt-app { display: flex; flex-direction: column; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--app, var(--blue)); border-radius: 14px; }
.kt-app__head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.kt-app__icon { flex: none; width: 84px; height: 84px; border-radius: 22%; background: var(--mist); }
.kt-app__cat { margin: 0 0 4px; color: var(--app, var(--blue)); font-family: var(--display); font-weight: 700; font-size: 14px; }
.kt-app__name { margin: 0 0 4px; font-size: 23px; line-height: 1.15; }
.kt-app__tagline { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.kt-app__text { margin: 0 0 14px; }
.kt-app__features { margin: 0 0 18px; padding: 0; list-style: none; font-size: 15.5px; }
.kt-app__features li { position: relative; margin-bottom: 7px; padding-left: 26px; line-height: 1.45; }
.kt-app__features li::before { content: ""; position: absolute; left: 4px; top: .34em; width: 6px; height: 11px; border: solid var(--app, var(--up)); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.kt-app__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.kt-app__badges li { padding: 4px 12px; background: var(--mist); color: var(--ink); border-radius: 999px; font-size: 13.5px; }
.kt-app__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: auto 0 0; }
.kt-app__get { background: var(--ink); }
.kt-app__get:hover { background: var(--app, var(--blue)); }
.kt-app__guide { font-weight: 600; }
.kt-apps-guides { margin-top: 28px; }
@media (min-width: 760px) {
	.kt-apps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kt-app { grid-column: span 2; }
	.kt-app--featured { grid-column: span 3; padding: 32px; }
	.kt-app--featured .kt-app__icon { width: 104px; height: 104px; }
	.kt-app--featured .kt-app__name { font-size: 28px; }
}
@media (min-width: 760px) and (max-width: 1023px) {
	.kt-app, .kt-app--featured { grid-column: span 3; }
	.kt-app:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.kt-apps-page.kt-listing .content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Small screens ---------- */
@media (max-width: 639px) {
	body { font-size: 16.5px; }
	.site-header > .wrap { min-height: 60px; }
	.site-title img { height: 42px; }
	.single .entry-content, .page .entry-content { font-size: 17px; }
	.alignleft, .alignright { float: none; display: block; margin: 0 0 1.25em; }
}

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

@media print {
	.site-header, .sidebar, .kt-footer-topics, .kt-hero, .comment-respond, .google-auto-placed, ins.adsbygoogle { display: none !important; }
}
