/* GinBike — rodinný deník. Vzhled „Rozcestník“ (mockups/rozcestnik.html, mockups/zapis-rozcestnik.html).
   Barvy: kámen a smrk + čtyři barvy českého turistického značení. Typ zápisu = barva značky. */

:root {
    --stone: #ECEEE8;
    --stone-2: #E2E5DE;
    --white: #FFFFFF;
    --spruce: #1B2A23;
    --text: #26342D;
    --moss: #56655D;
    --rule: #D3D8D0;
    --red: #D2232A;
    --blue: #1E5DAA;
    --green: #17874A;
    --yellow: #F3C316;

    --sans: var(--gh-font-heading, 'Bricolage Grotesque'), system-ui, sans-serif;
    --serif: var(--gh-font-body, 'Newsreader'), Georgia, serif;
    --g: clamp(20px, 4.4vw, 72px);
}

/* ---------- základ ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--stone);
    color: var(--spruce);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Turistická značka bílá – barva – bílá. */
.m { display: inline-block; flex: none; width: 18px; height: 18px; border: 1px solid var(--rule); background: linear-gradient(var(--white) 0 30%, var(--c, var(--spruce)) 30% 70%, var(--white) 70%); }
.m--z { --c: var(--red); }
.m--k { --c: var(--blue); }
.m--r { --c: var(--green); }
.m--p { --c: var(--yellow); }
.m--lg { width: 26px; height: 26px; }

.h-big { margin: 0; font-weight: 680; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.link, .more { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.more { display: inline-block; font-size: 17px; }
.empty { font-family: var(--serif); font-size: 19px; color: var(--moss); }

.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--spruce); background: var(--white); border: 0; border-radius: 6px; padding: 14px 22px; cursor: pointer; }
.btn:hover { background: var(--yellow); }

/* ---------- hlavička ---------- */

.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 40px; padding: 24px var(--g); }
.top--pres { position: absolute; inset: 0 0 auto; color: var(--white); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -.02em; font-stretch: 80%; }
.top--pres .logo .m { border-color: transparent; }
.top__menu { margin-left: auto; }
.top__menu ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.top__menu a { text-decoration: none; opacity: .85; }
.top__menu a:hover, .top__menu .is-current a { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.find { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; color: inherit; background: var(--stone-2); border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.top--pres .find { background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.top__toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; color: inherit; cursor: pointer; }

/* ---------- úvod: poslední zápis + rozcestník ---------- */

.hero { position: relative; height: 100svh; min-height: 680px; max-height: 1040px; overflow: hidden; color: var(--white); background: var(--spruce); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 19, .45) 0%, rgba(15, 24, 19, 0) 20%, rgba(15, 24, 19, 0) 50%, rgba(15, 24, 19, .78) 100%); }
.hero__text { position: absolute; z-index: 2; left: var(--g); bottom: 64px; max-width: 760px; }
.kind { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 18px; }
.hero .kind .m, .cover .kind .m { border-color: transparent; }
.hero h1, .cover h1 { margin: 0 0 20px; font-weight: 650; font-size: clamp(46px, 6.6vw, 104px); line-height: .96; letter-spacing: -.015em; text-wrap: balance; }
.hero h1 a { text-decoration: none; }
.hero p { margin: 0 0 30px; max-width: 34em; font-family: var(--serif); font-size: 21px; line-height: 1.5; opacity: .92; }

