/*
Theme Name: CarKhojo
Theme URI: https://carkhojo.in/
Author: CarKhojo
Description: Presentation theme for the CarKhojo automotive portal. Requires the CarKhojo Core plugin for cars, comparisons, filters and settings.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: carkhojo
*/

/* ---------- Design tokens ---------- */
:root {
	--ck-primary: #F4512A;
	--ck-primary-hover: #D9401D;
	--ck-link: #C23A14;            /* orange for text on white: 5.4:1 */
	--ck-on-primary: #111111;      /* charcoal text on orange: 5.4:1 */
	--ck-text: #202124;
	--ck-text-2: #6B7280;
	--ck-bg: #F7F8FA;
	--ck-surface: #FFFFFF;
	--ck-border: #E5E7EB;
	--ck-success: #16803C;
	--ck-warn: #8A5A00;
	--ck-radius: 12px;
	--ck-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--ck-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--ck-gap: 16px;
	--ck-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ck-font); font-size: 16px; line-height: 1.6; color: var(--ck-text); background: var(--ck-bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ck-link); text-underline-offset: 2px; }
a:hover { color: var(--ck-primary-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ck-text); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ck-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; border-radius: 6px; }
.ck-skip:focus { left: 8px; }
.ck-muted { color: var(--ck-text-2); }
.ck-wrap { width: 100%; max-width: var(--ck-wrap); margin: 0 auto; padding-inline: 16px; }
.ck-page { padding-block: 20px 48px; }
.ck-section { padding-block: 32px; }
.ck-section-tight { margin-block: 32px; }
.ck-section:nth-of-type(even) { background: var(--ck-surface); }
.ck-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.ck-section__head h2 { margin: 0; }
.ck-pagehead { margin-bottom: 20px; }
.ck-pagehead p { color: var(--ck-text-2); max-width: 70ch; }
.ck-sub { margin-top: 24px; }
.ck-note { font-size: .9rem; color: var(--ck-text-2); background: #F3F4F6; border-left: 3px solid var(--ck-border); padding: 8px 12px; border-radius: 4px; }
.ck-empty { background: var(--ck-surface); border: 1px dashed var(--ck-border); border-radius: var(--ck-radius); padding: 32px 20px; text-align: center; }
.ck-empty h1, .ck-empty h3 { margin-bottom: 8px; }

/* ---------- Buttons, badges, chips ---------- */
.ck-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.ck-btn--primary { background: var(--ck-primary); color: var(--ck-on-primary); }
.ck-btn--primary:hover { background: #FF6A45; color: var(--ck-on-primary); }
.ck-btn--ghost { background: var(--ck-surface); color: var(--ck-text); border-color: var(--ck-border); }
.ck-btn--ghost:hover { border-color: var(--ck-primary); color: var(--ck-text); }
.ck-btn--light { background: rgba(255, 255, 255, .95); color: var(--ck-text); }
.ck-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF2F7; color: var(--ck-text); vertical-align: middle; }
.ck-badge--ok { background: #DCFCE7; color: #14532D; }
.ck-badge--warn { background: #FEF3C7; color: #78350F; }
.ck-badge--diff { background: #FFEDD5; color: #7C2D12; margin-left: 6px; }
.ck-badge--type { background: #E0E7FF; color: #1E3A8A; }
.ck-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; }
.ck-chips li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #F3F4F6; border: 1px solid var(--ck-border); }
.ck-pills { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.ck-pills a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ck-surface); border: 1px solid var(--ck-border); color: var(--ck-text); text-decoration: none; min-height: 36px; }
.ck-pills a:hover { border-color: var(--ck-primary); }
.ck-linklist { list-style: none; padding: 0; margin: 0; }
.ck-linklist li { padding: 6px 0; border-bottom: 1px solid var(--ck-border); }

/* ---------- Header ---------- */
.ck-header { position: sticky; top: 0; z-index: 50; background: var(--ck-surface); border-bottom: 1px solid var(--ck-border); }
.admin-bar .ck-header { top: 32px; }
.ck-header__bar { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.ck-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ck-text); font-size: 1.35rem; margin-right: auto; }
.ck-logo strong { color: var(--ck-link); }
.ck-logo__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ck-primary); color: var(--ck-on-primary); font-weight: 800; }
.ck-logo__img { max-height: 40px; width: auto; }
.ck-burger { width: 44px; height: 44px; border: 1px solid var(--ck-border); background: var(--ck-surface); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.ck-burger__box, .ck-burger__box::before, .ck-burger__box::after { display: block; width: 20px; height: 2px; background: var(--ck-text); content: ""; position: relative; }
.ck-burger__box::before { position: absolute; top: -6px; }
.ck-burger__box::after { position: absolute; top: 6px; }
.ck-nav { display: none; width: 100%; padding-bottom: 12px; }
.ck-nav.is-open { display: block; }
.ck-menu { list-style: none; margin: 0; padding: 0; }
.ck-menu a { display: block; padding: 12px 4px; color: var(--ck-text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--ck-border); }
.ck-menu a:hover, .ck-menu .current-menu-item > a { color: var(--ck-link); }
.ck-menu .sub-menu { list-style: none; padding-left: 16px; margin: 0; }
.ck-search { display: flex; gap: 6px; }
.ck-search input[type="search"] { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ck-border); border-radius: 999px; font: inherit; background: var(--ck-surface); color: var(--ck-text); }
.ck-search button { min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ck-primary); color: var(--ck-on-primary); font-weight: 700; cursor: pointer; font-family: inherit; }
.ck-search--mobile { margin-top: 12px; }
.ck-search--desktop { display: none; }
.ck-search--page { max-width: 520px; margin-top: 12px; }
.ck-city { font-size: .85rem; color: var(--ck-text-2); }

