/*
Theme Name: Daewoo Motor Slovakia
Theme URI: https://daewoo.sk/
Author: K6 Computers s.r.o.
Author URI: https://k6computers.eu/
Description: Vlastná téma pre daewoo.sk – archív modelov Daewoo s časovou osou výroby, prehľadom modelov z podstránok, novinkami klubu a sekciou na stiahnutie. Písmo Barlow je súčasťou témy (bez Google Fonts).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dms
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ==========================================================================
   Písmo (SIL Open Font License, assets/fonts/OFL.txt)
   ========================================================================== */
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-semibold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlowcondensed-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlowcondensed-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlowcondensed-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ==========================================================================
   Tokeny
   ========================================================================== */
:root {
	--blue: #0054a6;      /* Daewoo modrá */
	--blue-ink: #003c7a;
	--blue-night: #002a57;
	--blue-light: #8fb8e6;
	--sky: #dce9f7;
	--mist: #eef1f5;
	--silver: #b9c1cc;
	--line: #d7dce3;
	--ink: #172131;
	--muted: #566275;
	--bordo: #7a1f2b;
	--white: #fff;

	--font: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;

	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--measure: 68ch;
	--radius: 3px;
}

/* ==========================================================================
   Základ
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font);
	font-feature-settings: "kern", "lnum";
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-cond);
	font-weight: 600;
	line-height: 1.1;
	color: var(--blue-ink);
	margin: 0 0 0.5em;
	letter-spacing: 0;
}

button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ==========================================================================
   Hlavička – biely štít s logom + modrá lišta s menu
   ========================================================================== */
.site-header { background: var(--white); position: relative; z-index: 60; }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 96px; padding-block: 14px; }

.site-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.site-brand .custom-logo-link { display: block; flex: 0 0 auto; }
.site-brand .custom-logo { max-height: 68px; width: auto; }
.site-brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-brand.has-logo .site-brand__text { padding-left: 18px; border-left: 1px solid var(--line); }
.site-brand__name {
	font-family: var(--font-cond); font-weight: 700; font-size: 1.75rem; line-height: 1;
	color: var(--blue); text-decoration: none;
}
.site-brand__name:hover { color: var(--blue-ink); text-decoration: none; }
.site-brand__tagline { font-family: var(--font-cond); font-weight: 500; font-size: 1.15rem; line-height: 1; color: var(--muted); }