.sign { position: absolute; z-index: 3; right: calc(var(--g) + 40px); bottom: 0; width: 330px; }
.sign__pole { position: absolute; left: 50%; top: 40px; bottom: 0; width: 14px; margin-left: -7px; background: linear-gradient(90deg, #8E8B83, #C9C5BB 45%, #8E8B83); border-radius: 2px; }
.sign__place { position: relative; margin: 0 auto 14px; width: 250px; background: var(--white); color: var(--spruce); text-align: center; padding: 12px 14px 10px; border: 2px solid var(--spruce); border-radius: 3px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sign__place b { display: block; font-weight: 700; font-size: 19px; line-height: 1.15; }
.sign__place span { font-size: 14px; color: var(--moss); }
.sign__plates { position: relative; padding-bottom: 150px; }
.plate { --dir: 1; position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 330px; margin-bottom: 10px; padding: 12px 34px 12px 16px; text-decoration: none; color: var(--spruce); background: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
.plate--l { --dir: -1; padding: 12px 16px 12px 34px; clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%); }
.plate--l .m { order: 3; }
.plate--l .plate__val { order: 1; }
.plate--l .plate__name { order: 2; text-align: right; }
.plate__name b { display: block; font-weight: 700; font-size: 18px; line-height: 1.15; }
.plate__name small { display: block; font-size: 13px; color: var(--moss); }
.plate__val { font-weight: 700; font-size: 18px; white-space: nowrap; }
.plate:hover { background: #FFF8DA; }

@keyframes swing { from { transform: perspective(600px) rotateY(calc(var(--dir) * 80deg)); opacity: 0; } to { transform: none; opacity: 1; } }
.sign .plate { animation: swing .7s cubic-bezier(.2, .8, .2, 1) both; }
.sign .plate:nth-child(2) { animation-delay: .12s; }
.sign .plate:nth-child(3) { animation-delay: .24s; }
.sign .plate:nth-child(4) { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .sign .plate { animation: none; } }

/* ---------- deník ---------- */

.diary { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding: 96px var(--g) 72px; }
.side { position: sticky; top: 28px; align-self: start; }
.side h1, .side h2 { margin: 0 0 8px; font-weight: 680; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.side > p { margin: 0 0 26px; color: var(--moss); font-size: 15px; }
.kinds { display: grid; gap: 2px; margin-bottom: 28px; }
.kinds a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-decoration: none; border-radius: 6px; }
.kinds a span { margin-left: auto; color: var(--moss); }
.kinds a:hover, .kinds a.on { background: var(--white); }
.years { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.years a { font-size: 14px; text-decoration: none; padding: 4px 9px; border-radius: 6px; background: var(--stone-2); }
.years a:hover { background: var(--white); }
.years a.on { background: var(--spruce); color: var(--white); }
.search { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-size: 15px; color: var(--moss); background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 11px 14px; text-align: left; cursor: pointer; }

.feed { display: grid; gap: 72px; align-content: start; }
.e { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; }
.e__when { padding-top: 4px; }
.e__when .m { margin-bottom: 12px; }
.e__when b { display: block; font-weight: 700; font-size: 22px; line-height: 1; }
.e__when span { font-size: 14px; color: var(--moss); }
.e h3 { margin: 0 0 10px; font-weight: 650; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; }
.e h3 a { text-decoration: none; }
.e h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.e p { margin: 0 0 14px; max-width: 36em; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--moss); }
.facts b { color: var(--spruce); font-weight: 600; }
.e__photo { display: block; margin-bottom: 22px; background: var(--stone-2); }
.e__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.e--big .e__photo img { aspect-ratio: 2 / 1; }
.panel { max-width: 760px; background: var(--white); padding: 26px 30px 24px; }
.e--k .panel { border-left: 6px solid var(--blue); }
.e--k h3 { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -.01em; font-size: 32px; line-height: 1.15; }
.e--r .panel { border-left: 6px solid var(--green); }
.e--p blockquote { margin: 0; max-width: 30em; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.3; }
.e--p blockquote a { text-decoration: none; }
.e--p blockquote::before { content: "„"; }
.e--p blockquote::after { content: "“"; }
.e--p .who { margin-top: 12px; font-size: 15px; color: var(--moss); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pagination__info { color: var(--moss); }

/* ---------- rady ---------- */

.tips { background: var(--white); padding: 96px var(--g); }
.tips__head { display: flex; align-items: end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.tips__head h2 { display: flex; align-items: center; gap: 16px; }
.tips__head p { margin: 0; max-width: 30em; font-family: var(--serif); font-size: 19px; color: var(--text); }
.tips__body { display: grid; grid-template-columns: 1.05fr 2fr; gap: 0 56px; }
.guide { text-decoration: none; }
.guide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.guide b { display: block; font-weight: 650; font-size: 30px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 8px; }
.guide span { font-family: var(--serif); font-size: 18px; color: var(--text); }
.guide:hover b { text-decoration: underline; text-underline-offset: 6px; }
.topics { columns: 2; column-gap: 56px; }
.topic { break-inside: avoid; margin-bottom: 38px; }
.topic h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.topic ul { margin: 0; padding: 0; list-style: none; }
.topic li a { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.topic li a:hover { color: var(--green); }
.topic li a span { flex: none; font-family: var(--sans); font-size: 14px; color: var(--moss); padding-top: 3px; }

/* ---------- před lety ---------- */

.ago { padding: 96px var(--g); }
.ago .h-big { margin-bottom: 40px; }
.ago__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ago a { display: block; text-decoration: none; }
.ago__year { display: block; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -.02em; color: var(--moss); margin-bottom: 14px; }
.ago img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ago b { display: block; margin-top: 14px; font-weight: 700; font-size: 22px; line-height: 1.15; }
.ago small { font-size: 14px; color: var(--moss); }
.ago__note { background: var(--white); padding: 32px 28px 28px; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; }

/* ---------- mapa ---------- */

.map { position: relative; height: min(80vh, 760px); min-height: 540px; background: #20302A; }
.map__canvas { position: absolute; inset: 0; }
.map .leaflet-tile-pane, .routemap .leaflet-tile-pane { filter: grayscale(1) sepia(.15) hue-rotate(70deg) brightness(.95) contrast(.9); }
.board { position: absolute; z-index: 500; left: var(--g); top: 56px; width: 340px; background: var(--white); border: 2px solid var(--spruce); padding: 26px 26px 22px; }
.board h2 { margin: 0 0 10px; font-weight: 680; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.board p { margin: 0 0 20px; font-family: var(--serif); font-size: 17px; color: var(--text); }
.board dl { display: grid; grid-template-columns: auto auto 1fr; gap: 0 22px; margin: 0; border-top: 1px solid var(--rule); }
.board dl div { padding-top: 12px; }
.board dt { font-size: 13px; color: var(--moss); }
.board dd { margin: 0; font-weight: 700; font-size: 26px; white-space: nowrap; }
.pin { width: 40px; height: 40px; border: 3px solid var(--white); border-radius: 50%; overflow: hidden; background: var(--red); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pin img { width: 100%; height: 100%; object-fit: cover; }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper { border-radius: 4px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 220px !important; }
.pop { display: block; text-decoration: none; color: var(--spruce) !important; }
.pop img { width: 100%; height: 120px; object-fit: cover; }
.pop span { display: block; padding: 10px 12px 12px; font-weight: 700; font-size: 16px; line-height: 1.2; }

/* ---------- kdo jsme ---------- */

.us { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding: 96px var(--g); }
.us .h-big { margin-bottom: 18px; line-height: .98; }
.us p { margin: 0 0 22px; max-width: 30em; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--text); }
.us__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); }
.people div { padding: 14px 16px 16px; border-left: 1px solid var(--rule); }
.people div:first-child { border-left: 0; }
.people b { display: block; font-size: 18px; }
.people span { display: block; font-size: 14px; color: var(--moss); }
.people .fact { color: var(--red); font-weight: 600; margin-top: 4px; }

/* ---------- patička ---------- */

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 40px var(--g); background: var(--spruce); color: #C9D1CB; font-size: 15px; }
.site-footer b { color: var(--white); font-stretch: 80%; font-size: 20px; }
.site-footer a { color: var(--white); }

/* ---------- zápis ---------- */

.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 4px; width: 0; background: var(--red); }
.cover { position: relative; height: 88svh; min-height: 620px; max-height: 940px; color: var(--white); overflow: hidden; background: var(--spruce); }
.cover--short { height: 62svh; min-height: 460px; }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 24, 19, .45), rgba(15, 24, 19, 0) 22%, rgba(15, 24, 19, 0) 48%, rgba(15, 24, 19, .8)); }
.cover__text { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: 60px; max-width: 900px; }
.cover p { margin: 0; max-width: 32em; font-family: var(--serif); font-size: 22px; line-height: 1.5; opacity: .92; }
.cover--plain { height: auto; min-height: 0; max-height: none; background: none; color: var(--spruce); }
.cover--plain::after { display: none; }
.cover--plain .cover__text { position: static; padding: 48px var(--g) 64px; }

.tabule { position: relative; z-index: 5; display: flex; flex-wrap: wrap; margin: -36px var(--g) 0; background: var(--white); box-shadow: 0 10px 30px rgba(27, 42, 35, .12); }
.cover--plain + .tabule { margin-top: 0; }
.tabule > div { padding: 18px 26px 16px; border-left: 1px solid var(--rule); }
.tabule > div:first-child { border-left: 0; }
.tabule b { display: block; font-weight: 700; font-size: 26px; line-height: 1.1; }
.tabule span { font-size: 14px; color: var(--moss); }
.tabule__by { margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 0 26px; font-size: 15px; color: var(--moss); }
.tabule__by img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.post { display: grid; grid-template-columns: 230px minmax(0, 700px) 1fr; gap: 0 64px; padding: 88px var(--g) 40px; }
.post--page { grid-template-columns: minmax(0, 700px); justify-content: center; }
.route-nav { position: sticky; top: 40px; align-self: start; }
.route-nav p { margin: 0 0 14px; font-size: 14px; color: var(--moss); }
.route-nav ol { position: relative; margin: 0; padding: 0; list-style: none; }
.route-nav ol::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--rule); }
.route-nav a { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; padding: 9px 0; text-decoration: none; color: var(--moss); font-size: 15px; line-height: 1.3; }
.route-nav a .m { margin-top: 1px; opacity: .45; transition: opacity .2s; }
.route-nav a b { display: block; color: var(--spruce); font-weight: 600; }
.route-nav a.on .m { opacity: 1; }
.route-nav a.on b { color: var(--red); }

/* obsah z editoru */
.gh-content { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--text); }
.gh-content > * { margin: 0 0 1.2em; }
.gh-content > p:first-child { font-size: 23px; line-height: 1.55; color: var(--spruce); }
.gh-content a { color: var(--spruce); text-underline-offset: 4px; }
.gh-content h2 { margin: 80px 0 22px; scroll-margin-top: 40px; font-family: var(--sans); font-weight: 650; font-size: 40px; line-height: 1.05; letter-spacing: -.015em; color: var(--spruce); }
.gh-content h2 .day__no { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--red); }
.gh-content h3 { margin: 48px 0 14px; font-family: var(--sans); font-weight: 650; font-size: 26px; line-height: 1.15; color: var(--spruce); }
.gh-content .day__leg { margin-top: -14px; font-family: var(--sans); font-size: 15px; color: var(--moss); }
.gh-content .day__leg em { font-style: normal; }
.gh-content ul, .gh-content ol { padding-left: 1.2em; }
.gh-content li { margin-bottom: .4em; }
.gh-content hr { border: 0; border-top: 1px solid var(--rule); margin: 56px 0; }
.gh-content figure { margin: 48px 0; }
.gh-content figcaption { margin-top: 12px; font-family: var(--sans); font-size: 15px; color: var(--moss); text-align: left; }
.gh-content blockquote:not(.kg-blockquote-alt) { margin: 56px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--spruce); font-style: italic; font-size: 32px; line-height: 1.3; color: var(--spruce); }
.gh-content blockquote.kg-blockquote-alt { margin: 56px 0; font-style: italic; font-size: 34px; line-height: 1.3; text-align: center; color: var(--spruce); }

