/* JK Bandolero – společný vzhled všech appek (nad Pico CSS).
   Barvy a písma podle letáku; měň je jen tady v :root. */
@font-face{font-family:"Playfair Display";font-weight:700;font-display:swap;src:url(fonts/playfair-display-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Playfair Display";font-weight:700;font-display:swap;src:url(fonts/playfair-display-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-weight:800;font-display:swap;src:url(fonts/playfair-display-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Playfair Display";font-weight:800;font-display:swap;src:url(fonts/playfair-display-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Cinzel";font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Cinzel";font-weight:500;font-display:swap;src:url(fonts/cinzel-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Allura";font-weight:400;font-display:swap;src:url(fonts/allura-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Allura";font-weight:400;font-display:swap;src:url(fonts/allura-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:400;font-display:swap;src:url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:400;font-display:swap;src:url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:600;font-display:swap;src:url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:600;font-display:swap;src:url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Source Sans 3";font-weight:700;font-display:swap;src:url(fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Sans 3";font-weight:700;font-display:swap;src:url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+1E00-1EFF}
@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2")}

:root {
  --navy:#13234a; --navy-2:#1f3366; --gold:#b48a3c; --gold-2:#d6b36c; --gold-dark:#8a6a2c; --gold-soft:#f3e6c8;
  --cream:#faf5ea; --paper:#fffdf8; --ink:#1c2233; --muted:#6d6656; --line:#e7dcc4; --line-2:#d9ccb0;
  --ok:#2e6a4c; --ok-bg:#e5f1e9; --warn:#9a5f0c; --warn-bg:#fbefd9; --bad:#962f2f; --bad-bg:#f8e3e1; --info-bg:#e7ecf6;
  --f-display:"Playfair Display",Georgia,serif; --f-caps:"Cinzel",Georgia,serif; --f-script:"Allura",cursive;
  --f-body:"Source Sans 3",system-ui,sans-serif; --f-serif:"Source Serif 4",Georgia,serif;
  --radius:14px;
  --pico-font-family:var(--f-body); --pico-background-color:var(--cream); --pico-color:var(--ink);
  --pico-primary:var(--navy-2); --pico-primary-background:var(--navy); --pico-primary-border:var(--navy);
  --pico-primary-hover:var(--navy); --pico-primary-hover-background:var(--navy-2); --pico-primary-hover-border:var(--navy-2);
  --pico-primary-focus:rgba(180,138,60,.35); --pico-primary-inverse:#fff;
  --pico-secondary:var(--gold-dark); --pico-secondary-background:var(--gold); --pico-secondary-border:var(--gold);
  --pico-secondary-hover-background:#9c7531; --pico-secondary-inverse:var(--navy);
  --pico-muted-color:var(--muted); --pico-muted-border-color:var(--line);
  --pico-card-background-color:var(--paper); --pico-card-sectioning-background-color:#fbf7ee;
  --pico-form-element-background-color:#fff; --pico-form-element-border-color:var(--line-2);
  --pico-form-element-focus-color:var(--gold); --pico-border-radius:.5rem;
  --pico-h1-color:var(--navy); --pico-h2-color:var(--navy); --pico-h3-color:var(--navy); --pico-h4-color:var(--navy);
  --pico-typography-spacing-vertical:1rem; --pico-spacing:1rem;
}
html{scroll-behavior:smooth}
body{background:var(--cream);font-size:17px;min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1}
h1,h2,h3,h4{font-family:var(--f-display);letter-spacing:-.01em}
h1{font-weight:800}
a{color:var(--navy-2);text-underline-offset:3px}
small,.muted{color:var(--muted)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.narrow{max-width:760px;margin:0 auto;padding:0 24px}
.caps{font-family:var(--f-caps);text-transform:uppercase;letter-spacing:.14em;font-size:.8rem;color:var(--gold-dark)}
.script{font-family:var(--f-script);font-weight:400;color:var(--gold);line-height:1;font-size:2.6rem}
.serif{font-family:var(--f-serif)}

/* ---------- hlavička ---------- */
.site-head{background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(180,138,60,.25)}
.site-head .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}
.brand img{height:52px;width:auto}
.brand .mark{width:48px;height:48px;border-radius:50%;background:var(--navy);color:var(--gold-2);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:800}
.brand .name{display:flex;flex-direction:column;line-height:1.1}
.brand .name strong{font-family:var(--f-display);font-size:1.2rem}
.brand .name span{font-family:var(--f-caps);font-size:.72rem;letter-spacing:.16em;color:var(--gold-dark);text-transform:uppercase}
.site-nav{display:flex;flex-wrap:wrap;gap:2px 20px;flex:1 1 auto;margin:0;padding:0}
.site-nav a{text-decoration:none;color:#4d4a40;font-weight:600;padding:8px 0;border-bottom:2px solid transparent}
.site-nav a:hover{color:var(--navy)}
.site-nav a[aria-current]{color:var(--navy);border-bottom-color:var(--gold)}
.who{display:flex;align-items:center;gap:10px;font-size:.95rem}
.who form{margin:0}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex:0 0 auto}
.avatar.gold{background:var(--gold);color:var(--navy)}
.btn,a.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:8px;border:0;font-weight:600;text-decoration:none;cursor:pointer;background:var(--navy);color:#fff;font-size:1rem;width:auto;margin:0}
.btn:hover{background:var(--navy-2);color:#fff}
.btn.gold{background:var(--gold);color:var(--navy)}
.btn.gold:hover{background:var(--gold-2)}
.btn.ghost{background:transparent;color:var(--navy);border:1px solid var(--line-2)}
.btn.ghost:hover{background:#fff}
.btn.small{min-height:36px;padding:6px 14px;font-size:.92rem}
.btn.danger{background:var(--bad)}
.linkbtn{background:none;border:0;padding:0;margin:0;color:var(--navy-2);text-decoration:underline;cursor:pointer;width:auto;font:inherit}

/* ---------- hero ---------- */
.hero{background:var(--navy);color:#fff}
.hero .wrap{display:flex;flex-wrap:wrap;gap:32px;align-items:center;padding-top:56px;padding-bottom:56px}
.hero .text{flex:1 1 460px;display:flex;flex-direction:column;gap:14px}
.hero h1{color:#fff;font-size:clamp(2rem,4vw,2.9rem);line-height:1.1;margin:0}
.hero p{color:var(--line);font-size:1.1rem;margin:0}
.hero .hero-text p+p{margin-top:8px}
.hero .hero-text a{color:var(--gold-2)}
.hero .caps{color:var(--gold-2)}
.hero .facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px 28px;margin-top:12px}
.hero .facts strong{display:block;font-family:var(--f-display);font-size:1.8rem;color:#fff}
.hero .facts span{color:var(--line-2);font-size:.9rem}
.hero .pic{flex:1 1 360px;min-height:300px;border-radius:16px;background:var(--navy-2) center/cover no-repeat}
.hero .pic.slides{position:relative;overflow:hidden;background:var(--navy-2);min-height:0;aspect-ratio:3/2;align-self:center}
.hero .slides .slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease;overflow:hidden}
.hero .slides .slide::before,.hero .slides .slide::after{content:"";position:absolute;background:var(--img) center/cover no-repeat}
.hero .slides .slide::before{inset:-24px;filter:blur(22px) brightness(.55);transform:scale(1.06)}  /* výplň okolo */
.hero .slides .slide::after{inset:0;background-size:contain}                                     /* celá fotka */
.hero .slides .slide.on{opacity:1}
.hero .slides .dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:2px;z-index:1}
.hero .slides .dots button{all:unset;cursor:pointer;width:24px;height:24px;display:grid;place-items:center}
.hero .slides .dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.25);transition:width .2s,background .2s}
.hero .slides .dots button[aria-current]::before{width:20px;border-radius:4px;background:#fff}
.hero .slides .dots button:focus-visible{outline:2px solid var(--gold-2);outline-offset:-2px;border-radius:6px}
@media (prefers-reduced-motion:reduce){.hero .slides .slide{transition:none}}
.hero .pic.logo{background:var(--paper) center/auto 78% no-repeat}
.hero .btn.ghost{color:#fff;border-color:#a89f88}

/* ---------- obsah ---------- */
.page{padding-top:40px;padding-bottom:64px}
.cols{display:flex;flex-wrap:wrap;gap:32px}
.cols>.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px}
.cols>.side{flex:1 1 300px;display:flex;flex-direction:column;gap:22px}
.box{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.box h2,.box h3{margin:0 0 12px}
.box.dark{background:var(--navy);color:#fff;border:0}
.box.dark h2,.box.dark h3{color:#fff}
.box.soft{background:var(--gold-soft);border:0}
.box.locked{background:var(--gold-soft);border:2px dashed var(--gold)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.card .pic{height:160px;background:var(--line) url(logo.png) center/72px no-repeat;background-blend-mode:multiply}
.card .pic[style]{background-size:cover;background-blend-mode:normal}
.card .body{padding:18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-size:1.15rem;margin:0}
.card .meta{font-size:.88rem;color:var(--muted)}
.card.wide{flex-direction:row;flex-wrap:wrap}
.card.wide .pic{flex:1 1 300px;min-height:240px;height:auto}
.card.wide .body{flex:1 1 320px;padding:26px}
.card.wide h3{font-size:1.6rem}
a.card:hover{border-color:var(--gold)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);text-decoration:none;font-size:.95rem}
.chip[aria-current]{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:600}
.badge{display:inline-block;font-size:.78rem;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--info-bg);color:var(--navy);white-space:nowrap}
.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.bad{background:var(--bad-bg);color:var(--bad)}.badge.gold{background:var(--gold-soft);color:#7a5a1d}
.badge.navy{background:var(--navy);color:#fff}
.list-links{display:flex;flex-direction:column}
.list-links a,.list-links>div{padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--navy);display:flex;justify-content:space-between;gap:12px}
.list-links>:last-child{border-bottom:0}
.prose{font-family:var(--f-serif);font-size:1.12rem;line-height:1.7}
.prose h2,.prose h3{margin-top:1.6rem}
.prose img{border-radius:10px;max-width:100%;height:auto}
.crumbs{font-size:.9rem;color:var(--muted)}
.dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:0}
.dl dt{font-size:.82rem;color:var(--muted)}.dl dd{margin:0;font-weight:600}
.horse-pic{flex:1 1 420px;min-height:360px;border-radius:16px;background:var(--line) center/120px no-repeat;background-blend-mode:multiply}
.timeline{border-left:3px solid var(--line);padding-left:22px;display:flex;flex-direction:column;gap:18px}
.timeline strong{font-family:var(--f-display);color:var(--gold-dark);font-size:1.2rem}
.flash{padding:12px 16px;border-radius:8px;background:var(--info-bg);margin:0 0 16px}
.flash.ok{background:var(--ok-bg);color:var(--ok)}.flash.err{background:var(--bad-bg);color:var(--bad)}.flash.warn{background:var(--warn-bg);color:var(--warn)}
.pager{display:flex;gap:12px;justify-content:center;align-items:center}

/* ---------- komentáře ---------- */
.comments{display:flex;flex-direction:column;gap:14px}
.comment{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:16px 18px;display:flex;gap:14px}
.comment .c-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.comment .c-head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.comment p{margin:0}
.comment.hidden{opacity:.55}

/* ---------- formuláře ---------- */
form.stack{display:flex;flex-direction:column;gap:4px}
label.check{display:flex;gap:8px;align-items:center}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tabs a{padding:10px 16px;text-decoration:none;color:#4d4a40;border-bottom:3px solid transparent;font-weight:600}
.tabs a[aria-current]{color:var(--navy);border-bottom-color:var(--gold)}
.pin-input{font-size:1.8rem;letter-spacing:.4em;text-align:center;font-family:var(--f-display)}
.creds{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.creds div{background:#fff;border:1px dashed var(--gold);border-radius:8px;padding:12px;text-align:center}
.creds code{font-size:1.5rem;background:none;color:var(--navy);font-weight:700}

/* ---------- administrace ---------- */
.admin{display:flex;min-height:100vh}
.admin-side{flex:0 0 250px;width:250px;position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--navy);color:#fff;
  padding:18px 14px 28px;display:flex;flex-direction:column;gap:18px;transition:margin-left .2s ease,transform .2s ease}
.admin-side .side-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.admin-side .brand{color:#fff;padding:0 10px}
.admin-side .side-hide{all:unset;cursor:pointer;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:var(--line-2);font-size:1.2rem}
.admin-side .side-hide:hover{background:var(--navy-2);color:#fff}
.admin-toggle{all:unset;display:none;align-self:flex-start;cursor:pointer;align-items:center;gap:6px;padding:8px 14px;border-radius:10px;
  background:var(--navy);color:#fff;font-weight:600;font-size:.95rem;margin:-8px 0 0}
.admin-toggle:hover{background:var(--navy-2)}
.menu-skryte .admin-side{margin-left:-250px}
.menu-skryte .admin-toggle{display:inline-flex}
.admin-scrim{display:none}
.admin-side .brand .name span{color:var(--gold-2)}
.admin-side nav{display:flex;flex-direction:column;gap:2px}
.admin-side nav .lbl{all:unset;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:.72rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:#a89f88;padding:4px 12px 6px;border-radius:6px}
.admin-side nav .lbl::after{content:"▾";font-size:.8rem;transition:transform .15s}
.admin-side nav .lbl:hover{color:var(--gold-2)}
.admin-side nav .lbl:focus-visible{outline:2px solid var(--gold-2)}
.admin-side nav.sbaleno .lbl::after{transform:rotate(-90deg)}
.admin-side nav.sbaleno a{display:none}
.admin-side nav a{color:var(--line-2);text-decoration:none;padding:10px 12px;border-radius:8px;display:flex;justify-content:space-between}
.admin-side nav a[aria-current],.admin-side nav a:hover{background:var(--navy-2);color:#fff}
.admin-main{flex:999 1 560px;min-width:0;padding:28px 28px 56px;display:flex;flex-direction:column;gap:20px}
.admin-main h1{margin:0;font-size:2rem}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.toolbar form{display:flex;flex-wrap:wrap;gap:10px;margin:0;flex:1 1 300px}
.toolbar input:not([type=checkbox]),.toolbar select{margin:0;width:auto;flex:1 1 200px}
.toolbar label.check{margin:0}
.table-wrap{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto}
.table-wrap table{margin:0;min-width:620px}
.table-wrap th{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:transparent}
.table-wrap td,.table-wrap th{padding:12px 16px;background:transparent}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.stat{border-radius:12px;padding:16px;background:var(--info-bg)}
.stat strong{display:block;font-family:var(--f-display);font-size:1.6rem}
.stat.warn{background:var(--warn-bg)}.stat.warn strong{color:var(--warn)}

/* ---------- média ---------- */
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.thumbs.big{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.thumb{display:flex;flex-direction:column;gap:4px;font-size:.82rem;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px;margin:0}
.thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:var(--line)}
.thumb form{margin:0}
button.thumb.pick{cursor:pointer;width:auto}
button.thumb.pick:hover{border-color:var(--gold)}
.bnd-editor{background:#fff;border-radius:8px}
.bnd-editor .toastui-editor-defaultUI{border-color:var(--line-2)}
/* editor ve stylu webu: písmo textu, lišta, okna (odkaz, obrázek, tabulka) */
.bnd-editor .toastui-editor-contents,.bnd-editor .toastui-editor-contents p{font-family:var(--f-serif);font-size:1.02rem;line-height:1.65;color:var(--ink)}
.bnd-editor .toastui-editor-contents h1,.bnd-editor .toastui-editor-contents h2,.bnd-editor .toastui-editor-contents h3{font-family:var(--f-display);color:var(--ink);border:0}
.bnd-editor .toastui-editor-contents a{color:var(--navy-2);text-decoration:underline}
.bnd-editor .toastui-editor-defaultUI-toolbar{background:var(--paper);border-bottom-color:var(--line)}
.bnd-editor .toastui-editor-popup{font-family:var(--f-body);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 12px 30px rgba(19,35,74,.14)}
.bnd-editor .toastui-editor-popup-body{padding:16px}
.bnd-editor .toastui-editor-popup-body label{font-size:.9rem;color:var(--muted);font-weight:600;margin:0 0 4px}
.bnd-editor .toastui-editor-popup-body input[type=text]{font:inherit;font-size:1rem;height:auto;padding:9px 12px;border:1px solid var(--line-2);border-radius:8px;background:#fff;margin:0 0 12px;width:100%}
.bnd-editor .toastui-editor-popup-body input[type=text]:focus{outline:2px solid var(--gold-2);border-color:var(--gold)}
.bnd-editor .toastui-editor-button-container{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.bnd-editor .toastui-editor-popup-body button{font:600 .95rem/1 var(--f-body);height:auto;width:auto;padding:10px 18px;border-radius:8px;margin:0;cursor:pointer}
.bnd-editor .toastui-editor-popup-body .toastui-editor-ok-button{background:var(--navy);border:1px solid var(--navy);color:#fff}
.bnd-editor .toastui-editor-popup-body .toastui-editor-ok-button:hover{background:var(--navy-2)}
.bnd-editor .toastui-editor-popup-body .toastui-editor-close-button{background:#fff;border:1px solid var(--line-2);color:var(--ink)}
.bnd-editor .toastui-editor-popup-body .toastui-editor-close-button:hover{background:var(--cream)}
/* tlačítka „Odkaz na web“ a „Karta z webu“ v liště editoru; hustší lišta, ať se vejde i do užšího sloupce */
.bnd-editor .toastui-editor-defaultUI-toolbar{display:flex;align-items:center;flex-wrap:nowrap;height:auto;min-height:44px;padding:6px 8px}
.bnd-editor .toastui-editor-toolbar-group{display:flex;align-items:center;gap:2px}
.bnd-editor .toastui-editor-toolbar-icons{margin:0 1px}
.bnd-editor .toastui-editor-toolbar-divider{margin:0 6px;height:18px;align-self:center}
.bnd-editor button.bnd-webbtn{display:inline-flex;align-items:center;gap:5px;width:auto;height:30px;margin:0 3px 0 0;padding:0 8px;
  background:var(--gold-soft);border:1px solid var(--gold-2);border-radius:8px;color:var(--navy);font:600 .85rem/1 var(--f-body);cursor:pointer;white-space:nowrap}
.bnd-editor button.bnd-webbtn:hover{background:var(--gold-2)}
.bnd-editor button.bnd-webbtn svg{flex:none}
.bnd-editor button.bnd-fullbtn{background:#fff;border-color:var(--line-2);padding:0 7px}
.bnd-editor button.bnd-fullbtn[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
/* editor na celou obrazovku */
.bnd-editor.ed-full{position:fixed;inset:0;z-index:80;border-radius:0;background:#fff}
.bnd-editor.ed-full .toastui-editor-defaultUI{border:0;border-radius:0}
.bnd-editor.ed-full .toastui-editor-contents{max-width:820px;margin:0 auto}
html.ed-full-open{overflow:hidden}
.bnd-editor .toastui-editor-defaultUI{overflow:visible}
.bnd-editor .toastui-editor-toolbar{position:sticky;top:0;z-index:5;background:var(--paper);box-shadow:0 1px 0 var(--line)}
.bnd-editor .toastui-editor-defaultUI-toolbar{border-radius:8px 8px 0 0}
/* okno „Vložit z webu“ */
.webpick{width:min(680px,94vw);max-height:min(640px,86vh);padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--ink);
  box-shadow:0 24px 60px rgba(19,35,74,.28);overflow:hidden;font-family:var(--f-body)}
.webpick[open]{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
dialog.webpick{position:fixed;inset:0;margin:auto;min-width:0;min-height:0;height:auto;backdrop-filter:none}  /* Pico dělá z dialogu celou obrazovku */
.webpick .wp-search input[type=search]{width:100%;border-radius:10px}
.webpick::backdrop{background:rgba(19,35,74,.35);backdrop-filter:blur(2px)}
.webpick .wp-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 0}
.webpick .wp-mode{display:inline-flex;background:var(--cream);border:1px solid var(--line);border-radius:10px;padding:3px;gap:2px}
.webpick .wp-mode button{all:unset;cursor:pointer;padding:7px 14px;border-radius:8px;font-weight:600;font-size:.92rem;color:var(--muted)}
.webpick .wp-mode button[aria-selected=true]{background:var(--navy);color:#fff}
.webpick .wp-close{all:unset;cursor:pointer;font-size:1.6rem;line-height:1;width:36px;height:36px;display:grid;place-items:center;border-radius:8px;color:var(--muted)}
.webpick .wp-close:hover{background:var(--cream)}
.webpick .wp-search{display:block;padding:10px 14px;margin:0}
.webpick .wp-search input{margin:0;font-size:1.05rem;padding:12px 14px;border-radius:10px;border:1px solid var(--line-2);background:#fff}
.webpick .wp-list{list-style:none;margin:0;padding:0 8px 8px;overflow:auto;flex:1}
.webpick .wp-list li{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;cursor:pointer;margin:0}
.webpick .wp-list li[aria-selected=true]{background:var(--gold-soft)}
.webpick .wp-img{flex:none;width:52px;height:40px;border-radius:7px;background:var(--line) center/cover no-repeat}
.webpick .wp-noimg{background:var(--cream) url("logo.png") center/60% no-repeat}
.webpick .wp-text{flex:1;min-width:0;display:flex;flex-direction:column}
.webpick .wp-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.webpick .wp-text small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.webpick .wp-type{flex:none;font-size:.78rem;font-weight:600;color:var(--gold-dark);background:var(--cream);border:1px solid var(--line);border-radius:999px;padding:3px 9px}
.webpick .wp-empty{color:var(--muted);cursor:default}
.webpick .wp-hint{margin:0;padding:8px 16px 12px;font-size:.8rem;color:var(--muted);border-top:1px solid var(--line)}
.webpick kbd{font:600 .75rem var(--f-body);background:#fff;border:1px solid var(--line-2);border-radius:5px;padding:1px 5px;margin-right:2px;color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* karta vložená do textu */
.web-card{display:flex;align-items:center;gap:16px;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--paper);color:var(--ink);text-decoration:none;font-family:var(--f-body);transition:box-shadow .15s,border-color .15s}
a.web-card:hover{border-color:var(--gold-2);box-shadow:0 8px 24px rgba(19,35,74,.08)}
.web-card .wc-img{flex:none;width:120px;height:90px;border-radius:10px;background:var(--line) center/cover no-repeat}
.web-card .wc-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.web-card .wc-title{font-family:var(--f-display);font-size:1.2rem;line-height:1.25}
.web-card .wc-act{flex:none;font-size:1.4rem;color:var(--gold-dark)}
.seminar-card .wc-act{font-size:1rem}
@media (max-width:560px){.web-card{flex-wrap:wrap}.web-card .wc-img{width:100%;height:150px}.seminar-card .wc-act{width:100%}}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.gallery a{display:block}.gallery img{border-radius:10px;aspect-ratio:4/3;object-fit:cover;width:100%}

/* ---------- patička ---------- */
.site-foot{background:var(--paper);border-top:1px solid var(--line);color:#4d4a40;font-size:.95rem}
.site-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;padding-top:26px;padding-bottom:26px}
.site-foot strong{color:var(--navy)}
.demo-bar{background:var(--gold-soft);color:#5c4515;text-align:center;font-size:.88rem;padding:6px 12px}

@media (max-width:640px){
  body{font-size:16px}
  .wrap,.narrow{padding:0 16px}
  .hero .wrap{padding-top:36px;padding-bottom:36px}
  .admin-main{padding:20px 16px 40px}
  .site-head .wrap{gap:8px 16px}
  .who{margin-left:auto}
  .site-nav{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;gap:18px;scrollbar-width:none;margin:0 -16px;padding:0 16px}
  .site-nav a{white-space:nowrap}
  .dl{grid-template-columns:1fr}
  .horse-pic{min-height:240px}
}

/* semináře: leták v přirozené velikosti (bez barevné výplně pod ním) a obsazenost */
.card.wide .poster{flex:1 1 300px;max-width:520px;margin:0;padding:20px 0 20px 20px;align-self:flex-start}
.card.wide .poster img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 2px 10px rgba(19,35,74,.12)}
@media (max-width:700px){.card.wide .poster{padding:16px 16px 0;max-width:none}}
.occupancy{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.occ-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.95rem}
.occ-left{color:var(--navy);font-weight:600}
.occ-full{color:var(--bad);font-weight:600}
.occ-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:4px}
.occ-bar span{display:block;height:100%;background:var(--gold);border-radius:99px}

/* aktuality: hlavní zprávy přes celou šířku, starší jako menší karty */
.news-list{display:flex;flex-direction:column;gap:16px}
.news-row{display:flex;gap:24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 26px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.news-row:hover,.card:hover{border-color:var(--gold);box-shadow:0 4px 18px rgba(19,35,74,.08)}
.news-row .thumb{flex:0 0 220px;min-height:150px;border-radius:10px;background:var(--line) center/cover no-repeat}
.news-row .txt{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.news-row h2{font-size:1.45rem;margin:0;line-height:1.25}
.news-row p{margin:0;color:var(--ink);max-width:75ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-row .more{margin-top:auto;color:var(--gold);font-weight:600;font-size:.95rem}
.label{font-family:Cinzel,serif;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:600}
.news-sub{margin:12px 0 0;font-size:1.3rem}
.card .excerpt{margin:0;font-size:.92rem}
.card .excerpt.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:700px){.news-row{flex-direction:column;padding:18px;gap:14px}.news-row .thumb{flex-basis:auto;min-height:180px}.news-row h2{font-size:1.25rem}}

/* správa: workshopy a DressageLine */
.ws-row{display:flex;flex-direction:column;gap:12px}
.ws-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ws-money{display:flex;flex-direction:column;align-items:flex-end}
.ws-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:16px}
.ws-stats .box{margin:0;display:flex;flex-direction:column;gap:6px}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.row-actions form{margin:0}
.dl-mod{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dl-mod form{margin:0;display:inline}
button.linkish{all:unset;cursor:pointer;color:var(--bad);font-weight:700;padding:0 6px;border-radius:6px}
button.linkish:hover{background:var(--bad-bg)}
.list-links form{margin:0}
.dl-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2px 12px;padding:8px 0}
.dl-items details{margin:4px 0}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:600px){.grid-2{grid-template-columns:1fr}}
label.check{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px}
label.check > small{flex-basis:100%;padding-left:32px;margin-top:-2px}
.demo-bar.warn-bar{background:var(--bad-bg);color:var(--bad)}
.demo-bar.warn-bar a{color:inherit;font-weight:700}

details.puvodni{padding:14px 20px}
details.puvodni summary{cursor:pointer;font-weight:600;color:var(--navy)}
details.puvodni[open] summary{margin-bottom:10px}

/* správa na mobilu: menu jako vysouvací panel přes obsah */
@media (max-width:900px){
  .admin-side{position:fixed;left:0;top:0;bottom:0;z-index:60;width:min(84vw,300px);transform:translateX(-105%);margin-left:0!important;
    box-shadow:0 0 40px rgba(0,0,0,.3)}
  .menu-otevrene .admin-side{transform:none}
  .admin-toggle{display:inline-flex}
  .menu-otevrene .admin-scrim{display:block;position:fixed;inset:0;z-index:55;background:rgba(19,35,74,.4)}
}
@media (prefers-reduced-motion:reduce){.admin-side{transition:none}}

/* tabulka aktualita × kůň */
.hl-wrap{max-height:72vh;overflow:auto}
.hl-table thead th{position:sticky;top:0;background:var(--paper);z-index:2}
.hl-table th.hl-horse{text-align:center;vertical-align:bottom;min-width:44px;max-width:60px;padding:6px 4px}
.hl-table th.hl-horse span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;font-size:.8rem;max-height:150px;overflow:hidden;text-overflow:ellipsis}
.hl-table th.hl-horse.client span{color:var(--gold-dark)}
.hl-table th.hl-horse.sold span{color:var(--muted);font-style:italic}
.hl-table td.hl-cell{text-align:center;padding:4px;position:relative}
.hl-table td.hl-cell label{display:grid;place-items:center;min-height:36px;margin:0;cursor:pointer}
.hl-table td.hl-cell input{margin:0}
.hl-table td.hl-in-text::after,.hl-dot{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold)}
.hl-table td.hl-in-text::after{position:absolute;top:6px;right:6px}
.hl-table tr.hl-mismatch td{background:#fdf6e6}
/* historie změn */
.audit-table td{vertical-align:top}
.audit-diff{margin:0;padding-left:1.1em;font-size:.88rem}
.audit-diff li{margin:0 0 2px;list-style:disc}
.audit-diff del{color:var(--muted);text-decoration:line-through}
.audit-diff ins{text-decoration:none;background:#eef6e8;padding:0 3px;border-radius:3px}
.audit-table .badge.audit-smazáno{background:#f6e1df;color:#8a2a1f}
.audit-table .badge.audit-archivováno,.audit-table .badge.audit-skryto{background:#f3ecdc;color:#6b5420}
.audit-table .badge.audit-vytvořeno,.audit-table .badge.audit-nahráno{background:#e5f0e0;color:#2f5a22}