/* Modrá lišta */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--blue); color: var(--white); box-shadow: inset 0 -3px 0 var(--blue-ink); }
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
.site-nav__inner { display: flex; align-items: center; gap: 18px; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; margin-left: -12px; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu > li > a {
	display: block; padding: 17px 12px 16px;
	font-family: var(--font-cond); font-weight: 600; font-size: 1.2rem; line-height: 1;
	color: var(--white); text-decoration: none;
	border-bottom: 3px solid transparent; margin-bottom: 0;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > li.is-open > a { background: var(--blue-ink); }
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_item > a,
.site-nav .menu > .current_page_ancestor > a { border-bottom-color: var(--white); }
.site-nav :focus-visible { outline-color: var(--white); }

.submenu-toggle {
	display: inline-grid; place-items: center;
	width: 22px; height: 28px; margin-left: -10px; margin-right: 4px; padding: 0;
	background: none; border: 0; color: var(--blue-light); cursor: pointer; border-radius: 2px;
}
.submenu-toggle svg { transition: transform .15s ease; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.site-nav .sub-menu,
.site-nav .children {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--white); border: 1px solid var(--line); border-top: 0;
	box-shadow: 0 16px 32px -14px rgba(0, 42, 87, .35);
	visibility: hidden; opacity: 0; transform: translateY(4px);
	transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.site-nav .sub-menu:has(> li:nth-child(9)) { column-count: 2; column-gap: 0; min-width: 380px; }
.site-nav .sub-menu li, .site-nav .children li { break-inside: avoid; position: relative; }
.site-nav .sub-menu a, .site-nav .children a {
	display: block; padding: 8px 18px;
	color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35;
}
.site-nav .sub-menu a:hover, .site-nav .children a:hover,
.site-nav .sub-menu .current-menu-item > a { background: var(--sky); color: var(--blue-ink); }
.site-nav .sub-menu :focus-visible { outline-color: var(--blue); outline-offset: -3px; }
.site-nav .sub-menu .submenu-toggle { display: none; }

@media (min-width: 1001px) {
	.site-nav .menu > li:hover > .sub-menu,
	.site-nav .menu > li:hover > .children,
	.site-nav .menu > li:focus-within > .sub-menu,
	.site-nav .menu > li:focus-within > .children,
	.site-nav .menu > li.is-open > .sub-menu,
	.site-nav .menu > li.is-open > .children {
		visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
	}
	.site-nav .menu > li:last-child > .sub-menu,
	.site-nav .menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
	.site-nav .menu > li:hover > .submenu-toggle { color: var(--white); }
}

a.is-external::after {
	content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .35em; vertical-align: .05em;
	background: currentColor; opacity: .55;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M8.5 11H1V3.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M8.5 11H1V3.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Vyhľadávanie v lište */
.nav-search { display: flex; align-items: center; position: relative; margin-left: auto; }
.nav-search input {
	width: 11.5rem; height: 36px; padding: 0 38px 0 12px;
	border: 1px solid transparent; border-radius: var(--radius);
	background: rgba(255, 255, 255, .14); color: var(--white);
	transition: width .2s ease, background .2s ease;
}
.nav-search input::placeholder { color: rgba(255, 255, 255, .72); }
.nav-search input:focus { width: 15rem; background: var(--white); color: var(--ink); outline: 2px solid var(--white); outline-offset: 0; }
.nav-search input:focus::placeholder { color: var(--muted); }
.nav-search button {
	position: absolute; right: 0; top: 0; width: 38px; height: 36px;
	display: grid; place-items: center; background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-search input:focus + button { color: var(--blue); }

/* Mobilné menu */
.nav-toggle {
	display: none; margin-left: auto; align-items: center; gap: 10px; flex: 0 0 auto;
	height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius);
	background: var(--blue); color: var(--white); cursor: pointer; font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, background .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
	.nav-toggle { display: inline-flex; }
	.site-header { border-bottom: 4px solid var(--blue); }
	.site-header__inner { min-height: 72px; padding-block: 10px; }
	.site-brand .custom-logo { max-height: 48px; }
	.site-brand__name { font-size: 1.4rem; }
	.site-brand__tagline { font-size: 1rem; }
	.site-nav { display: none; position: relative; box-shadow: none; }
	.site-nav.is-expanded { display: block; }
	.site-nav__inner { flex-direction: column; align-items: stretch; gap: 0; padding-block: 4px 20px; }
	.site-nav .menu { flex-direction: column; align-items: stretch; margin-left: 0; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .18); }
	.site-nav .menu > li > a { flex: 1; padding: 16px 0; border: 0; font-size: 1.3rem; }
	.site-nav .menu > li > a:hover, .site-nav .menu > li.is-open > a { background: none; }
	.site-nav .menu > .current-menu-item > a,
	.site-nav .menu > .current-menu-ancestor > a,
	.site-nav .menu > .current_page_item > a,
	.site-nav .menu > .current_page_ancestor > a { text-decoration: underline; text-underline-offset: .2em; }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; border-left: 1px solid rgba(255, 255, 255, .18); color: var(--white); }
	.site-nav .sub-menu, .site-nav .children {
		position: static; display: none; flex-basis: 100%;
		visibility: visible; opacity: 1; transform: none; transition: none;
		background: none; border: 0; box-shadow: none; padding: 0 0 12px; min-width: 0;
	}
	.site-nav .sub-menu:has(> li:nth-child(9)) { column-count: 2; min-width: 0; }
	.site-nav .is-open > .sub-menu, .site-nav .is-open > .children { display: block; }
	.site-nav .sub-menu a, .site-nav .children a { padding: 9px 0 9px 14px; color: var(--white); }
	.site-nav .sub-menu a:hover, .site-nav .children a:hover, .site-nav .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, .1); color: var(--white); }
	.site-nav .sub-menu :focus-visible { outline-color: var(--white); }
	.nav-search { margin: 16px 0 0; }
	.nav-search input, .nav-search input:focus { width: 100%; height: 46px; }
	.nav-search button { height: 46px; width: 46px; }
}
@media (max-width: 420px) {
	.site-brand.has-logo .site-brand__text { display: none; }
	.site-brand__tagline { display: none; }
}