/* šířky karet editoru: široká a přes celou šířku */
.gh-content .kg-width-wide { width: min(1080px, calc(100vw - 230px - 64px - 2 * var(--g))); max-width: none; }
.post--page .gh-content .kg-width-wide { position: relative; left: 50%; width: min(1080px, calc(100vw - 2 * var(--g))); transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; left: 50%; width: 100vw; max-width: none; transform: translateX(-50%); }
.post:not(.post--page) .gh-content .kg-width-full { left: auto; transform: translateX(calc(-1 * (230px + 64px + var(--g)))); }
.gh-content .kg-image { width: 100%; }
.gh-content .kg-gallery-container { gap: 6px; }
.gh-content .kg-gallery-row { gap: 6px; }
.gh-content .kg-gallery-image img { cursor: zoom-in; }
.gh-content .kg-image-card img { cursor: zoom-in; }

/* výzvy (callout): modrá = zkušenost, zelená = rada, žlutá = citát dítěte / poznámka */
.gh-content .kg-callout-card { display: flex; gap: 14px; margin: 44px 0; padding: 22px 26px; border-radius: 0; background: var(--white); font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--text); }
.gh-content .kg-callout-card-blue { border-left: 6px solid var(--blue); }
.gh-content .kg-callout-card-green { border-left: 6px solid var(--green); }
.gh-content .kg-callout-card-yellow { border-left: 6px solid var(--yellow); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--spruce); }
.gh-content .kg-callout-card strong:first-child { display: block; margin-bottom: 6px; font-family: var(--sans); font-style: normal; font-size: 19px; color: var(--spruce); }
.gh-content .kg-callout-emoji { font-size: 22px; line-height: 1.3; font-style: normal; }

