/*
Theme Name: AIKEA Blog 2
Theme URI: https://aikea.by/blog/
Description: AIKEA blog customizations for the ColorMag theme.
Author: AIKEA
Template: colormag
Version: 2.0.0
Text Domain: colormag-aikea-v2
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/onest-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/onest-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ak-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--ak-bg: #f4f3ef;
	--ak-surface: #fff;
	--ak-surface-2: #faf9f6;
	--ak-ink: #17191d;
	--ak-ink-2: #2e3137;
	--ak-muted: #6a6d74;
	--ak-line: #e5e2db;
	--ak-line-strong: #d3cfc6;

	--ak-accent: #0058a3;
	--ak-accent-ink: #00447f;
	--ak-accent-soft: #e9f1f9;
	--ak-yellow: #ffcf1a;

	--ak-radius-s: 6px;
	--ak-radius: 12px;
	--ak-radius-l: 18px;
	--ak-shadow: 0 1px 2px rgba(38, 33, 20, 0.05), 0 4px 14px rgba(38, 33, 20, 0.05);
	--ak-shadow-hover: 0 2px 4px rgba(38, 33, 20, 0.06), 0 14px 32px rgba(38, 33, 20, 0.10);
	--ak-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--ak-z-header: 50;
	--ak-z-menu: 60;
	--ak-z-float: 70;

	/* ColorMag reads these for borders, links and buttons. */
	--cm-color-1: var(--ak-accent);
	--cm-color-2: var(--ak-accent-ink);
	--cm-color-5: var(--ak-ink);
	--cm-color-8: var(--ak-line);
	--cm-color-9: var(--ak-line-strong);
	--color--primary: var(--ak-accent);
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

/* ColorMag sets overflow: hidden on body, which turns it into a scroll container and breaks position: sticky. */
body:not(.woocommerce-page).cm-normal-container {
	overflow: visible;
	overflow-x: clip;
}

body,
body.boxed,
body.wide {
	background-color: var(--ak-bg);
	color: var(--ak-ink-2);
	font-family: var(--ak-font);
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
optgroup,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.cm-primary-nav li,
.cm-header .cm-menu-toggle,
.cm-site-description,
.wp-block-quote p,
.aikea-product-card {
	font-family: var(--ak-font);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--ak-ink);
	letter-spacing: -0.012em;
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

a {
	color: var(--ak-accent);
	transition: color 0.2s var(--ak-ease), background-color 0.2s var(--ak-ease), border-color 0.2s var(--ak-ease), box-shadow 0.2s var(--ak-ease), opacity 0.2s var(--ak-ease);
}

a:hover {
	color: var(--ak-accent-ink);
}

::selection {
	background: var(--ak-yellow);
	color: var(--ak-ink);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ak-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.cm-content,
.cm-content .cm-container {
	background: transparent;
}

.cm-content {
	padding-top: 28px;
	padding-bottom: 56px;
}

img {
	max-width: 100%;
	height: auto;
}

.skip-link.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	border-radius: var(--ak-radius-s);
	background: var(--ak-ink);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	clip-path: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.cm-header-builder,
#cm-masthead.cm-header-builder {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: var(--ak-z-header);
	background: var(--ak-surface);
	border-bottom: 1px solid var(--ak-line);
}

/* The whole header is sticky now, so jquery.sticky must not pin the menu row alone. */
.cm-header-builder .sticky-wrapper,
.cm-header-builder .sticky-wrapper.is-sticky {
	height: auto !important;
}

.cm-header-builder .sticky-wrapper .cm-header-bottom-row,
.cm-header-builder .is-sticky .cm-header-bottom-row {
	position: static !important;
	top: auto !important;
	width: auto !important;
	z-index: auto !important;
}

.cm-header-builder .cm-header-main-row,
.cm-header-builder .cm-header-bottom-row,
.cm-header-builder.cm-full-width .cm-main-header .cm-header-bottom-row {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.cm-header-builder .custom-logo-link {
	display: block;
	line-height: 0;
}

.cm-header-builder .custom-logo {
	width: auto;
	height: 60px;
	max-height: none;
}

/* Desktop: logo and menu share one row. */
@media (min-width: 769px) {
	.cm-header-builder .cm-desktop-row {
		display: flex;
		align-items: center;
		gap: 40px;
		box-sizing: border-box;
		max-width: 1172px;
		margin: 0 auto;
		padding: 0 16px;
	}

	.cm-header-builder .cm-desktop-row > .cm-header-main-row,
	.cm-header-builder .cm-desktop-row > .cm-header-bottom-row {
		padding: 0;
	}

	.cm-header-builder .cm-desktop-row > .cm-header-bottom-row,
	.cm-header-builder .cm-desktop-row > .sticky-wrapper {
		flex: 1 1 auto;
		min-width: 0;
	}

	.cm-header-builder .cm-desktop-row .cm-container {
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.cm-header-builder .cm-desktop-row .cm-main-row,
	.cm-header-builder .cm-desktop-row .cm-bottom-row {
		min-height: 0;
		padding: 0;
	}

	.cm-header-builder .cm-desktop-row .cm-header-main-row {
		padding: 14px 0;
	}

	.cm-header-builder .cm-desktop-row .cm-header-center-col:empty,
	.cm-header-builder .cm-desktop-row .cm-header-right-col:empty {
		display: none;
	}

	.cm-header-builder .cm-desktop-row .cm-bottom-row .cm-header-left-col {
		justify-content: flex-end;
		width: 100%;
	}
}

#cm-primary-nav,
.cm-header-builder .cm-primary-nav {
	border-top: 0;
	background: transparent;
}

.cm-primary-nav ul.cm-primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}

.cm-primary-nav li {
	padding: 0;
}

.cm-primary-nav ul li,
.cm-primary-nav ul li:hover,
.cm-primary-nav ul li.focus,
.cm-primary-nav ul li.current-menu-item,
.cm-primary-nav ul li.current_page_item,
.cm-primary-nav ul li.current-menu-ancestor,
.cm-primary-nav ul li.current_page_ancestor {
	background: transparent;
}

.cm-primary-nav ul li a,
.cm-primary-nav a {
	position: relative;
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--ak-ink-2);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.cm-primary-nav ul li:hover > a,
.cm-primary-nav ul li.focus > a,
.cm-primary-nav ul li a:hover {
	background: var(--ak-surface-2);
	color: var(--ak-accent);
}

.cm-primary-nav ul li.current-menu-item > a,
.cm-primary-nav ul li.current-menu-ancestor > a,
.cm-primary-nav ul li.current-post-ancestor > a,
.cm-primary-nav ul li.current_page_item > a {
	color: var(--ak-accent);
	font-weight: 600;
}

.cm-primary-nav ul li.current-menu-item > a::after,
.cm-primary-nav ul li.current-menu-ancestor > a::after,
.cm-primary-nav ul li.current-post-ancestor > a::after,
.cm-primary-nav ul li.current_page_item > a::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 2px;
	left: 12px;
	height: 3px;
	border-radius: 3px;
	background: var(--ak-yellow);
}

/* The shop link is the one call to action in the menu. */
.cm-primary-nav ul li > a[href="https://aikea.by/"] {
	margin-left: 8px;
	padding-right: 16px;
	padding-left: 16px;
	background: var(--ak-accent);
	color: #fff;
	font-weight: 600;
}

.cm-primary-nav ul li:hover > a[href="https://aikea.by/"],
.cm-primary-nav ul li > a[href="https://aikea.by/"]:hover {
	background: var(--ak-accent-ink);
	color: #fff;
}

.cm-primary-nav ul li > a[href="https://aikea.by/"]:active {
	transform: translateY(1px);
}

.cm-primary-nav ul ul.sub-menu,
.cm-primary-nav .sub-menu,
.cm-header-builder .cm-primary-nav .sub-menu {
	padding: 6px;
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-radius);
	background: var(--ak-surface);
	box-shadow: var(--ak-shadow-hover);
}

