/*
Theme Name: mámaNika
Theme URI: https://mamanika.cz/
Description: Šablona pro cestovatelský blog mámaNika – redesign 2026.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mamanika
*/

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-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;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-italic.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;
}
@font-face {
	font-family: "Figtree";
	font-style: italic;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/bricolage-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;
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/bricolage-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #17262A;
	--muted: #4A5A5D;
	--line: #E4E0D6;
	--paper: #FFFFFF;
	--sand: #F5F0E6;
	--mint: #E3EEEC;
	--rose: #EFE7EA;
	--amber: #F2B04E;
	--night-text: #C3CFD0;
	--night-line: #33474B;
	--brown: #8A5310;
	--plum: #7A3B52;
	--accent: #1D5753;
	--accent-dark: #123B38;

	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: 24px;
	--radius-s: 14px;
	--radius: 18px;
	--radius-l: 22px;
	--radius-xl: 26px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow {
	margin: 0; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.section-title {
	margin: 0; font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em;
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.more-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); font-weight: 700; }
.btn-amber:hover { background: #F6C574; color: var(--ink); }

/* Image holders */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: #C9D9D5; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media.tone-1 { background: #C9D9D5; }
.media.tone-2 { background: #E8DCC6; }
.media.tone-3 { background: #D6CFC2; }
.media.tone-4 { background: #CFD9C7; }
.media.tone-5 { background: #E3D3C9; }
.media.tone-6 { background: #C7CFD8; }
a:hover .media img { transform: scale(1.03); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; background: var(--paper); color: var(--ink);
	padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.5;
}
a.chip { border: 1px solid var(--line); min-height: 36px; padding: 6px 14px; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
a.chip.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.brand-accent { color: var(--accent); }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 26px; }
.site-nav .menu > li { position: relative; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-nav .menu > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav .menu > li > a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-category-ancestor > a { color: var(--accent); }
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--accent); }

.sub-menu { list-style: none; margin: 0; padding: 0; }
.submenu-toggle { display: none; }

@media (min-width: 1024px) {
	.sub-menu {
		position: absolute; left: -16px; top: 100%; min-width: 220px; padding: 10px;
		background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(23,38,42,.35);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.sub-menu a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
	.sub-menu a:hover { background: var(--sand); color: var(--ink); }
	.header-actions { order: 3; }
	.menu-toggle { display: none; }
}

.header-actions { display: flex; gap: 8px; }
.icon-btn {
	width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0;
}
.icon-btn:hover { border-color: var(--ink); }
.menu-toggle .when-open, .menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.menu-toggle span { display: inline-flex; }

@media (max-width: 1023px) {
	.header-inner { flex-wrap: wrap; }
	.site-nav { display: none; flex-basis: 100%; padding: 8px 0 12px; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.site-nav .menu > li > a { flex: 1; min-height: 52px; font-size: 18px; }
	.site-nav .menu > .current-menu-item > a, .site-nav .menu > .current-menu-ancestor > a { box-shadow: none; }
	.submenu-toggle {
		display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
		border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 22px;
	}
	.submenu-toggle .icon { transition: transform .15s; }
	.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.sub-menu { display: none; flex-basis: 100%; padding: 0 0 12px 12px; }
	.sub-menu.is-open { display: block; }
	.sub-menu a { display: flex; align-items: center; min-height: 44px; color: var(--muted); }
}

.site-search { border-top: 1px solid var(--line); background: var(--sand); padding: 18px 0; }
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-field {
	flex: 1; min-width: 0; min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line);
	background: var(--paper); font: inherit; color: var(--ink);
}
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,87,83,.15); }
@media (max-width: 520px) { .search-form .btn span { display: none; } .search-form .btn { padding: 12px 16px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--night-text); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { margin: 0; }
.brand-footer .brand-word { color: #fff; }
.brand-footer .brand-accent { color: var(--amber); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-title { margin: 0 0 8px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--night-text); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--night-line); padding-top: 20px; font-size: 14px; }

/* ---------- Homepage ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-title { margin: 0; font-weight: 800; font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-text { margin: 0; font-size: 19px; color: var(--muted); max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: 460px; }
.hero-photos .media { border-radius: var(--radius-l); height: 100%; }
.hero-photos .media:first-child { grid-row: span 2; }
@media (max-width: 700px) {
	.hero { padding-top: 40px; gap: 36px; }
	.hero-photos { height: 340px; }
	.hero-text { font-size: 18px; }
}

/* Route */
.route { background: var(--ink); color: #fff; }
.route .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }
.route .eyebrow { color: var(--amber); }
.route .section-title { color: #fff; }
.route-intro { margin: 0; max-width: 440px; color: var(--night-text); }
.route-head > div { display: flex; flex-direction: column; gap: 10px; }
.route-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 2px dashed #4A6266; }
.route-stop { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.route-stop::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); }
.route-stop.is-next::before { background: var(--ink); border: 2px solid var(--amber); }
.route-place { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.route-time { color: var(--night-text); }
.route-stats { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 8px; margin: 0; }
.route-stats div { display: flex; flex-direction: column; }
.route-stats dt { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; order: -1; }
.route-stats dd { margin: 4px 0 0; color: var(--night-text); }
@media (max-width: 640px) {
	.route-stops { grid-template-columns: 1fr; border-top: 0; border-left: 2px dashed #4A6266; margin-left: 6px; gap: 18px; }
	.route-stop { padding: 0 0 0 26px; }
	.route-stop::before { top: 8px; left: -8px; }
	.route-stats dt { font-size: 40px; }
}

/* Trips */
.trips { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.trip-card {
	text-decoration: none; color: var(--ink); border-radius: var(--radius-l); padding: 30px;
	display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: transform .2s, box-shadow .2s;
}
.trip-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(23,38,42,.5); }
.trip-card .chips { margin-top: auto; }
.trip-card-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.trip-card-text { color: var(--muted); }
.trip-1 { background: var(--mint); } .trip-1 .icon { color: var(--accent); }
.trip-2 { background: var(--sand); } .trip-2 .icon { color: #9A5B12; }
.trip-3 { background: var(--rose); } .trip-3 .icon { color: var(--plum); }

/* Stories */
.stories { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 90px; }
.stories-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
@media (max-width: 960px) { .stories-grid { grid-template-columns: 1fr; } }
.story-feature { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.story-feature:hover { color: var(--ink); }
.story-feature .media { aspect-ratio: 16 / 9; border-radius: var(--radius-l); }
.story-feature-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.story-feature:hover .story-feature-title, .story-small:hover .story-small-title, .card:hover .card-title { color: var(--accent); }
.story-excerpt { color: var(--muted); max-width: 640px; }
.meta { font-size: 14px; color: var(--muted); font-weight: 500; }
.story-list { display: flex; flex-direction: column; gap: 22px; }
.story-small { text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: flex-start; }
.story-small:hover { color: var(--ink); }
.story-small .media { flex: 0 0 120px; height: 96px; border-radius: var(--radius-s); }
.story-small-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.story-small .meta { font-size: 13px; }
.story-small-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }

/* How we travel */
.how { background: var(--sand); }
.how .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.how .eyebrow { color: var(--brown); }
.how-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.how-card { background: var(--paper); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.how-card h3 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.2; }
.how-card p { margin: 0; color: var(--muted); }
.how-card a { font-weight: 600; margin-top: auto; padding-top: 4px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.how-card a:hover { text-decoration: underline; }

/* E-books */
.ebooks { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.ebook { border-radius: var(--radius-xl); padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.ebook-dark { background: var(--ink); color: #fff; }
.ebook-light { background: var(--mint); }
.ebook-cover {
	flex: 0 0 150px; height: 210px; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
	box-shadow: 0 24px 30px -22px rgba(0,0,0,.55), inset 6px 0 0 rgba(0,0,0,.08);
}
.ebook-dark .ebook-cover { background: var(--amber); color: var(--ink); }
.ebook-light .ebook-cover { background: var(--accent); color: #fff; }
.ebook-cover-big { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.ebook-cover-text { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ebook-body { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; }
.ebook-tag { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ebook-dark .ebook-tag { color: var(--amber); }
.ebook-light .ebook-tag { color: var(--accent); }
.ebook-title { margin: 0; font-weight: 700; font-size: 30px; line-height: 1.1; color: inherit; }
.ebook-text { margin: 0; }
.ebook-dark .ebook-text, .ebook-price { color: var(--night-text); }
.ebook-light .ebook-text { color: var(--muted); }
.ebook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 520px) { .ebook { padding: 28px; gap: 24px; } .ebook-cover { flex-basis: 120px; height: 168px; } }

/* About */
.about { padding-bottom: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 48px; align-items: center; }
.about .media { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy p { margin: 0; color: var(--muted); }

/* ---------- Archive / cards ---------- */
.archive-head { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.archive-title { margin: 0; font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.archive-desc { margin: 0; max-width: 680px; color: var(--muted); font-size: 19px; }
.archive-desc p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 28px; padding-bottom: 40px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card:hover { color: var(--ink); }
.card .media { aspect-ratio: 4 / 3; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; transition: color .15s; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 16px; }
.card-grid .card:first-child:nth-last-child(n+4) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 40px; align-items: center; }
.card-grid .card:first-child:nth-last-child(n+4) .media { grid-row: span 4; aspect-ratio: 16 / 10; border-radius: var(--radius-l); }
.card-grid .card:first-child:nth-last-child(n+4) .card-title { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
@media (max-width: 800px) { .card-grid .card:first-child:nth-last-child(n+4) { display: flex; } }
.paged .card-grid .card:first-child { grid-column: auto !important; display: flex !important; }
.paged .card-grid .card:first-child .media { aspect-ratio: 4 / 3 !important; border-radius: var(--radius) !important; }
.paged .card-grid .card:first-child .card-title { font-size: 22px !important; }

.pagination { padding: 16px 0 88px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink) !important; color: #fff !important; }
.pagination .dots { border: 0 !important; }

.empty-state { padding: 24px 0 88px; display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 19px; }

/* ---------- Article ---------- */
.article-head { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter) 32px; display: flex; flex-direction: column; gap: 20px; }
.breadcrumbs { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.article-title { margin: 0; font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: break-word; }
.article-lead { margin: 0; font-size: 21px; line-height: 1.55; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.article-author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.article-avatar { width: 36px; height: 36px; border-radius: 50%; background: #C9D9D5; object-fit: cover; flex: none; }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article-hero { margin: 0; }
.article-hero .media { aspect-ratio: 21 / 9; border-radius: var(--radius-xl); }
.article-hero figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) {
	.article-head { padding-top: 32px; }
	.article-hero .wrap { padding-left: 0; padding-right: 0; }
	.article-hero .media { aspect-ratio: 4 / 3; border-radius: 0; }
	.article-lead { font-size: 19px; }
}

.article-body { max-width: 1100px; margin: 0 auto; padding: 56px var(--gutter) 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.article-main { flex: 999 1 560px; min-width: 0; }
.article-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .article-aside { position: sticky; top: 100px; } .admin-bar .article-aside { top: 132px; } }
.article-body.no-aside .article-main { max-width: 720px; margin: 0 auto; }

.facts { border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.facts-title, .promo-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.facts dl div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.promo { background: var(--ink); color: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.promo-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.promo-title { font-size: 22px; color: #fff; }
.promo p { margin: 0; color: var(--night-text); font-size: 16px; }
.promo .btn { min-height: 44px; padding: 10px 20px; }

/* Content typography (post + page) */
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 24px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 48px; margin-bottom: 16px; font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.entry-content h3 { margin-top: 36px; margin-bottom: 12px; font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.entry-content h4 { margin-top: 28px; margin-bottom: 8px; font-size: 20px; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 6px; }
.entry-content li::marker { color: var(--accent); }
.entry-content strong { font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 10px; text-align: left; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content img.aligncenter { display: block; }
@media (min-width: 640px) {
	.entry-content .alignleft { float: left; margin: 6px 28px 16px 0; max-width: 50%; }
	.entry-content .alignright { float: right; margin: 6px 0 16px 28px; max-width: 50%; }
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 40px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--amber);
	font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.3; color: var(--accent);
}
.entry-content blockquote p { margin: 0 0 12px; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal; font-size: 15px; color: var(--muted); }
.entry-content .is-style-mamanika-big { border-left: 0; padding: 0; font-size: clamp(28px, 3vw, 36px); }
.entry-content .wp-block-pullquote { border: 0; padding: 32px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); color: var(--accent); }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry-content .wp-block-gallery { gap: 14px; }
.entry-content .wp-block-gallery img, .entry-content .gallery img { border-radius: var(--radius); }
.entry-content .gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; }
.entry-content .gallery-columns-1 { --cols: 1; } .entry-content .gallery-columns-2 { --cols: 2; } .entry-content .gallery-columns-4 { --cols: 4; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-embed iframe, .entry-content iframe { max-width: 100%; border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { background: var(--accent); color: #fff; border-radius: 999px; padding: 12px 24px; text-decoration: none; font-weight: 600; }
.entry-content .wp-block-button__link:hover { background: var(--accent-dark); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.entry-content .is-style-mamanika-tip, .entry-content .tip-box {
	background: var(--sand); border-radius: 20px; padding: 28px; font-size: 17px; line-height: 1.6;
}
.entry-content .is-style-mamanika-tip > * { margin: 0 0 10px; }
.entry-content .is-style-mamanika-tip > *:last-child { margin-bottom: 0; }
.entry-content .is-style-mamanika-tip h2, .entry-content .is-style-mamanika-tip h3, .entry-content .is-style-mamanika-tip h4 { margin-top: 0; font-size: 22px; }
.entry-content .has-background { border-radius: var(--radius); }
.entry-content code { background: var(--sand); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

.page-content { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) 88px; }
.page-head { padding-bottom: 24px; }

/* Related */
.related { background: var(--sand); }
.related .wrap { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.related .section-title { font-size: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }

/* Comments */
.comments { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.comments > * { max-width: 744px; }
.page .comments { max-width: 820px; }
.page .comments > * { max-width: none; }
.comments-title { font-weight: 700; font-size: 26px; margin: 0 0 8px; }
.comment-list { list-style: none; margin: 0 0 48px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; margin: 0; }
.comment-body { border-top: 1px solid var(--line); padding: 20px 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.comment-meta .avatar { border-radius: 50%; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .fn { font-style: normal; font-weight: 600; color: var(--ink); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-size: 17px; }
.reply a { font-size: 14px; font-weight: 600; }
.comment-respond { border-top: 1px solid var(--line); padding-top: 36px; }
.comment-list + .comment-respond, .comment-navigation + .comment-respond { border-top: 0; padding-top: 0; }
.comment-list .comment-respond { padding: 20px 0; }
.comment-reply-title { margin: 0 0 6px; font-size: 26px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.comment-reply-title small { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.comment-notes, .logged-in-as { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.logged-in-as a { color: var(--muted); }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .comment-form-row { grid-template-columns: 1fr; } }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.comment-form .required { color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid #D4CFC3; border-radius: 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.comment-form textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.comment-form input:hover, .comment-form textarea:hover { border-color: var(--muted); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,87,83,.15); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: center; }
.comment-form .comment-form-cookies-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; font-size: 15px; color: var(--muted); margin: 0; }
.comment-form .form-submit { margin-top: 4px; }
.comment-form .submit { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; min-height: 48px; font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.comment-form .submit:hover { background: var(--accent-dark); }

/* 404 */
.notfound { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.notfound .chips { margin-top: 8px; }
.page-content.has-hero { padding-top: 56px; }
@media (max-width: 700px) { .article-hero figcaption { padding: 0 var(--gutter); } }
@media (min-width: 1024px) { .header-actions .menu-toggle { display: none; } }

/* Stats row (e.g. O nás): Columns block with class "about-stats" */
.entry-content .about-stats { gap: 16px; margin: 8px 0 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-content .about-stats .wp-block-column { flex-basis: 0; }
.entry-content .about-stat { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.entry-content .about-stat strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
@media (max-width: 781px) {
	.entry-content .about-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}

/* Route: always one row on wide screens, however many stops */
@media (min-width: 900px) {
	.route-stops { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
	.route-stop { padding-right: 12px; }
	.route-place { font-size: clamp(19px, 1.8vw, 26px); overflow-wrap: anywhere; }
}
@media (min-width: 641px) and (max-width: 899px) {
	.route-stops { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
}