/* ==========================================================================
   Titulka – modrý úvod s fotkou, pod ním modelová rada
   ========================================================================== */
.hero { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(24px, 4vw, 56px); align-items: center;
	padding-block: clamp(36px, 6vw, 72px);
}
.hero__inner.no-photo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
.hero__title {
	font-weight: 700;
	font-size: clamp(3rem, 7vw, 6rem);
	line-height: .9;
	letter-spacing: -0.015em;
	color: var(--white);
	margin: 0;
	text-wrap: balance;
}
.hero__tagline {
	margin: .5em 0 0;
	font-family: var(--font-cond); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1;
	color: var(--blue-light);
}
.hero__intro { margin: 22px 0 0; font-size: 1.15rem; line-height: 1.55; max-width: 36ch; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__btn {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
	font-family: var(--font-cond); font-weight: 600; font-size: 1.2rem; text-decoration: none;
	border-radius: var(--radius); border: 2px solid var(--white);
	color: var(--blue); background: var(--white);
}
.hero__btn:hover { background: var(--sky); border-color: var(--sky); color: var(--blue-ink); text-decoration: none; }
.hero__btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.hero__btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); color: var(--white); }
.hero :focus-visible { outline-color: var(--white); }

.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.hero__photo figcaption {
	position: absolute; left: 0; bottom: 0;
	padding: 8px 14px; background: var(--white); color: var(--blue-ink);
	font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem; line-height: 1;
}
.hero__photo figcaption a { color: inherit; text-decoration: none; }
.hero__photo figcaption a:hover { text-decoration: underline; }
.hero__photo figcaption span { color: var(--muted); font-weight: 500; margin-left: 8px; }

@media (max-width: 760px) {
	.hero__inner, .hero__inner.no-photo { grid-template-columns: 1fr; align-items: start; }
	.hero__photo { order: -1; margin-inline: calc(-1 * var(--gutter)); }
	.hero__photo img { border-radius: 0; box-shadow: none; }
}

.lineup { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px); }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--blue);
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.section-link { font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }

/* ==========================================================================
   Časová os modelov
   ========================================================================== */
.timeline { --label: 15rem; --row: 58px; position: relative; }
.timeline__axis,
.timeline__link { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; }
.timeline__label-col { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 16px; }