/* Mobile header: compact row with logo and menu button. */
@media (max-width: 768px) {
	.cm-header-builder .cm-mobile-row {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 64px;
		padding: 0 16px;
	}

	.cm-header-builder .cm-mobile-row > .cm-header-main-row,
	.cm-header-builder .cm-mobile-row > .cm-header-bottom-row,
	.cm-header-builder .cm-mobile-row > .sticky-wrapper,
	.cm-header-builder .cm-mobile-row > .sticky-wrapper > .cm-header-bottom-row {
		position: static;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.cm-header-builder .cm-mobile-row .cm-container {
		position: static;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.cm-header-builder .cm-mobile-row .cm-main-row,
	.cm-header-builder .cm-mobile-row .cm-bottom-row {
		position: static;
		min-height: 0;
		padding: 0;
	}

	.cm-header-builder .cm-mobile-row .cm-header-left-col:empty,
	.cm-header-builder .cm-mobile-row .cm-header-right-col:empty,
	.cm-header-builder .cm-mobile-row .cm-header-center-col:empty {
		display: none;
	}

	.cm-header-builder .cm-mobile-row .cm-header-main-row .cm-header-center-col {
		align-items: flex-start;
	}

	.cm-header-builder .custom-logo {
		height: 46px;
	}

	.cm-header-builder .cm-mobile-row .cm-header-bottom-row .cm-header-left-col {
		position: static;
	}

	.cm-header-builder .cm-mobile-nav-container {
		position: static;
	}

	.cm-header-builder .cm-mobile-row .cm-menu-toggle,
	.cm-header .cm-menu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--ak-line);
		border-radius: 10px;
		background: var(--ak-surface);
		color: var(--ak-ink);
	}

	.cm-header-builder .cm-mobile-row .cm-menu-toggle svg,
	.cm-header .cm-menu-toggle svg {
		width: 22px;
		height: 22px;
		fill: var(--ak-ink);
	}

	.cm-header-builder .cm-mobile-row .cm-menu-toggle:active {
		transform: scale(0.96);
	}

	.cm-header-builder .cm-mobile-row .cm-mobile-nav {
		top: 100%;
		right: 0;
		left: 0;
		z-index: var(--ak-z-menu);
		filter: none;
	}

	.cm-mobile-nav.cm-mobile-open-container > .cm-mobile-menu--open,
	.cm-mobile-nav.cm-mobile-open-container .cm-mobile-header-row.cm-mobile-menu--open {
		padding: 8px 12px 14px;
		border-top: 1px solid var(--ak-line);
		border-bottom: 1px solid var(--ak-line);
		background: var(--ak-surface);
		box-shadow: 0 18px 30px rgba(38, 33, 20, 0.12);
	}

	.cm-mobile-nav ul li,
	.cm-header .cm-mobile-nav li,
	.cm-header .cm-mobile-nav li:hover,
	.cm-header .cm-mobile-nav li.current-menu-item,
	.cm-header .cm-mobile-nav li.current-menu-ancestor {
		background: transparent;
		border: 0;
	}

	.cm-mobile-nav li a,
	.cm-header .cm-mobile-nav li a {
		display: block;
		padding: 13px 8px;
		border-bottom: 1px solid var(--ak-line);
		color: var(--ak-ink);
		font-size: 17px;
		font-weight: 500;
		text-transform: none;
	}

	.cm-mobile-nav li:last-child > a {
		border-bottom: 0;
	}

	.cm-mobile-nav li a:hover,
	.cm-mobile-nav .current-menu-item > a,
	.cm-mobile-nav .current_page_item > a,
	.cm-header .cm-mobile-nav li.current-menu-item > a {
		background: transparent;
		color: var(--ak-accent);
	}

	.cm-mobile-nav li > a[href="https://aikea.by/"] {
		margin-top: 10px;
		border: 0;
		border-radius: 10px;
		background: var(--ak-accent);
		color: #fff;
		font-weight: 600;
		text-align: center;
	}

	.cm-mobile-nav li > a[href="https://aikea.by/"]:hover {
		background: var(--ak-accent-ink);
		color: #fff;
	}
}

/* ==========================================================================
   Shared post atoms
   ========================================================================== */

.cm-post-categories a,
.cm-posts .post .cm-post-content .cm-entry-header-meta .cm-post-categories a,
.cm-featured-category-slider-widget .cm-slide-content .cm-entry-header-meta .cm-post-categories a,
.cm-highlighted-posts .cm-post-content .cm-entry-header-meta .cm-post-categories a {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: var(--ak-radius-s);
	background: var(--ak-accent-soft);
	color: var(--ak-accent);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: none;
}

.cm-post-categories a:hover,
.cm-posts .post .cm-post-content .cm-entry-header-meta .cm-post-categories a:hover {
	background: var(--ak-accent);
	color: #fff;
}

.single-post .cm-post-categories a::after {
	display: none;
}

.cm-below-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--ak-muted);
	font-size: 13px;
}

.cm-below-entry-meta > span {
	margin: 0;
}

.cm-below-entry-meta a,
.cm-post-date a,
.cm-author a,
.byline a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ak-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.cm-below-entry-meta a:hover {
	color: var(--ak-accent);
}

.cm-below-entry-meta svg {
	fill: currentColor;
	opacity: 0.7;
}

.cm-entry-title,
.cm-entry-title a {
	color: var(--ak-ink);
	font-weight: 600;
	letter-spacing: -0.012em;
}

.cm-entry-title a:hover,
.cm-posts .post .cm-post-content .cm-entry-title a:hover,
.cm-featured-posts .cm-entry-title a:hover {
	color: var(--ak-accent);
}

.cm-entry-button,
.cm-entry-button:hover {
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
}