/* ---------- Hero ---------- */
.ck-hero { position: relative; background: #111827; color: #fff; overflow: hidden; }
.ck-hero__slide { position: relative; min-height: 420px; display: flex; align-items: flex-end; }
.ck-hero__slide[hidden] { display: none; }
.ck-hero__img, .ck-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ck-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 39, .15) 0%, rgba(17, 24, 39, .85) 100%); }
.ck-hero__content { position: relative; z-index: 1; padding-block: 28px 56px; }
.ck-hero__content--plain { padding-block: 64px; }
.ck-hero__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: #FDBA74; margin-bottom: 6px; }
.ck-hero__title, .ck-hero__title a { color: #fff; text-decoration: none; font-size: 1.9rem; margin: 0 0 10px; }
.ck-hero__summary { max-width: 60ch; color: #E5E7EB; }
.ck-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.ck-hero__controls { position: absolute; right: 16px; bottom: 12px; z-index: 2; display: flex; gap: 8px; }
.ck-hero__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(17, 24, 39, .7); color: #fff; font-size: 1rem; cursor: pointer; }

/* ---------- Grids & cards ---------- */
.ck-grid { display: grid; gap: var(--ck-gap); grid-template-columns: 1fr; }
.ck-card { background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); overflow: hidden; box-shadow: var(--ck-shadow); display: flex; flex-direction: column; }
.ck-card__img { display: block; aspect-ratio: 16 / 10; background: #E5E7EB; overflow: hidden; }
.ck-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ck-noimg { display: block; width: 100%; height: 100%; min-height: 120px; background: repeating-linear-gradient(45deg, #EEF0F3, #EEF0F3 10px, #E5E7EB 10px, #E5E7EB 20px); }
.ck-noimg--lg { aspect-ratio: 16 / 9; border-radius: var(--ck-radius); }
.ck-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.ck-card__kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ck-link); margin: 0 0 4px; }
.ck-card__kicker a { color: inherit; text-decoration: none; }
.ck-card__title { font-size: 1.05rem; margin-bottom: 6px; }
.ck-card__title a { color: var(--ck-text); text-decoration: none; }
.ck-card__title a:hover { color: var(--ck-link); }
.ck-card__price { font-weight: 700; margin: 0 0 8px; }
.ck-card__price small { display: block; font-weight: 400; color: var(--ck-text-2); font-size: .75rem; }
.ck-card__meta, .ck-card__excerpt { font-size: .88rem; color: var(--ck-text-2); margin: 0 0 8px; }
.ck-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.ck-card__actions .ck-btn { flex: 1 1 auto; font-size: .85rem; padding: 6px 12px; }
.ck-more { font-size: .85rem; margin-top: auto; }
.ck-compare-check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-size: .9rem; }
.ck-compare-check input { width: 20px; height: 20px; accent-color: var(--ck-primary); }

/* ---------- Filters & forms ---------- */
.ck-filters, .ck-compare-form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); padding: 14px; margin-bottom: 16px; }
.ck-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.ck-field select, .ck-field input, .ck-share input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #9CA3AF; border-radius: 8px; font: inherit; background: #fff; color: var(--ck-text); }
.ck-field input + select { margin-top: 6px; }
.ck-filters__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-form-msg { grid-column: 1 / -1; color: #B91C1C; font-weight: 600; margin: 0; }
.ck-results-count { color: var(--ck-text-2); font-size: .9rem; }
.ck-inline { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }

/* ---------- Car detail ---------- */
.ck-breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--ck-text-2); }
.ck-breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.ck-carhead { display: grid; gap: 20px; margin-bottom: 20px; }
.ck-gallery__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--ck-radius); }
.ck-gallery__list li { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 9; background: #E5E7EB; }
.ck-gallery__list img { width: 100%; height: 100%; object-fit: cover; }
.ck-gallery__hint { font-size: .8rem; margin: 6px 0 0; }
.ck-bigprice { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.ck-bigprice small { display: block; font-size: .8rem; font-weight: 400; color: var(--ck-text-2); }
.ck-verify { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--ck-text-2); }
.ck-carhead__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-tabs { position: sticky; top: 60px; z-index: 20; background: var(--ck-bg); border-bottom: 1px solid var(--ck-border); margin-bottom: 20px; overflow-x: auto; }
.admin-bar .ck-tabs { top: 92px; }
.ck-tabs ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; min-width: max-content; }
.ck-tabs a { display: block; padding: 12px 14px; color: var(--ck-text); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; min-height: 44px; }
.ck-tabs a.is-active, .ck-tabs a[aria-current="page"] { border-bottom-color: var(--ck-primary); color: var(--ck-link); }
.ck-tabtitle { font-size: 1.15rem; }
.ck-layout { display: grid; gap: 24px; }
.ck-side { background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); padding: 14px; margin-bottom: 16px; }
.ck-side h2 { font-size: 1rem; }
.ck-minilist { list-style: none; padding: 0; margin: 0; }
.ck-minilist a { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--ck-text); text-decoration: none; }
.ck-minilist__img { flex: 0 0 72px; aspect-ratio: 16 / 10; background: #E5E7EB; border-radius: 6px; overflow: hidden; }
.ck-minilist__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tables ---------- */
.ck-tablewrap { overflow-x: auto; background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); margin-bottom: 16px; }
.ck-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ck-table th, .ck-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--ck-border); vertical-align: top; }
.ck-table tbody th { width: 40%; font-weight: 600; background: #FAFAFB; }
.ck-table thead th { background: #F3F4F6; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.ck-table tr:last-child > * { border-bottom: 0; }
.ck-table--compare tr.is-diff > td { background: #FFF7ED; }
.ck-table--compare td.is-best { font-weight: 700; }
.ck-table--compare td.is-missing { color: var(--ck-text-2); font-style: italic; }
.ck-features { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.ck-features li { padding: 6px 10px; background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: 8px; font-size: .92rem; }
.ck-features--tight li { border: 0; padding: 2px 0; background: transparent; }
.ck-spec h3 { margin-top: 20px; }
.ck-details summary { cursor: pointer; font-weight: 500; font-size: .85rem; color: var(--ck-link); margin-top: 4px; }

/* ---------- Compare ---------- */
.ck-compare__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ck-compare__heads { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.ck-compare__heads.ck-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ck-compare__car { background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); padding: 10px; text-align: center; }
.ck-compare__car h2 { font-size: .95rem; margin: 8px 0 4px; }
.ck-compare__car h2 a { color: var(--ck-text); text-decoration: none; }
.ck-compare__car .ck-btn { font-size: .8rem; padding: 4px 10px; }
.ck-compare.only-diff .is-same { display: none; }
.ck-share { display: grid; gap: 4px; max-width: 560px; }
.ck-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: var(--ck-surface); border-top: 1px solid var(--ck-border); padding: 10px 16px; box-shadow: 0 -4px 12px rgba(0, 0, 0, .08); }
.ck-compare-tray[hidden] { display: none; }
.ck-compare-tray p { margin: 0; font-weight: 600; }

/* ---------- Articles ---------- */
.ck-prose { max-width: 72ch; font-size: 1.05rem; }
.ck-prose img { border-radius: 8px; }
.ck-prose h2 { margin-top: 1.6em; }
.ck-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--ck-text-2); }
.ck-figure { margin: 0 0 20px; }
.ck-figure img { width: 100%; border-radius: var(--ck-radius); }
.ck-figure figcaption { font-size: .82rem; color: var(--ck-text-2); margin-top: 6px; }
.ck-toc { background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); padding: 12px 16px; margin: 0 0 20px; max-width: 72ch; }
.ck-toc ol { margin: 6px 0 0; }
.ck-correction { background: #FEF3C7; border: 1px solid #F59E0B; padding: 10px 14px; border-radius: 8px; margin: 16px 0; color: #78350F; }
.ck-disclosure { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; padding: 10px 14px; border-radius: 8px; font-size: .9rem; margin: 12px 0; }
.ck-sources ul { padding-left: 1.1em; font-size: .9rem; }
.ck-author { display: flex; gap: 16px; align-items: center; }
.ck-author__img { border-radius: 50%; }
.ck-product { background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: var(--ck-radius); overflow: hidden; display: flex; flex-direction: column; }
.ck-product__img { aspect-ratio: 16 / 10; background: #E5E7EB; }
.ck-product__img img { width: 100%; height: 100%; object-fit: cover; }
.ck-product__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ck-product__title { margin: 0; font-size: 1rem; }
.ck-product__merchant { margin: 0; color: var(--ck-text-2); font-size: .85rem; }
.ck-product__price { margin: 0; font-weight: 700; }
.ck-product__price small { font-weight: 400; color: var(--ck-text-2); margin-left: 4px; }
.ck-product .ck-btn { margin-top: auto; }

/* ---------- Ads (reserve space, label) ---------- */
.ck-ad { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; margin: 16px auto; max-width: var(--ck-wrap); background: #F3F4F6; border-radius: 8px; overflow: hidden; }
.ck-ad__label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-text-2); padding: 2px 0; }

/* ---------- Pagination ---------- */
.ck-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 0; justify-content: center; }
.ck-pagination a, .ck-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ck-border); border-radius: 10px; background: var(--ck-surface); color: var(--ck-text); text-decoration: none; }
.ck-pagination .current { background: var(--ck-primary); border-color: var(--ck-primary); color: var(--ck-on-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.ck-footer { background: #111827; color: #D1D5DB; margin-top: 48px; }
.ck-footer a { color: #F9FAFB; }
.ck-footer__grid { display: grid; gap: 24px; padding-block: 32px; grid-template-columns: 1fr 1fr; }
.ck-footer__brand { font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.ck-footer__brand strong { color: #FDBA74; }
.ck-footer__h { font-size: .95rem; color: #fff; }
.ck-footer ul { list-style: none; padding: 0; margin: 0; }
.ck-footer li { padding: 4px 0; }
.ck-footer .ck-muted { color: #9CA3AF; }
.ck-footer__legal { border-top: 1px solid #1F2937; padding-block: 14px; font-size: .82rem; color: #9CA3AF; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
	.ck-grid--cars, .ck-grid--3, .ck-grid--news { grid-template-columns: repeat(2, 1fr); }
	.ck-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.ck-filters, .ck-compare-form { grid-template-columns: repeat(3, 1fr); }
	.ck-footer__grid { grid-template-columns: repeat(4, 1fr); }
	h1 { font-size: 2.1rem; }
	.ck-hero__title, .ck-hero__title a { font-size: 2.4rem; }
}
@media (min-width: 900px) {
	.ck-burger { display: none; }
	.ck-nav { display: block; width: auto; padding: 0; order: 2; }
	.ck-menu { display: flex; gap: 2px; }
	.ck-menu a { border: 0; padding: 10px 10px; font-size: .9rem; border-radius: 8px; }
	.ck-menu a:hover { background: #F3F4F6; }
	.ck-menu > li { position: relative; }
	.ck-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; background: var(--ck-surface); border: 1px solid var(--ck-border); border-radius: 10px; padding: 6px; min-width: 200px; box-shadow: var(--ck-shadow); }
	.ck-menu li:hover > .sub-menu, .ck-menu li:focus-within > .sub-menu, .ck-menu li.is-open > .sub-menu { display: block; }
	.ck-search--mobile { display: none; }
	.ck-search--desktop { display: flex; order: 3; width: 220px; }
	.ck-logo { margin-right: 12px; }
	.ck-header__bar { flex-wrap: nowrap; }
	.ck-grid--cars { grid-template-columns: repeat(3, 1fr); }
	.ck-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ck-grid--news { grid-template-columns: repeat(3, 1fr); }
	.ck-grid--news .ck-article--featured { grid-column: span 2; }
	.ck-carhead { grid-template-columns: 1.3fr 1fr; align-items: start; }
	.ck-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.ck-filters, .ck-compare-form { grid-template-columns: repeat(4, 1fr); }
	.ck-compare-form--tool { grid-template-columns: repeat(3, 1fr); }
	.ck-hero__slide { min-height: 520px; }
}
@media (min-width: 1200px) {
	.ck-grid--cars { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: stack variant table rows into labelled blocks */
@media (max-width: 640px) {
	.ck-table--stack thead { display: none; }
	.ck-table--stack tr { display: block; border-bottom: 1px solid var(--ck-border); padding: 6px 0; }
	.ck-table--stack th, .ck-table--stack td { display: block; width: 100%; border: 0; padding: 4px 12px; }
	.ck-table--stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ck-text-2); }
	.ck-table--compare th, .ck-table--compare td { min-width: 120px; padding: 8px; font-size: .85rem; }
	.ck-table--compare tbody th { min-width: 110px; }
	.ck-compare__car .ck-btn { display: none; }
}
@media (max-width: 782px) { .admin-bar .ck-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
	.ck-card, .ck-tablewrap, .ck-side { border-color: #4B5563; }
}
