/*
Theme Name: Leganza
Theme URI: https://peterprotus.eu/
Author: Peter Protuš
Author URI: https://peterprotus.eu/
Description: Tmavá automotive + IT téma pre osobný web a blog. Otáčkomer s vlastným logom, nákres Daewoo Leganza v úvode, garáž s kartami áut, blog s infopanelom a projekty v štýle terminálu. Všetko nastaviteľné cez Vzhľad → Prispôsobiť.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
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: leganza
Tags: dark, blog, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ---------- Fonty (lokálne, bez Google) ---------- */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/chakra-petch-medium.woff") format("woff"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/chakra-petch-semibold.woff") format("woff"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/chakra-petch-bold.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-var.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("assets/fonts/jetbrains-mono-var.woff") format("woff"); }

/* ---------- Premenné ---------- */
:root {
	--accent: #2a6fdb;
	--amber: #f5a524;
	--link: #8fb6ff;
	--bg: #070d1a;
	--bg-2: #0a1324;
	--bg-deep: #050a14;
	--card: #0c1629;
	--card-2: #101d36;
	--line: #16233d;
	--line-2: #1d2e52;
	--line-3: #2a3c62;
	--text: #dbe4f3;
	--text-2: #b9c6de;
	--muted: #8a9ab9;
	--white: #ffffff;
	--f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
	--f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	--wrap: 1240px;
	--radius: 12px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 2px;
}
::selection { background: var(--accent); color: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: #000; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 8px; }

.kicker {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: .14em;
	color: var(--link);
	text-transform: uppercase;
}

/* ---------- Horný pásik ---------- */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar__on { color: var(--accent); }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 19, 36, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); min-width: 0; flex: 0 1 auto; }
.brand:hover { color: var(--white); }
.brand__mono {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 2px solid var(--accent); border-radius: 10px;
	background: var(--card-2); font-family: var(--f-display); font-weight: 700; font-size: 18px;
}
.brand__logo { width: auto; max-height: 44px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.brand__sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menu – desktop */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu, .site-nav > div > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a {
	display: block; padding: 12px 10px;
	font-family: var(--f-display); font-weight: 600; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase;
	color: var(--text-2);
}
.site-nav a:hover { color: var(--white); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a, .site-nav .current_page_ancestor > a {
	color: var(--white); box-shadow: inset 0 -2px 0 var(--accent);
}
.sub-toggle {
	appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer;
	margin-left: -8px; padding: 10px 6px; font-size: 12px; line-height: 1; min-height: 44px;
}
.sub-toggle:hover { color: var(--white); }
.is-open > .sub-toggle span { display: inline-block; transform: rotate(180deg); }

.site-nav ul ul {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 240px;
	display: none; flex-direction: column; align-items: stretch;
	padding: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.site-nav ul ul li { width: 100%; justify-content: space-between; }
.site-nav ul ul a {
	flex: 1; padding: 10px 12px; border-radius: 6px;
	font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text);
}
.site-nav ul ul a:hover { background: var(--card-2); }
.site-nav ul ul .sub-toggle { margin: 0; }
.site-nav ul ul .sub-toggle span { display: inline-block; transform: rotate(-90deg); }
.site-nav ul ul ul { top: -9px; left: 100%; }
.site-nav .menu > li:nth-last-child(-n+4) ul ul,
.site-nav > div > ul > li:nth-last-child(-n+4) ul ul { left: auto; right: 100%; }
.site-nav li.is-open > ul { display: flex; }
@media (hover: hover) and (min-width: 1181px) {
	.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: flex; }
}

.nav-toggle { display: none; }

/* Menu – mobil */
@media (max-width: 1180px) {
	.nav-toggle {
		display: flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; border: 1px solid var(--line-3); border-radius: 8px;
		background: transparent; color: var(--white); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
	}
	.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); }

	.site-header__inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
	.brand { flex: 1 1 0; }
	.site-nav { display: none; width: 100%; padding-bottom: 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
	.nav-open .site-nav { display: block; }
	.site-nav .menu, .site-nav > div > ul { flex-direction: column; align-items: stretch; }
	.site-nav li { flex-wrap: wrap; border-top: 1px solid var(--line); }
	.site-nav li > a { flex: 1; }
	.site-nav .sub-toggle { margin: 0; min-width: 48px; }
	.site-nav ul ul, .site-nav ul ul ul {
		position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--line-2);
		border-radius: 0; margin: 0 0 8px 14px; padding: 0; background: transparent;
	}
	.site-nav ul ul .sub-toggle span { transform: none; }
	.site-nav ul ul li { border-top: 0; }
	.site-nav .current-menu-item > a, .site-nav .current_page_item > a,
	.site-nav .current-menu-ancestor > a, .site-nav .current_page_ancestor > a { box-shadow: inset 3px 0 0 var(--accent); }
}