.cm-entry-button span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--ak-accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.cm-entry-button span::after {
	content: "\2192";
	transition: transform 0.2s var(--ak-ease);
}

.cm-entry-button:hover span,
.cm-entry-button span:hover {
	background: none;
	color: var(--ak-accent-ink);
}

.cm-entry-button:hover span::after {
	transform: translateX(3px);
}

/* Widget and section headings. */
.cm-widget-title,
.cm-featured-posts .cm-widget-title,
.cm-secondary .cm-widget-title,
.widget .block-title {
	display: flex;
	align-items: center;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	color: var(--ak-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.cm-widget-title span,
.cm-featured-posts .cm-widget-title span,
.cm-secondary .cm-widget-title span,
#cm-tertiary .cm-widget-title span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	background: none;
	color: inherit;
}

.cm-widget-title span::before,
.cm-page-header .cm-page-title span::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--ak-yellow);
	box-shadow: 0 0 0 3px rgba(255, 207, 26, 0.25);
}

.cm-widget-title::after {
	content: "";
	flex: 1;
	height: 1px;
	margin-left: 16px;
	background: var(--ak-line-strong);
}

.cm-secondary .cm-widget-title {
	font-size: 18px;
}

/* ==========================================================================
   Home: hero and highlighted posts
   ========================================================================== */

.cm-featured-category-slider .cm-single-slide,
.cm-highlighted-posts .cm-post {
	border-radius: var(--ak-radius-l);
	isolation: isolate;
}

.cm-highlighted-posts .cm-post {
	border-radius: var(--ak-radius);
}

.cm-highlighted-posts .cm-post > a {
	height: 100%;
}

.cm-highlighted-posts .cm-post > a img {
	height: 100%;
	object-fit: cover;
}

.cm-featured-category-slider img,
.cm-highlighted-posts img {
	transition: transform 0.6s var(--ak-ease);
}

.cm-featured-category-slider .cm-single-slide:hover img,
.cm-highlighted-posts .cm-post:hover img {
	transform: scale(1.03);
}

.cm-featured-category-slider .cm-slide-content,
.cm-highlighted-posts .cm-post-content {
	top: 0;
	align-content: end;
	background: linear-gradient(180deg, rgba(14, 14, 16, 0) 30%, rgba(14, 14, 16, 0.55) 62%, rgba(14, 14, 16, 0.86) 100%);
}

.cm-featured-category-slider .cm-slide-content {
	padding: 28px;
}

.cm-highlighted-posts .cm-post-content {
	padding: 14px 16px;
}