/* soubor GPX: nad ním se vykreslí mapa trasy */
.routemap { position: relative; height: 420px; margin-bottom: 12px; background: #20302A; }
.gh-content .kg-file-card { margin-top: 0; }
.gh-content .kg-file-card-container { border-radius: 6px; background: var(--white); border: 1px solid var(--rule); font-family: var(--sans); }
.daypin { width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 2px solid var(--red); color: var(--spruce); font: 700 13px/22px var(--sans); text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }

/* konec zápisu: směrovky na další zápisy */
.end { padding: 72px var(--g) 88px; border-top: 1px solid var(--rule); }
.end h2 { margin: 0 0 28px; font-weight: 650; font-size: 32px; letter-spacing: -.015em; }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; }
.plates .plate { width: auto; margin: 0; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 14px 44px 14px 14px; box-shadow: 0 8px 22px rgba(27, 42, 35, .1); clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%); }
.plates .plate--l { grid-template-columns: auto 1fr 96px; padding: 14px 14px 14px 44px; clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%); text-align: right; }
.plates .plate--l .m { order: 0; }
.plates .plate img { width: 96px; height: 72px; object-fit: cover; }
.plates .plate b { display: block; font-weight: 650; font-size: 20px; line-height: 1.15; }
.plates .plate small { font-size: 14px; color: var(--moss); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.related h3 { grid-column: 1 / -1; margin: 0; font-size: 19px; font-weight: 700; }
.related a { display: grid; grid-template-columns: 18px 1fr; gap: 12px; text-decoration: none; padding-top: 16px; border-top: 2px solid var(--spruce); }
.related b { display: block; font-weight: 650; font-size: 19px; line-height: 1.2; }
.related small { font-size: 14px; color: var(--moss); }

.error-page { padding: 64px var(--g) 120px; max-width: 760px; }
.error-page p { font-family: var(--serif); font-size: 20px; color: var(--text); margin: 20px 0 32px; }

/* jednoduchá galerie přes celou obrazovku */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(15, 24, 19, .94); cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--white); font-size: 44px; padding: 20px; cursor: pointer; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }

