/*
Theme Name: Криптокомпас
Theme URI: https://kriptokompas.ru/
Description: Тема сайта «Криптокомпас» — спокойный гид по криптовалютам для новичков.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: kriptokompas
*/

/* Most styling lives in theme.json and styles/blocks/*.json. */

.kk-checklist ul {
	list-style: none;
	padding-left: 0;
}

.kk-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6rem;
}

.kk-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid var(--wp--preset--color--teal);
	border-radius: 4px;
}

.kk-card {
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.kk-card:hover {
	border-color: var(--wp--preset--color--ink) !important;
}

.kk-card a {
	text-decoration: none;
	color: inherit;
}

.kk-card a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.kk-card {
	position: relative;
}

.kk-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--unbounded);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.kk-logo:hover {
	color: var(--wp--preset--color--ink);
}

.kk-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	font-weight: 500;
	font-size: 0.95rem;
}

.kk-nav a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.kk-nav a:hover,
.kk-nav a[aria-current="page"] {
	color: var(--wp--preset--color--teal);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.kk-nav a.kk-nav__accent {
	color: var(--wp--preset--color--amber);
}

.kk-compass {
	width: min(380px, 80vw);
	height: auto;
	aspect-ratio: 1;
}

@media (max-width: 781px) {
	.kk-hide-mobile {
		display: none !important;
	}
}

/* Statistics consent: load Yandex Metrika only after an explicit choice. */
.kk-cookie-consent {
	position: fixed;
	z-index: 100000;
	left: 50%;
	bottom: 1rem;
	width: min(58rem, calc(100vw - 2rem));
	transform: translateX(-50%);
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--ink, #17242d);
	border-radius: 14px;
	background: #fffdf7;
	color: var(--wp--preset--color--ink, #17242d);
	box-shadow: 0 12px 36px rgb(15 25 35 / 22%);
}

.kk-cookie-consent[hidden],
.kk-cookie-settings[hidden] {
	display: none !important;
}

.kk-cookie-consent__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.kk-cookie-consent__text h2 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.kk-cookie-consent__text p {
	margin: 0 0 0.4rem;
	font-size: 0.92rem;
	line-height: 1.5;
}

.kk-cookie-consent__text a {
	color: #075c5c;
	font-size: 0.88rem;
	text-underline-offset: 0.15em;
}

.kk-cookie-consent__actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 0.5rem;
}

.kk-cookie-consent__button,
.kk-cookie-settings {
	min-height: 44px;
	padding: 0.55rem 0.9rem;
	border: 1px solid #17242d;
	border-radius: 8px;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.kk-cookie-consent__button--allow {
	background: #075c5c;
	border-color: #075c5c;
	color: #fff;
}

.kk-cookie-consent__button--deny {
	background: transparent;
	color: #17242d;
}

.kk-cookie-settings {
	position: fixed;
	z-index: 99999;
	right: 0.75rem;
	bottom: 0.75rem;
	background: #fffdf7;
	color: #17242d;
	box-shadow: 0 3px 12px rgb(15 25 35 / 20%);
}

.kk-cookie-consent :focus-visible,
.kk-cookie-settings:focus-visible {
	outline: 3px solid #e0a83c;
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.kk-cookie-consent {
		bottom: 0.5rem;
		width: calc(100vw - 1rem);
		padding: 1rem;
	}

	.kk-cookie-consent__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 0.85rem;
	}

	.kk-cookie-consent__actions {
		flex-direction: row;
	}

	.kk-cookie-consent__button {
		flex: 1 1 50%;
	}
}