.cm-featured-category-slider .cm-entry-title {
	max-width: 30ch;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cm-highlighted-posts .cm-entry-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.cm-featured-category-slider .cm-entry-title a,
.cm-highlighted-posts .cm-entry-title a {
	color: #fff;
	text-shadow: none;
}

.cm-featured-category-slider .cm-slide-content .cm-entry-header-meta .cm-post-categories a,
.cm-highlighted-posts .cm-post-content .cm-entry-header-meta .cm-post-categories a {
	background: rgba(255, 255, 255, 0.94);
	color: var(--ak-ink);
}

.cm-featured-category-slider .cm-below-entry-meta a,
.cm-highlighted-posts .cm-below-entry-meta a,
.cm-featured-category-slider .cm-post-date a,
.cm-highlighted-posts .cm-post-date a,
.cm-featured-category-slider .cm-author a {
	color: rgba(255, 255, 255, 0.82);
}

.cm-featured-category-slider .cm-below-entry-meta svg,
.cm-highlighted-posts .cm-below-entry-meta svg {
	fill: #fff;
}

/* ==========================================================================
   Home: category blocks and sidebar lists
   ========================================================================== */

.cm-featured-posts {
	margin-bottom: 44px;
}

.cm-featured-posts .cm-post,
.cm-posts .post,
.cm-secondary .widget_300x250_advertisement .advertisement_300x250,
.related-posts .single-related-posts {
	overflow: hidden;
	border: 0;
	border-radius: var(--ak-radius);
	background: var(--ak-surface);
	box-shadow: var(--ak-shadow);
	transition: box-shadow 0.25s var(--ak-ease), transform 0.25s var(--ak-ease);
}

.cm-featured-posts .cm-post:hover,
.cm-posts .post:not(.type-page):hover,
.related-posts .single-related-posts:hover {
	box-shadow: var(--ak-shadow-hover);
}

.single-post .cm-posts .post:hover,
.page .cm-posts .post:hover {
	box-shadow: var(--ak-shadow);
}

.cm-featured-posts .cm-first-post .cm-post > a,
.cm-posts .post .cm-featured-image {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.cm-featured-posts .cm-first-post img,
.cm-posts .post .cm-featured-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.6s var(--ak-ease);
}

.cm-featured-posts .cm-first-post .cm-post:hover img,
.cm-posts .post:hover .cm-featured-image img {
	transform: scale(1.03);
}

.single-post .cm-posts .post:hover .cm-featured-image img {
	transform: none;
}

.cm-featured-posts .cm-first-post .cm-post-content {
	padding: 18px 20px 22px;
}

.cm-featured-posts .cm-first-post .cm-entry-title {
	margin-bottom: 10px;
	font-size: 22px;
	line-height: 1.25;
}

.cm-featured-posts .cm-entry-summary p,
body:not(.single) .cm-posts .post .cm-entry-summary p {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ak-muted);
	font-size: 15px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Small list items: one thumbnail size, title beside it. */
.cm-featured-posts .cm-posts {
	gap: 12px;
}

.cm-featured-posts .cm-posts .cm-post {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 0;
	min-height: 96px;
}

.cm-featured-posts .cm-posts .cm-post > a,
.cm-secondary .cm-featured-posts--style-1 .cm-posts .cm-post > a,
.cm-secondary .cm-featured-posts--style-2 .cm-posts .cm-post > a {
	display: block;
	align-self: stretch;
	max-width: none;
	overflow: hidden;
	line-height: 0;
	background: var(--ak-surface-2);
}

.cm-featured-posts .cm-posts .cm-post > a img {
	width: 100%;
	height: 100%;
	min-height: 96px;
	aspect-ratio: auto;
	object-fit: cover;
}

.cm-featured-posts .cm-posts .cm-post > .cm-post-content:first-child {
	grid-column: 1 / -1;
}

.cm-featured-posts .cm-posts .cm-post-content {
	align-self: center;
	padding: 12px 14px;
}

.cm-featured-posts .cm-posts .cm-below-entry-meta {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.cm-featured-posts .cm-posts .cm-entry-title {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.cm-featured-posts .cm-posts .cm-entry-title a {
	display: -webkit-box;
	overflow: hidden;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Static front page renders an empty "AIKEA.BY" page body under the widgets. */
.home.page .cm-primary > .cm-posts > article.type-page {
	display: none;
}

/* ==========================================================================
   Archives
   ========================================================================== */

.cm-page-header {
	margin-bottom: 24px;
	border: 0;
}

.cm-page-header .cm-page-title,
.cm-page-header .cm-page-title span {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ak-ink);
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cm-page-header .cm-page-title span::before {
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

.taxonomy-description,
.cm-page-header .archive-description {
	max-width: 68ch;
	margin-top: 10px;
	color: var(--ak-muted);
}

.cm-posts.cm-layout-2 {
	gap: 24px;
}

.cm-posts .post .cm-post-content {
	padding: 18px 20px 22px;
}

.cm-posts .post .cm-entry-header-meta {
	margin-bottom: 10px;
}

.cm-posts .post .cm-entry-title {
	margin: 8px 0 10px;
	font-size: 20px;
	line-height: 1.3;
}

.cm-posts .post .cm-below-entry-meta {
	margin-bottom: 4px;
}

.archive .cm-layout-2-style-1 > .post:first-child .cm-entry-title {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.2;
	letter-spacing: -0.018em;
}

/* Pagination. */
.wp-pagenavi,
.cm-posts .wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
	font-variant-numeric: tabular-nums;
}

.wp-pagenavi span,
.wp-pagenavi a,
.cm-posts .wp-pagenavi a,
.cm-posts .wp-pagenavi span {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--ak-line);
	border-radius: 10px;
	background: var(--ak-surface);
	color: var(--ak-ink-2);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.wp-pagenavi a:hover,
.cm-posts .wp-pagenavi a:hover {
	border-color: var(--ak-accent);
	background: var(--ak-surface);
	color: var(--ak-accent);
}

.wp-pagenavi span.current,
.cm-posts .wp-pagenavi .current {
	border-color: var(--ak-accent);
	background: var(--ak-accent);
	color: #fff;
	font-weight: 600;
}

.wp-pagenavi span.pages {
	margin-right: 6px;
	border: 0;
	background: none;
	color: var(--ak-muted);
	font-size: 14px;
}

.wp-pagenavi span.extend {
	border: 0;
	background: none;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.cm-secondary .widget {
	margin-bottom: 32px;
}

.cm-secondary .widget_300x250_advertisement .advertisement_300x250 {
	padding: 18px;
}

.cm-secondary .widget_300x250_advertisement .cm-advertisement-content {
	text-align: center;
}

.cm-secondary .widget_300x250_advertisement img,
.cm-advertisement-content img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	aspect-ratio: 300 / 250;
}

.cm-secondary .cm-featured-posts .cm-first-post .cm-entry-title {
	font-size: 19px;
}

.tagcloud,
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-flex;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid var(--ak-line);
	border-radius: 999px;
	background: var(--ak-surface);
	color: var(--ak-ink-2);
	font-size: 13px !important;
	font-weight: 500;
	line-height: 1.3;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
	border-color: var(--ak-accent);
	color: var(--ak-accent);
}

@media (min-width: 992px) {
	.cm-right-sidebar .cm-content .cm-primary {
		padding-right: 36px;
	}
}

/* ColorMag keeps the desktop gutter on narrow screens and pushes the column off-screen. */
@media (max-width: 991px) {
	.cm-right-sidebar .cm-content .cm-primary,
	.cm-left-sidebar .cm-content .cm-primary {
		padding-right: 0;
		padding-left: 0;
	}
}

/* ==========================================================================
   Single post
   ========================================================================== */

.single-post .cm-posts .post,
.page:not(.home) .cm-posts .post {
	border-radius: var(--ak-radius-l);
}

.single-post .cm-posts .post .cm-featured-image img {
	aspect-ratio: auto;
	max-height: 560px;
	object-fit: cover;
}

.single-post .cm-posts .post .cm-post-content,
.page:not(.home) .cm-posts .post .cm-post-content {
	padding: 32px 44px 40px;
}

.single-post .cm-entry-header .cm-entry-title,
.page:not(.home) .cm-entry-header .cm-entry-title,
.single-post .cm-posts .post .cm-entry-title {
	margin: 12px 0 14px;
	color: var(--ak-ink);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.022em;
}

.single-post .cm-primary .cm-posts .post .cm-below-entry-meta {
	padding-bottom: 22px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--ak-line);
}

.single-post .cm-tag-links {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
	font-size: 0;
}

.single-post .cm-tag-links svg {
	display: none;
}

.single-post .cm-tag-links a {
	display: inline-flex;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--ak-surface-2);
	box-shadow: inset 0 0 0 1px var(--ak-line);
	color: var(--ak-muted);
	font-size: 12px;
	line-height: 1.5;
}

.single-post .cm-tag-links a::before {
	content: "#";
	opacity: 0.55;
}

.single-post .cm-tag-links a:hover {
	color: var(--ak-accent);
	box-shadow: inset 0 0 0 1px var(--ak-accent);
}

.single-post .cm-primary .cm-entry-summary {
	max-width: 70ch;
	color: var(--ak-ink-2);
	font-size: 18px;
	line-height: 1.72;
}

.single-post .cm-primary .cm-entry-summary p {
	margin-bottom: 1.25em;
	font-size: inherit;
	line-height: inherit;
}

.single-post .cm-primary .cm-entry-summary a:not([class]) {
	color: var(--ak-accent);
	text-decoration: underline;
	text-decoration-color: rgba(0, 88, 163, 0.3);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.single-post .cm-primary .cm-entry-summary a:not([class]):hover {
	text-decoration-color: currentColor;
}

.single-post .cm-primary .cm-entry-summary > h2,
.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h2) {
	margin: 52px 0 16px;
	padding: 0;
	border: 0;
	color: var(--ak-ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	scroll-margin-top: 96px;
}

.single-post .cm-primary .cm-entry-summary > h2:first-child {
	margin-top: 0;
}

.single-post .cm-primary .cm-entry-summary > h2::after,
.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h2)::after {
	display: none;
	content: none;
}

/* The opening "Краткий ответ" block reads as a summary card. */
.single-post .cm-primary .cm-entry-summary > h2:first-child {
	margin: 0;
	padding: 22px 24px 0;
	border-radius: var(--ak-radius) var(--ak-radius) 0 0;
	background: var(--ak-accent-soft);
	font-size: 22px;
}

.single-post .cm-primary .cm-entry-summary > h2:first-child + p,
.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ul,
.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ol {
	margin: 0;
	padding: 12px 24px 0;
	background: var(--ak-accent-soft);
}

.single-post .cm-primary .cm-entry-summary > h2:first-child + p:has(+ :not(ul, ol)),
.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ul,
.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ol {
	margin-bottom: 32px;
	padding-bottom: 22px;
	border-radius: 0 0 var(--ak-radius) var(--ak-radius);
}

.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ul,
.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ol {
	padding-left: 48px;
}

.single-post .cm-primary .cm-entry-summary > h3,
.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h3) {
	margin: 34px 0 12px;
	padding: 0;
	border: 0;
	color: var(--ak-ink);
	font-size: 22px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.012em;
	scroll-margin-top: 96px;
}

