/* Blog — styl webu. Bez frameworků, kontrast dle WCAG 2.1 AA.
   Barvy jsou v proměnných; tmavý režim přepíná --bg/--text/--link,
   brandové barvy (--navy, --accent) přicházejí z config.php. */

:root {
  --navy:   #1a3e6e;   /* hlavní barva (přepisuje config) */
  --navy-d: #122c50;   /* tmavší (hover, patička) */
  --accent: #b7893c;   /* doplněk (přepisuje config) */
  --text:   #1c2430;
  --muted:  #5a6472;   /* na bílé 4,6:1 — AA ok */
  --bg:     #ffffff;
  --bg-alt: #f2f5f9;
  --line:   #d4dbe4;
  --ok:     #1c6b37;
  --err:    #a52333;
  --link:   var(--navy);
  --link-h: var(--navy-d);
}

/* tmavá paleta — jednou pro ruční volbu, jednou pro systémovou */
:root[data-theme="dark"] {
  --text:   #e4e1da;
  --muted:  #a2a9b4;
  --bg:     #15171b;
  --bg-alt: #1e2126;
  --line:   #363b44;
  --link:   color-mix(in srgb, var(--navy) 40%, #ffffff);
  --link-h: color-mix(in srgb, var(--navy) 25%, #ffffff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:   #e4e1da;
    --muted:  #a2a9b4;
    --bg:     #15171b;
    --bg-alt: #1e2126;
    --line:   #363b44;
    --link:   color-mix(in srgb, var(--navy) 40%, #ffffff);
    --link-h: color-mix(in srgb, var(--navy) 25%, #ffffff);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.2rem 0 .8rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: .8rem 0 .3rem; }

a { color: var(--link); }
a:hover { color: var(--link-h); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lead  { font-size: 1.1rem; }
.muted { color: var(--muted); }
.more  { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* --- přístupnost --- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- hlavička --- */
.site-header { border-bottom: 4px solid var(--accent); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); }
.brand-mark {
  background: var(--navy); color: #fff; font-weight: 800;
  padding: .45rem .7rem; border-radius: 4px; letter-spacing: .05em;
}
.brand-name { font-weight: 600; max-width: 16rem; line-height: 1.25; }

.header-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.theme-toggle {
  border: 1px solid var(--line); background: var(--bg-alt);
  font-size: 1.1rem; line-height: 1; padding: .45rem .55rem;
  border-radius: 4px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--navy); }

.search-form { display: flex; gap: .4rem; position: relative; }
.suggest-box {
  position: absolute; top: calc(100% + .3rem); left: 0; right: 0;
  margin: 0; padding: .3rem; list-style: none; z-index: 40;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.suggest-box a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .6rem; padding: .45rem .6rem; border-radius: 4px;
  text-decoration: none; color: var(--text); font-size: .93rem;
}
.suggest-box a:hover, .suggest-box [aria-selected="true"] a {
  background: var(--bg-alt);
}
.suggest-kind {
  flex-shrink: 0; font-size: .72rem; font-weight: 700;
  color: var(--muted);
}
.search-form input {
  padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 4px;
  min-width: 14rem; font-size: 1rem;
  background: var(--bg); color: var(--text);
}
.search-form button, .admin-form button {
  padding: .5rem 1rem; border: 0; border-radius: 4px; font-size: 1rem;
  background: var(--navy); color: #fff; cursor: pointer;
}
.search-form button:hover, .admin-form button:hover { background: var(--navy-d); }
.search-big { margin: 1rem 0 1.5rem; }
.search-big input { flex: 1; }

.site-nav { background: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .7rem 1rem; color: #fff;
  text-decoration: none; font-weight: 500;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--navy-d); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--navy-d); box-shadow: inset 0 -3px 0 var(--accent); }

/* --- úvod: pozvánka ke čtení --- */
.hero-invite {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: 3.5rem 0 2rem;
}
.hero-invite h1 {
  font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.2; margin: 0 0 1rem;
}
.hero-invite .lead {
  font-size: 1.2rem; color: var(--muted); margin: 0 0 1.8rem;
}
.btn-primary {
  display: inline-block; background: var(--navy); color: #fff;
  padding: .85rem 2rem; border-radius: 999px; font-size: 1.05rem;
  font-weight: 600; text-decoration: none;
}
.btn-primary:hover { background: var(--navy-d); color: #fff; }

.home-latest { max-width: 720px; margin: 1.5rem auto 0; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem; margin: 1rem 0;
}
.card {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--line);
  border-radius: 6px; text-decoration: none; color: var(--text);
  background: var(--bg-alt);
}
.card:hover { border-color: var(--navy); }
.card h3, .card-h { margin: 0 0 .35rem; color: var(--link); font-size: 1.05rem; }
.card p { margin: 0; font-size: .92rem; }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* --- dokumenty --- */
.doc-list { list-style: none; margin: .8rem 0; padding: 0; }
.doc-item { border-bottom: 1px solid var(--line); }
.doc-link {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem;
  padding: .7rem .2rem; text-decoration: none; color: var(--text);
}
.doc-link:hover .doc-title { text-decoration: underline; color: var(--link-h); }
.doc-ext {
  grid-row: span 2; align-self: center;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .35rem .45rem; border-radius: 4px; min-width: 3.2em; text-align: center;
}
.doc-title { font-weight: 600; color: var(--link); }
.doc-meta  { font-size: .85rem; color: var(--muted); }

.filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.filter a {
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .92rem;
}
.filter a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --- výpisy článků --- */
.news-teaser { padding: .6rem 0 .8rem; border-bottom: 1px solid var(--line); }
.news-teaser p { margin: .2rem 0; }
.news-teaser h3 { font-size: 1.2rem; margin: .6rem 0 .1rem; }
.news-teaser h3 a { text-decoration: none; }
.news-teaser h3 a:hover { text-decoration: underline; }

.news-teaser.has-thumb {
  display: grid; grid-template-columns: 7.5rem 1fr;
  gap: 1rem; align-items: start;
}
.teaser-thumb img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 6px; display: block; margin-top: .7rem;
}
@media (max-width: 540px) {
  .news-teaser.has-thumb { grid-template-columns: 1fr; gap: 0; }
  .teaser-thumb img { aspect-ratio: 16/7; }
}

/* štítky a kategorie */
.chip {
  display: inline-block; padding: .1rem .6rem; margin-left: .35rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-alt); color: var(--link);
  font-size: .82rem; font-weight: 600; text-decoration: none;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.chip:hover { border-color: var(--navy); }
.tag-row { margin-top: 2rem; }
.tag-row .chip { margin: 0 .35rem .35rem 0; }

/* --- článek: čte se jako kniha --- */
.reading { max-width: 720px; margin-left: auto; margin-right: auto; }

.article {
  font-family: Charter, "Iowan Old Style", Georgia, "Palatino Linotype",
               "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.75;
}
.article p  { margin: 0 0 1.15em; }
.article h1 { font-size: 2.3rem; line-height: 1.2; margin: 1.8rem 0 .5rem; }
.article h2 { font-size: 1.55rem; margin: 2.2rem 0 .7rem; }
.article h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.article img { max-width: 100%; height: auto; border-radius: 6px; }
.article ul, .article ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.article li { margin: .3em 0; }

/* metadata pod titulkem zpět v UI fontu */
.article-head .muted {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .95rem; margin-top: 0;
}

/* úvodní ilustrace článku */
.article-cover {
  width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 8px; margin-top: 1.8rem;
}
.article-cover + .article-head h1 { margin-top: 1rem; }

/* box série článků */
.serie-box {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: .9rem 1.2rem; margin: 1.4rem 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .95rem;
}
.serie-title { font-weight: 700; margin: 0 0 .4rem; }
.serie-box ol { margin: 0; padding-left: 1.4em; }
.serie-box li { margin: .2em 0; }
.serie-box [aria-current="page"] { font-weight: 700; }

/* související články */
.related { margin-top: 2.5rem; border-top: 1px solid var(--line); }

/* průběh čtení — tenká linka nahoře */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 60;
}

/* režim čtení: zůstane jen článek a linka průběhu */
.reading-toggle {
  border: 1px solid var(--line); background: var(--bg-alt);
  color: var(--muted); border-radius: 999px; cursor: pointer;
  font-size: .8rem; font-weight: 600; padding: .15rem .7rem;
  margin-left: .35rem;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.reading-toggle:hover { color: var(--text); border-color: var(--navy); }
body.zen .site-header, body.zen .site-footer,
body.zen .related, body.zen .more, body.zen .serie-box, body.zen .toc {
  display: none;
}
body.zen main { padding-top: 2rem; }

/* poznámky čtenáře (jen v jeho prohlížeči) */
.article p.notable { position: relative; }
.p-tools {
  position: absolute; left: -2.7rem; top: .1rem; display: flex;
  opacity: 0; transition: opacity .15s;
}
.article p.notable:hover .p-tools, .p-tools:focus-within { opacity: 1; }
.p-tools button {
  border: 0; background: none; cursor: pointer;
  font-size: .85rem; padding: .1rem .15rem; line-height: 1;
}
.p-tools button:hover { transform: scale(1.2); }
@media (max-width: 900px) { .p-tools { display: none; } }

.article p.hl {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 4px;
  box-shadow: 0 0 0 .3em color-mix(in srgb, var(--accent) 16%, transparent);
}
.reader-note {
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  border-radius: 0 6px 6px 0; padding: .5rem .9rem;
  margin: -.5em 0 1.15em; font-size: .88rem;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--muted);
}
.reader-note::before { content: "📝 "; }

/* obsah článku (generuje se z nadpisů) */
.toc {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: .9rem 1.2rem; margin: 1.4rem 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .95rem;
}
.toc-title { font-weight: 700; margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: .2em 0; }
.toc .toc-l3 { list-style: none; padding-left: 1em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* zvýrazněné bloky: 💡 Tip, ⚠️ Pozor, 🧠 Zajímavost, 📌 Shrnutí */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; background: var(--bg-alt);
  padding: .8rem 1.2rem .2rem; margin: 1.4rem 0;
  font-size: .95em;
}
.callout-title {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700; margin: 0 0 .4rem !important;
}
.callout-tip        { border-left-color: #4d9459; }
.callout-pozor      { border-left-color: #d64545; }
.callout-zajimavost { border-left-color: #5a7fb8; }
.callout-shrnuti    { border-left-color: var(--accent); }

/* citace — graficky odlišené, jako v knize */
.article blockquote {
  margin: 1.6em 0; padding: .3em 0 .3em 1.4em;
  border-left: 4px solid var(--accent);
  font-style: italic; color: var(--muted); font-size: 1.08em;
}
.article blockquote p:last-child { margin-bottom: 0; }

.article code {
  font-size: .85em; background: var(--bg-alt);
  padding: .12em .35em; border-radius: 4px;
}
.article pre {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 6px; padding: 1em; overflow-x: auto;
  font-size: .85em; line-height: 1.55; margin: 0 0 1.15em;
}
.article pre code { background: none; padding: 0; font-size: 1em; }

/* blok kódu s tlačítkem Kopírovat (přidává blog.js) */
.code-block { position: relative; }
.code-copy {
  position: absolute; top: .5rem; right: .5rem;
  padding: .25rem .7rem; font-size: .78rem; font-weight: 600;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--muted); cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.code-block:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { color: var(--text); border-color: var(--navy); }
.code-copy.done { color: var(--ok); opacity: 1; }

/* barvy zvýraznění syntaxe */
.tok-com { color: #6a737d; font-style: italic; }
.tok-str { color: #14691b; }
.tok-num { color: #9c4a00; }
.tok-kw  { color: #0b5394; font-weight: 600; }
:root[data-theme="dark"] .tok-com { color: #8b949e; }
:root[data-theme="dark"] .tok-str { color: #7ec98a; }
:root[data-theme="dark"] .tok-num { color: #e0a56e; }
:root[data-theme="dark"] .tok-kw  { color: #79b8ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tok-com { color: #8b949e; }
  :root:not([data-theme="light"]) .tok-str { color: #7ec98a; }
  :root:not([data-theme="light"]) .tok-num { color: #e0a56e; }
  :root:not([data-theme="light"]) .tok-kw  { color: #79b8ff; }
}

.article table { border-collapse: collapse; margin: 1rem 0; }
.article th, .article td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.article th { background: var(--bg-alt); }

/* --- newsletter a karta autora pod článkem --- */
.article-extras {
  margin-top: 2.5rem; display: grid; gap: 1rem;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.newsletter-box, .author-card {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-alt); padding: 1rem 1.2rem;
}
.box-title { font-weight: 700; margin: 0 0 .3rem; }
.newsletter-box p, .author-card p { margin: .2rem 0; font-size: .93rem; }
.nl-form { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 12rem; padding: .5rem .7rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--text);
}
.nl-form button {
  padding: .5rem 1.2rem; border: 0; border-radius: 4px; font-size: 1rem;
  background: var(--navy); color: #fff; cursor: pointer;
}
.nl-form button:hover { background: var(--navy-d); }
.author-card { display: flex; gap: 1rem; align-items: flex-start; }
.author-card img {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; flex-shrink: 0;
}
.author-links a { margin-right: .8rem; font-weight: 600; }
body.zen .article-extras { display: none; }

/* --- mapa znalostí --- */
.map-branch h2 a { text-decoration: none; }
.map-branch h2 a:hover { text-decoration: underline; }
.map-tree, .map-tree ul { list-style: none; margin: 0; padding-left: 1.1rem; }
.map-tree { border-left: 2px solid var(--line); }
.map-tree ul { border-left: 2px solid var(--line); margin: .2rem 0 .4rem .35rem; }
.map-tree li { margin: .35rem 0; }
.map-tree a { text-decoration: none; }
.map-tree a:hover { text-decoration: underline; }
.map-serie { font-weight: 700; }
.map-tree .chip { font-size: .75rem; }

/* --- hledání --- */
.hit-list { list-style: none; margin: 1rem 0; padding: 0; }
.hit { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.hit-kind {
  display: inline-block; font-size: .75rem; font-weight: 700;
  color: var(--link); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 4px;
  padding: .05rem .45rem; margin-right: .5rem;
}
.hit-title { font-weight: 600; }
.hit .doc-meta { display: block; margin-top: .15rem; }
.hit-snippet { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }

/* --- admin --- */
.admin-form {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 6px; padding: .3rem 1.1rem .6rem; margin: .8rem 0 1.5rem;
}
.admin-form label { font-weight: 600; }
.admin-form input[type=text], .admin-form input[type=password], .admin-form select {
  padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 4px; font-size: 1rem;
  max-width: 100%; background: var(--bg); color: var(--text);
}
.admin-table { border-collapse: collapse; width: 100%; margin: .8rem 0; }
.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line); padding: .45rem .6rem; text-align: left;
  font-size: .93rem;
}
.admin-table th { background: var(--bg-alt); }

.btn-danger {
  padding: .3rem .7rem; border: 1px solid var(--err); border-radius: 4px;
  background: none; color: var(--err); font-size: .85rem; cursor: pointer;
}
.btn-danger:hover { background: var(--err); color: #fff; }

.msg { padding: .6rem .9rem; border-radius: 4px; font-weight: 600; }
.msg-ok  { background: #e7f3ea; color: var(--ok); }
.msg-err { background: #fbe9ec; color: var(--err); }

/* --- patička --- */
.site-footer {
  margin-top: 2.5rem; background: var(--navy-d); color: #fff;
}
.site-footer a { color: #cfe0f5; }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.6rem 1.25rem;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-h { font-size: 1rem; margin: 0 0 .5rem; color: #fff; }
.site-footer address { font-style: normal; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .25rem 0; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: .8rem 1.25rem; font-size: .85rem; color: #c6d2e2;
}

/* === Editor obsahu v adminu (/admin/obsah) === */
.btn-new { display: inline-block; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; font-weight: 600; }
.btn-new:hover { background: var(--navy-d); }
.ed-meta { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: end; }
.ed-meta .ed-title { flex: 2 1 260px; }
.ed-meta .ed-perex { flex: 1 1 100%; }
.ed-meta input[type=text] { width: 100%; }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .75rem 0 .4rem; }
.ed-toolbar button { padding: .3rem .7rem; border: 1px solid #ccc; background: #fff; color: #333; border-radius: 6px; cursor: pointer; font-size: .9rem; }
.ed-toolbar button:hover { background: #f0f0f0; }
.ed-hint { margin-left: auto; font-size: .85rem; }
.ed-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.ed-panes textarea { width: 100%; min-height: 420px; resize: vertical; font: 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: .9rem; border: 1px solid #ccc; border-radius: 8px; }
.ed-preview { border: 1px dashed #ccc; border-radius: 8px; padding: .9rem 1.1rem; overflow-y: auto; max-height: 620px; background: #fff; }
.ed-save { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
@media (max-width: 900px) { .ed-panes { grid-template-columns: 1fr; } }

/* === Správa menu webu v adminu === */
.nav-inline { display: inline; }
.nav-inline button { padding: .2rem .6rem; border: 1px solid #ccc; background: #fff; color: #333; border-radius: 6px; cursor: pointer; }
.nav-inline button:hover { background: #f0f0f0; }
.nav-order form { margin-right: .25rem; }
.nav-add input[type=text] { width: 14rem; max-width: 100%; }
.nav-add label { margin-left: .75rem; }
.nav-add label:first-child { margin-left: 0; }
.nav-reset { background: #fff; color: #333; border: 1px solid #ccc; }
.msg-tip { background: #fff8e6; border: 1px solid #e6cf8a; padding: .6rem 1rem; border-radius: 8px; }
.btn-armed { background: #b91c1c !important; color: #fff !important; border-color: #b91c1c !important; }

/* Dlaždice editoru na hlavní stránce adminu — ať nezapadne */
.admin-tile { background: linear-gradient(135deg, #fdf6ec, #fff); border: 2px solid var(--accent); border-radius: 12px; padding: 1.1rem 1.4rem 1.2rem; margin: 1.2rem 0 2rem; }
.admin-tile h2 { margin-top: 0; }
.admin-tile-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 0; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-secondary:hover { background: var(--bg-alt, #f5f5f5); }
.admin-ver { font-size: .55em; font-weight: 400; color: #999; vertical-align: middle; }