/* ---------- Tlačidlá ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border-radius: 6px; border: 1px solid transparent;
	font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
	cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #1f5cc0; color: var(--white); }
.btn--ghost { border-color: var(--line-3); color: var(--text); }
.btn--ghost:hover { border-color: var(--link); color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero__grid {
	position: absolute; inset: 0; opacity: .55;
	background-image: linear-gradient(#13213d 1px, transparent 1px), linear-gradient(90deg, #13213d 1px, transparent 1px);
	background-size: 48px 48px;
}
.hero__car {
	position: absolute; right: 3%; bottom: 40px; width: min(840px, 70%); aspect-ratio: 1340 / 640; pointer-events: none;
	-webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
	mask-image: linear-gradient(100deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
}
.hero__car img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .38; }
.hero__caption { position: absolute; right: 22%; bottom: -14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: #5d6f94; white-space: nowrap; }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 380px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__copy .kicker { color: var(--accent); font-size: 13px; letter-spacing: .12em; }
.hero__title {
	margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 6vw, 68px); line-height: 1.02;
	color: var(--white); text-transform: uppercase; letter-spacing: .01em;
}
.hero__text { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; font-family: var(--f-mono); font-size: 12px; }
.hero__stats div { display: flex; gap: 8px; }
.hero__stats dt { color: var(--muted); text-transform: uppercase; }
.hero__stats dd { margin: 0; color: var(--white); }
.hero__stats dd a { color: var(--white); }
.hero__stats dd a:hover { color: var(--link); }
.hero__gauge { flex: 1 1 320px; display: flex; justify-content: center; }
.gauge { width: 380px; }
.gauge__face { fill: #08101f; stroke: var(--line-2); stroke-width: 2; }
.gauge__track { fill: none; stroke: #13213d; stroke-width: 18; }
.gauge__arc { fill: none; stroke: var(--accent); stroke-width: 18; }
.gauge__red { fill: none; stroke: var(--amber); stroke-width: 18; }
.gauge__ticks line { stroke: var(--muted); stroke-width: 2; }
.gauge__needle { stroke: var(--white); stroke-width: 4; stroke-linecap: round; }
.gauge__hub { fill: var(--card-2); stroke: var(--white); stroke-width: 3; }
.gauge__value { fill: var(--white); font-family: var(--f-mono); font-size: 34px; font-weight: 600; }
.gauge__label { fill: var(--muted); font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; }
.gauge__brand { fill: var(--accent); font-family: var(--f-display); font-size: 22px; font-weight: 700; }
@media (max-width: 960px) {
	.hero__inner { padding-bottom: 260px; gap: 24px; }
	.hero__car { width: 92%; right: 4%; bottom: 24px; }
	.gauge { width: 280px; }
}
@media (max-width: 600px) {
	.hero__inner { padding-top: 48px; padding-bottom: 190px; }
	.hero__text { font-size: 16px; }
	.hero__caption { display: none; }
}

/* ---------- Sekcie ---------- */
.section { padding-top: 80px; padding-bottom: 24px; }
.section:last-child { padding-bottom: 88px; }
.section-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 32px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head .kicker { color: var(--accent); }
.section > .section-head { margin-bottom: 32px; }
.section-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; color: var(--white); text-transform: uppercase; }
.section-link { font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; }
.admin-hint { padding: 16px 20px; border: 1px dashed var(--amber); border-radius: var(--radius); color: var(--amber); font-family: var(--f-mono); font-size: 13px; }