.timeline__track {
	position: relative; height: 100%;
	background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--span)));
}
.timeline__axis { height: 30px; }
.timeline__axis .timeline__track { background: none; border-bottom: 1px solid var(--silver); }
.timeline__tick {
	position: absolute; bottom: 0; left: calc(var(--at) / var(--span) * 100%);
	width: 1px; height: 6px; background: var(--silver);
}
.timeline__tick.is-major { height: 10px; background: var(--muted); }
.timeline__tick span {
	position: absolute; bottom: 12px; left: 0; transform: translateX(-50%);
	font-family: var(--font-cond); font-weight: 600; font-size: .95rem; line-height: 1; color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.timeline__rows { list-style: none; margin: 0; padding: 0; }
.timeline__row { border-bottom: 1px solid var(--line); }
.timeline__link { min-height: var(--row); color: inherit; text-decoration: none; }
.timeline__link > .timeline__track { align-self: stretch; }

.timeline__thumb {
	flex: 0 0 auto; width: 64px; height: 40px; object-fit: cover;
	border-radius: 2px; background: var(--white);
}
.model-img--empty.timeline__thumb { display: block; background: linear-gradient(135deg, var(--white), var(--line)); }
.timeline__name {
	font-family: var(--font-cond); font-weight: 600; font-size: 1.3rem; line-height: 1.05;
	color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.timeline__bar {
	position: absolute; top: 50%; height: 14px; transform: translateY(-50%);
	left: calc(var(--from) / var(--span) * 100%);
	width: calc(var(--len) / var(--span) * 100%);
	background: var(--blue); border-radius: 1px;
	transition: height .12s ease, background .12s ease;
}
.timeline__years {
	position: absolute; bottom: calc(100% + 4px); left: 0;
	font-family: var(--font-cond); font-weight: 600; font-size: .95rem; line-height: 1;
	color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums;
}

.timeline__link:hover { background: var(--white); }
.timeline__link:hover .timeline__bar { background: var(--blue-ink); height: 20px; }
.timeline__link:hover .timeline__name { color: var(--blue); }
.timeline__link:focus-visible { outline-offset: -3px; }

/* Na stránke modelu: kompaktná verzia, zvýraznený aktuálny model */
.timeline--compact { --label: 6.5rem; --row: 30px; }
.timeline--compact .timeline__label-col { padding-right: 10px; }
.timeline--compact .timeline__name { font-size: 1.02rem; font-weight: 500; color: var(--muted); }
.timeline--compact .timeline__bar { height: 8px; background: var(--silver); }
.timeline--compact .timeline__years { display: none; }
.timeline--compact .timeline__tick span { font-size: .8rem; }
.timeline--compact .timeline__tick:not(.is-major) { display: none; }
.timeline--compact .timeline__tick.is-edge span { display: none; }
.timeline--compact .timeline__row { border-bottom-color: transparent; }
.timeline--compact .timeline__link:hover .timeline__bar { height: 10px; background: var(--blue); }
.timeline--compact .is-current .timeline__name { color: var(--blue-ink); font-weight: 700; }
.timeline--compact .is-current .timeline__bar { background: var(--blue); height: 12px; }
.timeline--compact .is-current .timeline__years { display: block; color: var(--blue-ink); }

@media (max-width: 760px) {
	.timeline:not(.timeline--compact) { --label: 7.25rem; --row: 52px; }
	.timeline:not(.timeline--compact) .timeline__thumb { display: none; }
	.timeline:not(.timeline--compact) .timeline__name { font-size: 1.15rem; }
	.timeline__tick span { font-size: .8rem; }
	.timeline:not(.timeline--compact) .timeline__years { font-size: .8rem; }
}

/* ==========================================================================
   Novinky na titulke
   ========================================================================== */
.front-news { padding: clamp(40px, 6vw, 72px) 0 0; }
.front-posts { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.front-news + .front-posts { padding-top: clamp(32px, 4vw, 48px); }

.notice {
	max-width: 860px;
	border-left: 6px solid var(--bordo);
	padding: 4px 0 4px clamp(18px, 3vw, 36px);
}
.notice__title { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--bordo); margin-bottom: .4em; }
.notice__title a { color: inherit; text-decoration: none; }
.notice__title a:hover { text-decoration: underline; }
.notice__date { margin: 0 0 6px; color: var(--muted); font-weight: 500; }
.notice .entry-content > * { max-width: 64ch; }
.notice--lead { margin-bottom: 40px; }

/* ==========================================================================
   Zoznam článkov
   ========================================================================== */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-row.has-img { grid-template-columns: 220px minmax(0, 1fr); }
.post-row__img img, .post-row__img .model-img--empty { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: var(--mist); }
.post-row__meta { margin: 0 0 4px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.post-row__title { font-size: 1.6rem; margin: 0 0 6px; }
.post-row__title a { color: var(--blue-ink); text-decoration: none; }
.post-row__title a:hover { color: var(--blue); text-decoration: underline; }
.post-row__excerpt { margin: 0; max-width: 64ch; color: var(--ink); }
@media (max-width: 600px) {
	.post-row.has-img { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.post-row__title { font-size: 1.3rem; }
	.post-row__excerpt { display: none; }
}

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: var(--white); }

.empty { padding: 24px 0 48px; }
.empty p { font-size: 1.15rem; }

/* ==========================================================================
   Stránky a články
   ========================================================================== */
.page-head { background: var(--blue); color: var(--white); padding: clamp(32px, 5vw, 56px) 0 clamp(26px, 4vw, 44px); }
.page-head :focus-visible { outline-color: var(--white); }
.page-title { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; line-height: .95; color: var(--white); margin: 0; text-wrap: balance; }
.page-lead { margin: 14px 0 0; max-width: 60ch; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.page-lead a { color: var(--white); }
.crumb { margin: 0 0 10px; font-family: var(--font-cond); font-weight: 600; font-size: 1.15rem; color: var(--blue-light); display: flex; gap: 14px; flex-wrap: wrap; }
.crumb a { color: var(--white); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-years {
	margin: 14px 0 0; font-family: var(--font-cond); font-weight: 600; font-size: 1.5rem; line-height: 1;
	color: var(--blue-light); font-variant-numeric: tabular-nums;
}

.page-hero { margin: 32px auto 0; }
.page-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 2px; }

.page-body { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-body--model {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.model-aside { position: sticky; top: 80px; padding: 18px 18px 10px; background: var(--mist); border-radius: var(--radius); }
.model-aside__title { font-size: 1.25rem; margin: 0 0 4px; color: var(--ink); }
@media (max-width: 960px) {
	.page-body--model { grid-template-columns: 1fr; }
	.model-aside { position: static; }
}

/* Obsah */
.entry-content > * { max-width: var(--measure); margin-top: 0; margin-bottom: 1.1em; }
.entry-content > .alignwide { max-width: 100%; }
.entry-content > .alignfull { max-width: none; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); margin-top: 1.6em; margin-bottom: .45em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; margin-bottom: .4em; }
.entry-content h4 { font-size: 1.2rem; margin-top: 1.2em; }
.entry-content strong { font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .3em; }
.entry-content ul li::marker { color: var(--blue); }
.entry-content blockquote {
	margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue);
	font-size: 1.15rem; color: var(--blue-ink);
}
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 2px; }
.entry-content figcaption, .wp-element-caption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; max-width: var(--measure); }
.entry-content code { font-size: .92em; background: var(--mist); padding: .1em .35em; border-radius: 2px; }
.entry-content pre { background: var(--mist); padding: 16px; overflow-x: auto; border-radius: var(--radius); }

/* Prvý obrázok na stránke modelu – fotka auta dostane viac miesta */
.is-model .entry-content > :is(figure, p):first-child:has(img) { max-width: 100%; margin-bottom: 1.6em; }
.is-model .entry-content > :is(figure, p):first-child img { width: 100%; max-height: 560px; object-fit: cover; }

/* Tabuľky (technické údaje) */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table thead { border-bottom: 0; }
.entry-content thead th { border-bottom: 2px solid var(--blue); font-weight: 600; color: var(--blue-ink); }
.entry-content tbody tr:nth-child(even) { background: var(--mist); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--mist); }

/* Súbory na stiahnutie (blok Súbor) */
.wp-block-file {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius);
	background: var(--white);
}
.wp-block-file { font-size: 1.05rem; }
.wp-block-file > a:not(.wp-block-file__button) { font-weight: 600; color: var(--blue-ink); }
.wp-block-file .wp-block-file__button,
.wp-block-button__link,
.search-form button,
.comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px; margin-left: auto;
	background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius);
	font-family: var(--font-cond); font-weight: 600; font-size: 1.1rem; text-decoration: none; cursor: pointer;
}
.wp-block-button__link { margin-left: 0; }
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover,
.search-form button:hover,
.comment-form .submit:hover { background: var(--blue-ink); color: var(--white); }
.wp-block-file__embed { width: 100%; border: 1px solid var(--line); margin-top: 12px; }
.wp-block-file + .wp-block-file { margin-top: -0.5em; }