.single-post .cm-primary .cm-entry-summary > h4,
.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h4) {
	margin: 26px 0 10px;
	color: var(--ak-ink);
	font-size: 18px;
	font-weight: 650;
	line-height: 1.38;
}

.single-post .cm-primary .cm-entry-summary ul,
.single-post .cm-primary .cm-entry-summary ol {
	margin: 0 0 1.4em;
	padding-left: 24px;
	font-size: inherit;
	line-height: 1.65;
}

.single-post .cm-primary .cm-entry-summary li {
	margin-bottom: 6px;
	padding-left: 4px;
}

.single-post .cm-primary .cm-entry-summary li::marker {
	color: var(--ak-accent);
	font-weight: 700;
}

.single-post .cm-primary .cm-entry-summary strong,
.single-post .cm-primary .cm-entry-summary b {
	color: var(--ak-ink);
	font-weight: 650;
}

.single-post .cm-primary .cm-entry-summary sup {
	font-size: 0.65em;
}

.single-post .cm-primary .cm-entry-summary img {
	border-radius: var(--ak-radius);
}

.single-post .cm-primary .cm-entry-summary figure {
	margin: 32px 0;
	text-align: center;
}

.single-post .cm-primary .cm-entry-summary figure figcaption,
.single-post .cm-primary .cm-entry-summary .wp-element-caption {
	margin-top: 10px;
	color: var(--ak-muted);
	font-size: 14px;
	font-style: normal;
	line-height: 1.45;
}

.single-post .cm-primary .cm-entry-summary figure img.wp-image-placeholder {
	display: block;
	width: 100%;
	height: 250px;
	margin: 0 auto;
	border: 2px dashed var(--ak-line-strong);
	background: var(--ak-surface-2);
	object-fit: cover;
}

blockquote,
.wp-block-quote,
.single-post .cm-primary .cm-entry-summary blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 22px;
	border: 0;
	border-left: 4px solid var(--ak-yellow);
	background: none;
	color: var(--ak-ink);
	font-size: 1.12em;
	font-style: normal;
	line-height: 1.55;
}

blockquote p,
.wp-block-quote p {
	color: inherit;
	font-size: inherit;
}

blockquote::before,
.wp-block-quote::before {
	display: none;
}

.single-post .cm-primary .cm-entry-summary table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}

.single-post .cm-primary .cm-entry-summary :is(.wp-block-table, figure.wp-block-table) {
	overflow-x: auto;
}

.single-post .cm-primary .cm-entry-summary th,
.single-post .cm-primary .cm-entry-summary td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ak-line);
	text-align: left;
	vertical-align: top;
}

.single-post .cm-primary .cm-entry-summary th {
	color: var(--ak-ink);
	font-weight: 650;
}

.single-post .cm-primary .cm-entry-summary pre {
	overflow-x: auto;
	max-width: 100%;
	padding: 16px 18px;
	border: 0;
	border-radius: var(--ak-radius);
	background: #1f2125;
	color: #eceae4;
	font-size: 14px;
	line-height: 1.55;
	white-space: pre;
}

.single-post .cm-primary .cm-entry-summary pre code {
	display: block;
	width: max-content;
	min-width: 100%;
	max-width: none;
	font: inherit;
	white-space: pre;
}

/* Author box: inline padding plus width:100% overflowed the column. */
.single-post .author-box {
	box-sizing: border-box;
	max-width: 100%;
	border-radius: var(--ak-radius) !important;
	box-shadow: inset 0 0 0 1px var(--ak-line);
}

/* Related posts. */
.related-posts-wrapper {
	margin-top: 40px;
}

.related-posts-main-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--ak-ink);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.related-posts-main-title .fa {
	display: none;
}

.related-posts-main-title span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 3px;
	background: var(--ak-yellow);
	vertical-align: 2px;
}

.related-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.related-posts .single-related-posts {
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

.related-posts .related-posts-thumbnail img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.related-posts .article-content {
	padding: 12px 14px 16px;
}

.related-posts .cm-entry-title,
.related-posts .cm-entry-title a {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.35;
}

/* Comments. */
.comments-area {
	margin-top: 40px;
	padding: 32px 44px 40px;
	border-radius: var(--ak-radius-l);
	background: var(--ak-surface);
	box-shadow: var(--ak-shadow);
}

.comment-reply-title,
.comments-title {
	color: var(--ak-ink);
	font-size: 22px;
	font-weight: 700;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--ak-ink-2);
	font-size: 14px;
	font-weight: 600;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	color: var(--ak-muted);
	font-weight: 400;
}