/* ---------- mobil ---------- */

@media (max-width: 1000px) {
    .top { gap: 16px; }
    .top__toggle { display: block; }
    .find { margin-left: auto; }
    .find span { display: none; }
    .top__menu { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 8px var(--g) 18px; background: var(--white); color: var(--spruce); box-shadow: 0 10px 20px rgba(0, 0, 0, .1); }
    .top__menu.is-open { display: block; }
    .top__menu ul { flex-direction: column; gap: 0; font-size: 18px; }
    .top__menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); opacity: 1; }

    .hero { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 50vh; }
    .hero::after { background: linear-gradient(180deg, rgba(15, 24, 19, .4) 0%, rgba(15, 24, 19, 0) 15%, rgba(15, 24, 19, .35) 40%, rgba(15, 24, 19, .92) 70%); }
    .hero__text { position: relative; left: auto; bottom: auto; padding: 0 var(--g) 28px; }
    .hero p { font-size: 18px; }
    .sign { position: relative; right: auto; width: auto; padding: 0 var(--g) 28px; }
    .sign__pole, .sign__place { display: none; }
    .sign__plates { padding-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .sign .plate, .sign .plate--l { width: auto; margin: 0; padding: 10px 26px 10px 12px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); grid-template-columns: auto 1fr; }
    .sign .plate--l .m, .sign .plate--l .plate__val, .sign .plate--l .plate__name { order: initial; text-align: left; }
    .plate__val { grid-column: 2; font-size: 15px; }
    .plate__name b { font-size: 15px; }
    .plate__name small { display: none; }

    .diary { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; }
    .side { position: static; }
    .e { grid-template-columns: 1fr; gap: 12px; }
    .e__when { display: flex; align-items: center; gap: 12px; }
    .e__when .m { margin: 0; }
    .e__when b { font-size: 18px; }
    .e h3 { font-size: 28px; }
    .panel { padding: 22px 20px; }
    .e--p blockquote { font-size: 24px; }
    .tips__body { grid-template-columns: 1fr; }
    .guide { margin-bottom: 40px; }
    .topics { columns: 1; }
    .ago__row { grid-template-columns: 1fr; gap: 40px; }
    .board { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; padding: 18px; }
    .board p { display: none; }
    .us { grid-template-columns: 1fr; gap: 32px; }
    .people { grid-template-columns: 1fr 1fr; }
    .people div:nth-child(3) { border-left: 0; }
    .people div:nth-child(n+3) { border-top: 1px solid var(--rule); }

    .cover p { font-size: 18px; }
    .cover::after { background: linear-gradient(180deg, rgba(15, 24, 19, .4), rgba(15, 24, 19, 0) 18%, rgba(15, 24, 19, .35) 42%, rgba(15, 24, 19, .92) 76%); }
    .tabule { margin: 0; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; }
    .tabule > div { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 20px; }
    .tabule > div:nth-child(even) { border-left: 1px solid var(--rule); }
    .tabule b { font-size: 21px; }
    .tabule__by { grid-column: 1 / -1; margin: 0; padding: 14px 20px; border-top: 1px solid var(--rule); }
    .post { grid-template-columns: 1fr; padding-top: 48px; }
    .route-nav { display: none; }
    .gh-content { font-size: 18px; }
    .gh-content > p:first-child { font-size: 20px; }
    .gh-content h2 { font-size: 30px; }
    .gh-content .kg-width-wide { width: 100%; }
    .post:not(.post--page) .gh-content .kg-width-full { left: 50%; transform: translateX(-50%); }
    .gh-content blockquote:not(.kg-blockquote-alt) { font-size: 24px; }
    .plates { grid-template-columns: 1fr; }
    .plates .plate, .plates .plate--l { grid-template-columns: 72px 1fr auto; padding: 12px 36px 12px 12px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); text-align: left; }
    .plates .plate--l img { order: -1; }
    .plates .plate img { width: 72px; height: 56px; }
    .related { grid-template-columns: 1fr; }
}
.e__time { margin-left: 14px; font-size: 14px; color: var(--moss); }
.lc { text-transform: lowercase; }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; line-height: 1.4; background: var(--white); }
.gh-content th, .gh-content td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.gh-content th { font-weight: 700; color: var(--spruce); }
.gh-content code { font-family: var(--sans); font-size: .9em; background: var(--stone-2); padding: 1px 6px; border-radius: 4px; color: var(--spruce); }