/* Galéria */
.wp-block-gallery.has-nested-images { gap: 8px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 2px; }

/* Podstránky (O Daewoo, Galéria, Download…) */
.child-pages ul { list-style: none; margin: 0 0 clamp(48px, 7vw, 88px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.child-pages a { display: block; text-decoration: none; color: var(--ink); }
.child-pages__img .model-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--mist); border-radius: 2px; }
.child-pages__img .model-img--empty { display: block; background: var(--mist); border-top: 3px solid var(--blue); }
.child-pages__title { display: block; margin-top: 10px; font-family: var(--font-cond); font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: var(--blue-ink); }
.child-pages a:hover .child-pages__title { color: var(--blue); text-decoration: underline; }

/* Prehľad modelov */
.model-grid {
	list-style: none; margin: 0 0 clamp(48px, 7vw, 88px); padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px 24px;
}
.model-card a { display: block; text-decoration: none; color: var(--ink); }
.model-card__img { display: block; background: var(--mist); border-radius: 2px; overflow: hidden; }
.model-card__img .model-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.model-card__img .model-img--empty { display: block; aspect-ratio: 16 / 10; }
.model-card__name { display: block; margin-top: 12px; font-family: var(--font-cond); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--blue-ink); }
.model-card__years { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.model-card a:hover .model-card__name { color: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
	.model-card a:hover .model-img { transform: scale(1.03); }
}

/* Navigácia medzi modelmi / článkami */
.model-nav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
	padding-bottom: clamp(48px, 7vw, 88px);
}
.model-nav__link {
	display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink);
}
.model-nav__link--next { grid-column: 2; text-align: right; }
.model-nav__link:hover { border-color: var(--blue); background: var(--mist); }
.model-nav__dir { display: block; font-size: .95rem; color: var(--muted); }
.model-nav__dir::before { content: "← "; }
.model-nav__link--next .model-nav__dir::before { content: ""; }
.model-nav__link--next .model-nav__dir::after { content: " →"; }
.model-nav__name { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--blue-ink); }
@media (max-width: 600px) {
	.model-nav { grid-template-columns: 1fr; }
	.model-nav__link--next { grid-column: 1; }
}