/* Garáž */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--card-2); border-bottom: 2px solid var(--accent); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__ph { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--f-mono); font-size: 12px; color: #5d6f94; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.badge { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--amber); text-transform: uppercase; }
.card__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.card__title a { color: var(--white); }
.card__title a:hover { color: var(--link); }
.card__text { margin: 0; color: var(--text-2); font-size: 15px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-family: var(--f-mono); font-size: 12px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text); }
.card__link { margin-top: auto; font-weight: 600; font-size: 15px; padding: 6px 0; }
.archive-strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; padding: 16px 22px;
	border: 1px dashed var(--line-3); border-radius: var(--radius); font-family: var(--f-mono); font-size: 13px;
}
.archive-strip span { color: var(--muted); }
.archive-strip a { padding: 4px 0; }

/* Blog + infopanel */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.post-list { border-bottom: 1px solid var(--line); }
.row { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.row__date { flex: none; min-width: 96px; padding-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row__title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.3; }
.row__title a { color: var(--white); }
.row__title a:hover { color: var(--link); }
.row__text { margin: 0; color: #9fb0cf; font-size: 15px; }
.row__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-family: var(--f-mono); font-size: 11px; color: var(--amber); }
.row__thumb { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
	.row { flex-wrap: wrap; gap: 6px 16px; }
	.row__date { min-width: 0; width: 100%; padding: 0; }
	.row__thumb { display: none; }
}

.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; font-size: 15px; color: var(--text-2); }
.panel__title { margin: 0 0 14px; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { padding: 6px 0; border-top: 1px solid var(--line); }
.panel li:first-child { border-top: 0; }
.panel ul ul { padding-left: 14px; }
.panel li a::before { content: "→ "; color: var(--muted); }
.panel img { border-radius: 6px; }
.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

/* Projekty */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.project {
	display: flex; flex-direction: column; gap: 10px; padding: 20px;
	background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
	transition: border-color .2s, background .2s;
}
.project:hover { border-color: var(--accent); background: #07101f; color: var(--text); }
.project__cmd { font-family: var(--f-mono); font-size: 12px; color: var(--amber); }
.project__title { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--white); line-height: 1.3; }
.project__desc { font-size: 14px; color: var(--muted); }

/* ---------- Podstránky ---------- */
.page-hero { position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 56px 0 44px; overflow: hidden; }
.page-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .45;
	background-image: linear-gradient(#13213d 1px, transparent 1px), linear-gradient(90deg, #13213d 1px, transparent 1px);
	background-size: 48px 48px;
}
.page-hero .wrap { position: relative; }
.page-hero .kicker { color: var(--accent); margin-bottom: 10px; }
.page-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--white); }
.page-lead { margin: 14px 0 0; max-width: 720px; color: var(--text-2); font-size: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.crumbs a { color: var(--link); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.post-meta .tag { color: var(--amber); }

.entry { max-width: 860px; }
.split .entry { max-width: none; }
.entry__cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.entry__cover img { display: block; width: 100%; }

.subpages { margin-top: 56px; }
.subpages .kicker { color: var(--accent); margin-bottom: 16px; }
.subpages__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.subpage {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px;
	background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; color: var(--white);
	font-family: var(--f-display); font-weight: 600; font-size: 17px;
}
.subpage:hover { border-color: var(--accent); color: var(--white); }
.subpage img { margin: -16px -18px 0; width: calc(100% + 36px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px 10px 0 0; }
.subpage__go { position: absolute; right: 16px; bottom: 16px; color: var(--accent); }
.subpage__title { padding-right: 24px; }

/* ---------- Obsah článkov ---------- */
.entry-content { font-size: 18px; color: var(--text); overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	font-family: var(--f-display); color: var(--white); line-height: 1.2; margin-top: 1.8em; margin-bottom: .6em;
}
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(143, 182, 255, .4); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote {
	margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic;
}
.entry-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.entry-content code, .entry-content kbd { font-family: var(--f-mono); font-size: .88em; background: var(--card-2); padding: 2px 6px; border-radius: 4px; }
.entry-content pre { font-family: var(--f-mono); font-size: 14px; background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line-2); text-align: left; }
.entry-content th { background: var(--card); color: var(--white); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .3em; }
.entry-content iframe { max-width: 100%; }
.entry-content figcaption, .wp-caption-text, .gallery-caption { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: calc(-1 * min(120px, 6vw)); margin-right: calc(-1 * min(120px, 6vw)); max-width: none; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-button__link { background: var(--accent); color: var(--white) !important; border-radius: 6px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none !important; }
.wp-block-image img { border-radius: 8px; }
.wp-block-quote.is-style-large { border-left: 3px solid var(--accent); }
.has-text-align-center { text-align: center; }

/* Galérie (aj staré [gallery]) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; margin-bottom: 1.4em; }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-3 { --cols: 3; }
.gallery-columns-4 { --cols: 4; } .gallery-columns-5 { --cols: 5; } .gallery-columns-6 { --cols: 6; }
.gallery-columns-7 { --cols: 7; } .gallery-columns-8 { --cols: 8; } .gallery-columns-9 { --cols: 9; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); transition: border-color .2s, opacity .2s; }
.gallery-item a:hover img { border-color: var(--accent); opacity: .9; }
.gallery br { display: none; }
@media (max-width: 600px) { .gallery { --cols: 2 !important; } }
.wp-block-gallery .wp-block-image img { border-radius: 6px; }

/* ---------- Formuláre ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: 12px 14px; min-height: 48px; background: var(--bg-deep); color: var(--text);
	border: 1px solid var(--line-3); border-radius: 6px; font: inherit; font-size: 16px;
}
textarea { min-height: 140px; }
label { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-3); border-radius: 8px; padding: 4px 4px 4px 14px; background: var(--bg-deep); }
.search-form__prompt { font-family: var(--f-mono); color: var(--accent); }
.search-form__input { border: 0 !important; background: transparent !important; padding: 8px 4px !important; min-height: 40px !important; }
.search-form__input:focus-visible { outline: none; }
.search-form:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.search-form__btn, .form-submit .submit, input[type="submit"] {
	appearance: none; border: 0; border-radius: 6px; padding: 10px 16px; min-height: 44px; cursor: pointer;
	background: var(--accent); color: var(--white); font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px;
}

/* ---------- Navigácia článkov / stránkovanie ---------- */
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 48px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; }
.nav-label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.nav-title { font-family: var(--f-display); font-weight: 600; color: var(--white); }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-mono); font-size: 14px; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.page-links { margin-top: 24px; font-family: var(--f-mono); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.entry-tags a { padding: 4px 10px; border: 1px solid var(--line-3); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; }

/* ---------- 404 / prázdne ---------- */
.terminal { font-family: var(--f-mono); font-size: 15px; background: var(--bg-deep); border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; color: var(--white); overflow-wrap: anywhere; }
.error-404 { max-width: 760px; }
.error-404 .kicker { color: var(--amber); margin-bottom: 12px; }
.error-404 .page-title { margin-bottom: 24px; }
.error-404 .search-form { margin: 24px 0; }

/* ---------- Pätička ---------- */
.site-footer { margin-top: 40px; background: var(--bg-deep); border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: var(--text-2); padding: 6px 0; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