.comment-form .comment-form-cookies-consent input {
	margin-top: 4px;
	accent-color: var(--ak-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="tel"],
textarea,
select {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--ak-line-strong);
	border-radius: 10px;
	background: var(--ak-surface);
	box-shadow: none;
	color: var(--ak-ink);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s var(--ak-ease), box-shadow 0.2s var(--ak-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
	border-color: var(--ak-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.18);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button .wp-block-button__link,
.wp-element-button,
.cm-button,
.colormag-button {
	padding: 12px 20px;
	border: 1px solid var(--ak-accent);
	border-radius: 10px;
	background: var(--ak-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s var(--ak-ease), border-color 0.2s var(--ak-ease), transform 0.1s var(--ak-ease);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover,
.cm-button:hover {
	border-color: var(--ak-accent-ink);
	background: var(--ak-accent-ink);
	color: #fff;
}

button:active,
input[type="submit"]:active,
.wp-element-button:active {
	transform: translateY(1px);
}

/* ==========================================================================
   Product cards (aikea-blog-products)
   ========================================================================== */

.aikea-product-card {
	--aikea-blog-product-blue: var(--ak-accent);
	--aikea-blog-product-blue-hover: var(--ak-accent-ink);
	gap: 18px;
	padding: 14px;
	border: 1px solid var(--ak-line);
	border-radius: var(--ak-radius);
	background: var(--ak-surface);
	color: var(--ak-ink-2);
	transition: border-color 0.2s var(--ak-ease), box-shadow 0.2s var(--ak-ease);
}

.aikea-product-card:hover {
	border-color: var(--ak-line-strong);
	box-shadow: var(--ak-shadow);
}

.aikea-product-card__image-link {
	border: 0;
	border-radius: 8px;
	background: var(--ak-surface-2);
}

.single-post .cm-primary .cm-entry-summary .aikea-product-card__image {
	border-radius: 0;
	mix-blend-mode: multiply;
}

.aikea-product-card__label {
	border-radius: 5px;
}

.aikea-product-card__sku {
	color: var(--ak-muted);
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.single-post .cm-primary .cm-entry-summary .aikea-product-card__title,
.aikea-product-card__title {
	color: var(--ak-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.aikea-product-card__title:hover {
	color: var(--ak-accent);
	text-decoration: none;
}

.aikea-product-card__price {
	color: var(--ak-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.single-post .cm-primary .cm-entry-summary .aikea-product-card__button,
.aikea-product-card__button {
	border-radius: 8px;
	text-decoration: none;
}

/* ==========================================================================
   Article components (spec, quiz, embeds, print sheet)
   ========================================================================== */

.single-post .cm-primary .cm-entry-summary .spec-card,
.single-post .cm-primary .cm-entry-summary .quiz-logic,
.single-post .cm-primary .cm-entry-summary .real-embed,
.single-post .cm-primary .cm-entry-summary .print-sheet {
	box-sizing: border-box;
	clear: both;
	margin: 32px 0;
	padding: 24px;
	border-radius: var(--ak-radius);
	color: var(--ak-ink-2);
	font-size: 16px;
	line-height: 1.6;
}

.single-post .cm-primary .cm-entry-summary .spec-card *,
.single-post .cm-primary .cm-entry-summary .quiz-logic *,
.single-post .cm-primary .cm-entry-summary .real-embed *,
.single-post .cm-primary .cm-entry-summary .print-sheet * {
	box-sizing: border-box;
}

.single-post .cm-primary .cm-entry-summary :is(.spec-card, .quiz-logic, .real-embed, .print-sheet) h3 {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}

.single-post .cm-primary .cm-entry-summary :is(.spec-card, .quiz-logic, .real-embed, .print-sheet) h3::after {
	display: none;
}

.single-post .cm-primary .cm-entry-summary :is(.spec-card, .quiz-logic, .print-sheet, .real-embed) p:last-child {
	margin-bottom: 0;
}

.single-post .cm-primary .cm-entry-summary .spec-card,
.single-post .cm-primary .cm-entry-summary .quiz-logic {
	contain: inline-size;
	overflow-x: auto;
}

.single-post .cm-primary .cm-entry-summary .spec-card table,
.single-post .cm-primary .cm-entry-summary .quiz-logic table,
.single-post .cm-primary .cm-entry-summary .quiz-flow {
	display: table;
	min-width: 640px;
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.45;
}

.single-post .cm-primary .cm-entry-summary :is(.spec-card, .quiz-logic) :is(th, td) {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ak-line);
	vertical-align: top;
}

.single-post .cm-primary .cm-entry-summary .spec-card {
	border: 1px solid var(--ak-line);
	background: var(--ak-surface);
}

.single-post .cm-primary .cm-entry-summary .spec-card h3 {
	color: var(--ak-ink);
}

.single-post .cm-primary .cm-entry-summary .spec-card thead {
	background: var(--ak-accent-soft);
	color: var(--ak-accent-ink);
}

.single-post .cm-primary .cm-entry-summary .spec-card th {
	color: inherit;
}

.single-post .cm-primary .cm-entry-summary .spec-card tbody tr:hover {
	background: var(--ak-surface-2);
}

.single-post .cm-primary .cm-entry-summary .quiz-logic {
	border: 0;
	background: #fff8dc;
}

.single-post .cm-primary .cm-entry-summary .quiz-logic h3 {
	color: #5c4400;
}

.single-post .cm-primary .cm-entry-summary .quiz-logic thead,
.single-post .cm-primary .cm-entry-summary .quiz-flow thead {
	background: rgba(255, 207, 26, 0.45);
	color: var(--ak-ink);
}

.single-post .cm-primary .cm-entry-summary .quiz-logic :is(th, td) {
	border-bottom-color: rgba(92, 68, 0, 0.14);
}

.single-post .cm-primary .cm-entry-summary .real-embed {
	border: 1px solid var(--ak-line);
	background: var(--ak-surface-2);
}

.single-post .cm-primary .cm-entry-summary .real-embed h3 {
	color: var(--ak-ink);
}

.single-post .cm-primary .cm-entry-summary .embed-card,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	margin: 12px 0;
	padding: 16px;
	border: 1px solid var(--ak-line);
	border-radius: 10px;
	background: var(--ak-surface);
	box-shadow: none;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__body {
	min-width: 0;
}

.single-post .cm-primary .cm-entry-summary .embed-label,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0 0 6px;
	padding: 2px 8px;
	border-radius: 5px;
	background: var(--ak-surface-2);
	box-shadow: inset 0 0 0 1px var(--ak-line);
	color: var(--ak-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.single-post .cm-primary .cm-entry-summary .embed-card a,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__link {
	display: block;
	color: var(--ak-accent);
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.single-post .cm-primary .cm-entry-summary .embed-card a:hover,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__link:hover {
	color: var(--ak-accent-ink);
	text-decoration: underline;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__description {
	margin: 6px 0 0;
	color: var(--ak-muted);
	font-size: 14px;
	line-height: 1.5;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__toggle {
	appearance: none;
	align-self: start;
	padding: 9px 14px;
	border: 1px solid var(--ak-accent);
	border-radius: 8px;
	background: var(--ak-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__toggle:hover,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__toggle:focus {
	border-color: var(--ak-accent-ink);
	background: var(--ak-accent-ink);
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__toggle:disabled {
	cursor: wait;
	opacity: 0.72;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live {
	grid-column: 1 / -1;
	overflow: hidden;
	min-height: 0;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--ak-line);
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card--instagram .aikea-embed-card__live,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--pinterest .aikea-embed-card__live {
	display: flex;
	justify-content: center;
	width: 100%;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live[hidden] {
	display: none;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live iframe,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live blockquote,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live > span {
	max-width: 100% !important;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live blockquote {
	border-left: 0;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card--instagram .aikea-embed-card__live iframe,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--instagram .aikea-embed-card__live blockquote,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--instagram .aikea-embed-card__live > span,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--pinterest .aikea-embed-card__live iframe,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--pinterest .aikea-embed-card__live blockquote,
.single-post .cm-primary .cm-entry-summary .aikea-embed-card--pinterest .aikea-embed-card__live > span {
	width: min(100%, 540px) !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card--failed {
	border-color: #f0c3a3;
	background: #fff8f3;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__loading {
	padding: 18px;
	border: 1px dashed var(--ak-line-strong);
	border-radius: 8px;
	background: var(--ak-surface-2);
	color: var(--ak-muted);
	text-align: center;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live--iframe {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border-top: 0;
	border-radius: 10px;
	background: #1f2125;
}

.single-post .cm-primary .cm-entry-summary .aikea-embed-card__live--iframe iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.single-post .cm-primary .cm-entry-summary .print-sheet {
	border: 2px dashed #8fbf9c;
	background: #f1f8f2;
}

.single-post .cm-primary .cm-entry-summary .print-sheet h3 {
	color: #1f5f32;
}

.single-post .cm-primary .cm-entry-summary .print-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 11px 18px;
	border-radius: 8px;
	background: #2a7240;
	color: #fff !important;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.single-post .cm-primary .cm-entry-summary .print-button:hover {
	background: #1f5f32;
	text-decoration: none;
}

/* ==========================================================================
   Banner above the footer
   ========================================================================== */

.advertisement_above_footer {
	background: transparent;
}

.cm-728x90-advertisemen-widget {
	margin: 0;
	padding: 8px 0 56px;
	background: transparent;
}

.aikea-blog-banner-rotator {
	width: min(1140px, calc(100vw - 32px));
	margin: 0 auto;
	aspect-ratio: 1220 / 264;
}

.aikea-blog-banner-rotator__link {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border-radius: var(--ak-radius-l);
	box-shadow: var(--ak-shadow);
	line-height: 0;
	background: var(--ak-surface-2);
	transition: box-shadow 0.25s var(--ak-ease);
}

.aikea-blog-banner-rotator__link:hover {
	box-shadow: var(--ak-shadow-hover);
}

.aikea-blog-banner-rotator__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.cm-footer-builder {
	--aikea-footer-bg: #1c1e22;
	--aikea-footer-bottom-bg: #16181b;
	--aikea-footer-text: #a9adb5;
	--aikea-footer-white: #f4f3ef;
	--aikea-footer-border: rgba(255, 255, 255, 0.08);
	background: var(--aikea-footer-bg);
	color: var(--aikea-footer-text);
}

.cm-footer-builder .cm-footer-main-row {
	padding: 56px 0 40px;
	background: var(--aikea-footer-bg);
}

.cm-footer-builder .cm-main-row {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.cm-footer-builder .cm-footer-main-row .cm-footer-col {
	padding: 0;
	border: 0;
}

.cm-footer-builder .widget {
	margin: 0;
	color: var(--aikea-footer-text);
}

.cm-footer-builder .cm-widget-title,
.cm-footer-builder .cm-widget-title span {
	display: block;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--aikea-footer-white);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cm-footer-builder .cm-widget-title span {
	margin: 0;
}

.cm-footer-builder .cm-widget-title::after,
.cm-footer-builder .cm-widget-title span::after,
.cm-footer-builder .cm-widget-title span::before {
	display: none;
	content: none;
}

.cm-footer-builder #custom_html-2 .custom-html-widget {
	max-width: 36ch;
	color: var(--aikea-footer-text);
	font-size: 15px;
	line-height: 1.7;
}

.cm-footer-builder #custom_html-3 .custom-html-widget {
	display: block;
}

.cm-footer-builder #custom_html-3 .one_half,
.cm-footer-builder #custom_html-3 .one_half.last {
	float: none;
	width: auto;
	margin: 0;
	overflow: visible;
}

.cm-footer-builder #custom_html-3 ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cm-footer-builder #custom_html-3 li {
	margin: 0;
	padding: 6px 0;
	border: 0;
	font-size: 15px;
	line-height: 1.4;
}

.cm-footer-builder #custom_html-3 li::after {
	display: none;
	content: none;
}

.cm-footer-builder #custom_html-4 .fa,
.cm-footer-builder #custom_html-5 .fa {
	color: var(--aikea-footer-white);
}

.cm-footer-builder #custom_html-5 h5 {
	margin: 0 0 18px;
	color: var(--aikea-footer-white);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
}

.cm-footer-builder a {
	color: var(--aikea-footer-text);
	text-decoration: none;
}

.cm-footer-builder a:hover {
	color: var(--aikea-footer-white);
	text-decoration: none;
}

.cm-footer-builder .aikea-footer-hours {
	color: var(--aikea-footer-text);
	font-size: 15px;
	line-height: 1.4;
}

.cm-footer-builder .aikea-footer-hour {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	align-items: start;
	padding: 7px 0;
	border: 0;
}

.cm-footer-builder .aikea-footer-hour strong {
	color: var(--aikea-footer-white);
	font-weight: 600;
}

.cm-footer-builder .aikea-footer-hour .fa {
	margin-top: 2px;
	color: var(--aikea-footer-text);
	font-size: 16px;
	line-height: 1;
	text-align: center;
	opacity: 0.8;
}

.cm-footer-builder .aikea-footer-contacts {
	color: var(--aikea-footer-text);
	font-size: 15px;
	line-height: 1.55;
}

.cm-footer-builder .aikea-footer-contact {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.cm-footer-builder .aikea-footer-contact .fa {
	color: var(--ak-yellow);
	font-size: 17px;
	line-height: 1;
	text-align: center;
}

.cm-footer-builder .aikea-footer-contact-phone a {
	color: var(--aikea-footer-white);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.cm-footer-builder .aikea-footer-contact-phone a:hover {
	color: var(--ak-yellow);
}

.cm-footer-builder .aikea-footer-contact-shop {
	align-items: start;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--aikea-footer-border);
}

.cm-footer-builder .aikea-footer-contact-shop .fa {
	margin-top: 4px;
	color: var(--aikea-footer-text);
}

.cm-footer-builder .aikea-footer-contact-shop a {
	color: var(--aikea-footer-white);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.3);
	text-underline-offset: 3px;
}

.cm-footer-builder .cm-footer-bottom-row {
	padding: 22px 0;
	border-top: 1px solid var(--aikea-footer-border);
	background: var(--aikea-footer-bottom-bg);
	color: #80848c;
}

.cm-footer-builder .cm-footer-bottom-row .cm-bottom-row {
	align-items: center;
}

.cm-footer-builder .cm-copyright {
	position: static;
	padding: 0;
	color: #80848c;
	font-size: 13px;
	line-height: 1.6;
}

.cm-footer-builder .cm-copyright::before {
	display: none;
	content: none;
}

/* ==========================================================================
   Scroll-to-top and 404
   ========================================================================== */

a#scroll-up {
	right: 20px;
	bottom: 20px;
	z-index: var(--ak-z-float);
	opacity: 1;
	filter: none;
}

a#scroll-up i {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ak-accent);
	box-shadow: 0 8px 20px rgba(0, 68, 127, 0.3);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	transition: background-color 0.2s var(--ak-ease), transform 0.2s var(--ak-ease);
}

a#scroll-up:hover i {
	background: var(--ak-accent-ink);
	transform: translateY(-2px);
}

.cm-error-404 {
	max-width: 560px;
	margin: 24px auto 40px;
	padding: 48px 32px;
	border-radius: var(--ak-radius-l);
	background: var(--ak-surface);
	box-shadow: var(--ak-shadow);
	text-align: center;
}

.cm-error-404 .cm-page-header {
	margin-bottom: 12px;
}

.cm-error-404 .cm-page-header p {
	order: 2;
	margin: 0;
	color: var(--ak-ink);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.cm-error-404 .cm-page-header .cm-page-title {
	display: block;
	margin: 0 0 8px;
	color: var(--ak-accent);
	font-size: 88px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.cm-error-404 .cm-page-header {
	display: flex;
	flex-direction: column;
}

.cm-error-404 .cm-page-content p {
	color: var(--ak-muted);
}

.cm-error-404 .cm-btn,
.cm-error-404 .cm-btn span {
	display: inline-flex;
	padding: 12px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--ak-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.cm-error-404 .cm-btn span {
	padding: 0;
}

.cm-error-404 .cm-btn:hover {
	background: var(--ak-accent-ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
	.related-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.cm-footer-builder .cm-main-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.cm-content {
		padding-top: 16px;
	}

	.cm-featured-category-slider .cm-slide-content {
		padding: 18px;
	}

	.cm-featured-category-slider .cm-entry-title {
		font-size: 22px;
	}

	.cm-featured-category-slider .cm-single-slide {
		border-radius: var(--ak-radius);
	}

	/* Four highlighted posts as a 2x2 grid instead of four full-screen cards. */
	.cm-highlighted-posts .cm-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cm-highlighted-posts .cm-post {
		aspect-ratio: 4 / 5;
	}

	.cm-highlighted-posts .cm-post-content {
		padding: 10px 12px;
	}

	.cm-highlighted-posts .cm-entry-title {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 1.28;
	}

	.cm-highlighted-posts .cm-entry-title a {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.cm-highlighted-posts .cm-below-entry-meta {
		display: none;
	}

	.single-post .cm-posts .post,
	.page:not(.home) .cm-posts .post,
	.comments-area {
		border-radius: var(--ak-radius);
	}

	.single-post .cm-posts .post .cm-post-content,
	.page:not(.home) .cm-posts .post .cm-post-content,
	.comments-area {
		padding: 22px 18px 28px;
	}

	.single-post .cm-entry-header .cm-entry-title,
	.single-post .cm-posts .post .cm-entry-title {
		font-size: 27px;
		line-height: 1.18;
	}
}

@media (max-width: 640px) {
	.cm-widget-title,
	.cm-featured-posts .cm-widget-title {
		font-size: 20px;
	}

	.cm-728x90-advertisemen-widget {
		padding: 0 0 40px;
	}

	.aikea-blog-banner-rotator {
		width: calc(100vw - 32px);
		aspect-ratio: 358 / 88;
	}

	.aikea-blog-banner-rotator__link {
		border-radius: var(--ak-radius);
	}

	.cm-featured-posts .cm-posts .cm-post {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	.related-posts {
		grid-template-columns: 1fr;
	}

	.single-post .cm-primary .cm-entry-summary {
		font-size: 17px;
		line-height: 1.68;
	}

	.single-post .cm-primary .cm-entry-summary > h2,
	.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h2) {
		margin-top: 40px;
		font-size: 24px;
		line-height: 1.22;
	}

	.single-post .cm-primary .cm-entry-summary > h2:first-child {
		padding: 18px 18px 0;
		font-size: 20px;
	}

	.single-post .cm-primary .cm-entry-summary > h2:first-child + p,
	.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ul,
	.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ol {
		padding-right: 18px;
		padding-left: 18px;
	}

	.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ul,
	.single-post .cm-primary .cm-entry-summary > h2:first-child + p + ol {
		padding-left: 38px;
	}

	.single-post .cm-primary .cm-entry-summary > h3,
	.single-post .cm-primary .cm-entry-summary .wp-block-heading:is(h3) {
		margin-top: 28px;
		font-size: 20px;
	}

	.single-post .cm-primary .cm-entry-summary .spec-card,
	.single-post .cm-primary .cm-entry-summary .quiz-logic,
	.single-post .cm-primary .cm-entry-summary .real-embed,
	.single-post .cm-primary .cm-entry-summary .print-sheet {
		margin: 24px 0;
		padding: 18px;
	}

	.single-post .cm-primary .cm-entry-summary .embed-card,
	.single-post .cm-primary .cm-entry-summary .aikea-embed-card {
		grid-template-columns: 1fr;
		gap: 11px;
		padding: 15px;
	}

	.single-post .cm-primary .cm-entry-summary .aikea-embed-card__toggle {
		width: 100%;
	}

	.single-post .cm-primary .cm-entry-summary .spec-card table,
	.single-post .cm-primary .cm-entry-summary .quiz-logic table,
	.single-post .cm-primary .cm-entry-summary .quiz-flow,
	.single-post .cm-primary .cm-entry-summary table {
		width: 100%;
		min-width: 100%;
		table-layout: auto;
	}

	.single-post .cm-primary .cm-entry-summary :is(.spec-card, .quiz-logic) :is(th, td),
	.single-post .cm-primary .cm-entry-summary th,
	.single-post .cm-primary .cm-entry-summary td {
		padding: 8px 9px;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.aikea-product-card {
		gap: 14px;
		padding: 12px;
	}

	.cm-footer-builder .cm-footer-main-row {
		padding: 40px 0 28px;
	}

	.cm-footer-builder .cm-main-row {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.cm-error-404 {
		padding: 36px 20px;
	}

	.cm-error-404 .cm-page-header .cm-page-title {
		font-size: 72px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	body {
		background: #fff;
	}

	.single-post .cm-primary .cm-entry-summary .quiz-logic,
	.single-post .cm-primary .cm-entry-summary .real-embed,
	.single-post .cm-primary .cm-entry-summary .spec-card {
		display: none !important;
	}

	.single-post .cm-primary .cm-entry-summary .print-sheet {
		border: 2px solid #000;
		background: #fff;
		color: #000;
	}

	.single-post .cm-primary .cm-entry-summary .print-button {
		border: 1px solid #000;
		background: #fff;
		color: #000 !important;
	}

	body.aikea-print-sheet-only * {
		visibility: hidden !important;
	}

	body.aikea-print-sheet-only .print-sheet--active-print,
	body.aikea-print-sheet-only .print-sheet--active-print * {
		visibility: visible !important;
	}

	body.aikea-print-sheet-only .print-sheet--active-print {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 18mm !important;
		border: 2px solid #000 !important;
		background: #fff !important;
		color: #000 !important;
		box-shadow: none !important;
	}

	body.aikea-print-sheet-only .print-sheet--active-print .print-button {
		display: none !important;
	}
}


/* Explicit navigation keeps the hero stable until a visitor chooses another slide. */
.cm-featured-category-slider { position: relative; }
.aikea-slider-controls { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 3; }
.aikea-slider-controls button { width: 44px; height: 44px; padding: 0; border: 1px solid #fff8; border-radius: 10px; background: #17191dcc; color: #fff; font: 24px/1 var(--ak-font); cursor: pointer; }
.aikea-slider-controls button:hover { background: #003399; }
.aikea-slider-controls button:focus-visible { outline: 3px solid #ffda1a; outline-offset: 2px; }