.entry-tags { padding-bottom: 32px; color: var(--muted); }
.entry-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; background: var(--mist); border-radius: var(--radius); text-decoration: none; }

/* Formuláre */
.search-form { display: flex; gap: 8px; max-width: 520px; margin-bottom: 32px; }
.search-form input, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	flex: 1; min-height: 46px; padding: 8px 12px;
	border: 1px solid var(--silver); border-radius: var(--radius); background: var(--white);
}
.search-form input:focus, .comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.search-form button { margin-left: 0; min-height: 46px; }

/* Komentáre */
.comments { max-width: var(--measure); padding-bottom: clamp(48px, 7vw, 88px); }
.comment-list { list-style: none; padding: 0; margin: 20px 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-meta a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.comment-form p { margin: 0 0 14px; }
.comment-form textarea { width: 100%; }
.comment-form .submit { margin-left: 0; }

/* ==========================================================================
   Päta
   ========================================================================== */
.site-footer { background: var(--blue-night); color: #c9d4e6; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }

.site-footer__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px;
	padding-top: clamp(40px, 6vw, 64px); padding-bottom: 40px;
}
.site-footer__name { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--white); }
.site-footer__tagline { margin: 6px 0 0; font-family: var(--font-cond); font-weight: 500; font-size: 1.2rem; }
.site-footer__text { margin: 18px 0 0; font-size: .92rem; line-height: 1.5; max-width: 30ch; color: #a8b6cd; }

.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 24px; }
.footer-menu > li > a {
	display: block; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .18);
	font-family: var(--font-cond); font-weight: 600; font-size: 1.2rem;
}
.footer-menu > li > a[href="#"] { pointer-events: none; }
.footer-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu .sub-menu a { display: inline-block; padding: 3px 0; color: #c9d4e6; }
.footer-menu .sub-menu a:hover { color: var(--white); }
.footer-menu > li:has(.sub-menu li:nth-child(9)) .sub-menu { columns: 2; column-gap: 16px; }
.footer-menu > li:has(.sub-menu li:nth-child(9)) { grid-column: span 2; }

.site-footer__widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer__widgets { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 28px; }
.site-footer .widget-title,
.site-footer__widgets :is(h2, h3, h4, .wp-block-heading) { font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.site-footer__widgets ul { list-style: none; margin: 0; padding: 0; }
.site-footer__widgets li { padding: 3px 0; }
.site-footer__widgets a { color: #c9d4e6; }
.site-footer__widgets input { color: var(--ink); }

.site-footer__base {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .9rem; color: #a8b6cd;
}
.site-footer__base p { margin: 0; }

@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.footer-menu { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Zarovnania WordPressu
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky {}
.bypostauthor {}
.gallery-caption {}

@media print {
	.site-header, .site-footer, .model-aside, .model-nav, .comments { display: none; }
	.page-head { background: none; }
}

.page-spacer { height: clamp(28px, 4vw, 48px); }
