/* FusionShield Docs */
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url("/assets/lexend-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url("/assets/lexend-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #121212; --bg2: #171717; --card: #1c1c1c; --muted: #242424; --text: #ececec; --sub: #a3a3a3; --dim: #737373;
  --line: rgb(255 255 255 / .08); --line2: rgb(255 255 255 / .12); --brand: #4599ff; --brand2: #3494d9; --brand-soft: rgb(69 153 255 / .12);
  --ok: #22c55e; --warn: #f5b84a; --font: "Lexend", system-ui, sans-serif; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --top: 60px; --side: 270px; --toc: 220px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.i { width: 16px; height: 16px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--brand); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid rgb(69 153 255 / .75); outline-offset: 2px; border-radius: 6px; }

/* horní lišta */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: var(--top); padding: 0 20px; background: rgb(18 18 18 / .85); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; } .brand:hover { text-decoration: none; }
.brand b { font-weight: 700; letter-spacing: -.01em; }
.badge { padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 500; }
.search-btn { display: flex; align-items: center; gap: 10px; width: 340px; max-width: 40vw; height: 38px; margin-left: 24px; padding: 0 10px 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg2); color: var(--dim); font-size: 13.5px; transition: border-color .15s, color .15s; }
.search-btn:hover { border-color: rgb(69 153 255 / .4); color: var(--sub); }
.search-btn span { flex: 1; text-align: left; }
kbd { padding: 1px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--muted); color: var(--sub); font: 500 11px var(--font); }
.top-links { display: flex; gap: 18px; margin-left: auto; font-size: 13.5px; }
.top-links a { color: var(--sub); } .top-links a:hover { color: var(--text); text-decoration: none; }
.icon-btn { display: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line2); border-radius: 10px; background: none; }

/* rozložení */
.layout { display: flex; max-width: 1440px; margin: 0 auto; }
.side { position: sticky; top: var(--top); flex: none; width: var(--side); height: calc(100vh - var(--top)); overflow-y: auto; padding: 22px 14px 40px 20px; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { padding: 0 10px 6px; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--sub); font-size: 14px; line-height: 1.35; transition: background-color .15s, color .15s; }
.side a:hover { background: var(--muted); color: var(--text); text-decoration: none; }
.side a.active { background: var(--brand-soft); color: #fff; } .side a.active .i { color: var(--brand); }
.main { display: flex; flex: 1; min-width: 0; }
.doc { flex: 1; min-width: 0; max-width: 820px; margin: 0 auto; padding: 40px 48px 60px; animation: rise .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.toc { position: sticky; top: var(--top); flex: none; width: var(--toc); height: calc(100vh - var(--top)); overflow-y: auto; padding: 40px 20px 40px 0; font-size: 13px; }
.toc-label { margin-bottom: 10px; color: var(--text); font-weight: 600; font-size: 12.5px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line2); color: var(--dim); line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); text-decoration: none; } .toc a.on { color: var(--brand); border-left-color: var(--brand); }

/* obsah */
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 500; } .crumbs .i { width: 13px; height: 13px; color: var(--dim); } .crumbs span:last-child { color: var(--dim); font-weight: 400; }
.doc h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.lead { margin: 0 0 28px; color: var(--sub); font-size: 17px; }
.prose h2 { margin: 44px 0 12px; padding-top: 4px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.prose h3 { margin: 30px 0 8px; font-size: 17px; font-weight: 600; }
.prose h2, .prose h3 { position: relative; }
.anchor { position: absolute; left: -22px; opacity: 0; color: var(--dim); font-weight: 400; transition: opacity .15s; } .anchor:hover { text-decoration: none; color: var(--brand); }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #d4d4d4; }
.prose ul, .prose ol { padding-left: 22px; } .prose li { margin: 4px 0; } .prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose :not(pre) > code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--muted); color: #e6e6e6; font: 13px var(--mono); }
.table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 10px 14px; background: var(--bg2); color: var(--text); font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: #d4d4d4; vertical-align: top; } tr:last-child td { border-bottom: 0; }

/* kód */
.code { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; background: #161616; overflow: hidden; }
.code-h { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); background: var(--bg2); color: var(--dim); font-size: 12px; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--sub); font-size: 12px; transition: background-color .15s, color .15s; }
.copy:hover { background: var(--muted); color: var(--text); } .copy.done { color: var(--ok); } .copy .i { width: 14px; height: 14px; }
pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.65 var(--mono); color: #e5e5e5; tab-size: 4; }
.t-c { color: #6b7280; } .t-s { color: #8cc2ff; } .t-k { color: #c4a7ff; } .t-n { color: #f5b84a; }

/* upozornění */
.callout { display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.callout .i { margin-top: 3px; } .callout b { display: block; margin-bottom: 2px; font-size: 14px; } .callout p { margin: 0; color: #d4d4d4; font-size: 14.5px; }
.callout.info { border-color: rgb(69 153 255 / .3); background: rgb(69 153 255 / .07); } .callout.info .i, .callout.info b { color: var(--brand); }
.callout.tip { border-color: rgb(34 197 94 / .28); background: rgb(34 197 94 / .06); } .callout.tip .i, .callout.tip b { color: var(--ok); }
.callout.warn { border-color: rgb(245 184 74 / .3); background: rgb(245 184 74 / .06); } .callout.warn .i, .callout.warn b { color: var(--warn); }

/* stránkování a patička */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.pn { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s; } .pn:hover { border-color: rgb(69 153 255 / .45); text-decoration: none; transform: translateY(-1px); }
.pn small { display: flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12.5px; } .pn b { color: var(--text); font-weight: 600; }
.pn.next { grid-column: 2; text-align: right; } .pn.next small { justify-content: flex-end; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot a { color: var(--dim); margin-left: 14px; } .foot a:hover { color: var(--text); }

/* vyhledávání */
.search { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgb(0 0 0 / .55); animation: fade .15s ease both; }
@keyframes fade { from { opacity: 0; } }
.search-box { width: 640px; max-width: 100%; max-height: 70vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); overflow: hidden; animation: pop .2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.search-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.search-in input { flex: 1; height: 54px; border: 0; outline: 0; background: none; color: var(--text); font: 16px var(--font); }
.search-res { overflow-y: auto; padding: 8px; }
.search-res a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--text); }
.search-res a:hover, .search-res a.sel { background: var(--brand-soft); text-decoration: none; }
.search-res b { font-weight: 500; } .search-res small { display: block; color: var(--dim); font-size: 12px; } .search-res p { margin: 3px 0 0; color: var(--sub); font-size: 13px; line-height: 1.5; }
.search-res mark { background: none; color: var(--brand); font-weight: 600; }
.search-empty { padding: 28px; text-align: center; color: var(--dim); }
.search-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* responzivní */
@media (max-width: 1180px) { .toc { display: none; } }
@media (max-width: 860px) {
  .icon-btn { display: grid; } .top-links { display: none; }
  .search-btn { width: auto; flex: 1; margin-left: auto; max-width: none; } .search-btn kbd { display: none; }
  .side { position: fixed; left: 0; top: var(--top); z-index: 25; background: var(--bg); transform: translateX(-100%); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
  body.nav-open .side { transform: none; box-shadow: 20px 0 60px rgb(0 0 0 / .5); }
  .scrim { position: fixed; inset: var(--top) 0 0; z-index: 20; background: rgb(0 0 0 / .5); }
  .doc { padding: 28px 20px 48px; } .doc h1 { font-size: 28px; }
  .anchor { display: none; }
}
@media (max-width: 520px) { .brand b { display: none; } .pager { grid-template-columns: 1fr; } .pn.next { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- vzhled ve stylu AstroShield docs ---- */
.top { gap: 12px; }
.brand { gap: 9px; } .brand-sub { color: var(--sub); font-weight: 400; margin-left: -4px; }
.badge { padding: 0 7px; border: 1px solid var(--line2); background: var(--muted); color: var(--sub); font-size: 11px; line-height: 18px; }
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-btn { margin-left: 0; width: 220px; height: 34px; }
.top-link { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--text); font-size: 13px; font-weight: 500; }
.top-link:hover { background: var(--muted); text-decoration: none; } .top-link .i { width: 15px; height: 15px; }
.icon-btn { display: grid; width: 34px; height: 34px; border-color: transparent; color: var(--sub); }
.icon-btn:hover { background: var(--muted); color: var(--text); text-decoration: none; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; } html[data-theme="light"] .theme-btn .sun { display: none; } html[data-theme="light"] .theme-btn .moon { display: block; }
.side { padding-top: 26px; }
.nav-label { padding: 0 10px 8px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side a { padding: 6px 10px; font-size: 13.5px; border-left: 0; }
.side a.active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.doc h1 { font-size: 32px; } .crumbs { display: none; }
.lead { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 32px; }
.card { position: relative; display: grid; gap: 6px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--text); transition: border-color .2s, transform .2s, background-color .2s; }
.card:hover { border-color: rgb(69 153 255 / .45); background: var(--card); transform: translateY(-2px); text-decoration: none; }
.card-ic { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.card-ic .i { width: 15px; height: 15px; }
.card b { font-size: 14.5px; font-weight: 600; } .card > span:not(.card-ic) { color: var(--sub); font-size: 13px; line-height: 1.55; }
.card .arrow { position: absolute; top: 18px; right: 16px; color: var(--dim); transition: transform .2s, color .2s; }
.card:hover .arrow { transform: translateX(3px); color: var(--brand); }
@media (max-width: 860px) { .menu-btn { display: grid; } .top-link span { display: none; } .search-btn { width: auto; } .search-btn span, .search-btn kbd { display: none; } .cards { grid-template-columns: 1fr; } }

/* světlý režim */
html[data-theme="light"] { --bg: #ffffff; --bg2: #f7f8fa; --card: #ffffff; --muted: #eef0f3; --text: #111318; --sub: #555b66; --dim: #868c97;
  --line: rgb(0 0 0 / .08); --line2: rgb(0 0 0 / .12); --brand: #2f7fe0; --brand-soft: rgb(52 148 217 / .1); color-scheme: light; }
html[data-theme="light"] .top { background: rgb(255 255 255 / .85); }
html[data-theme="light"] .prose p, html[data-theme="light"] .prose ul, html[data-theme="light"] .prose ol, html[data-theme="light"] td, html[data-theme="light"] .callout p { color: #30343b; }
html[data-theme="light"] .prose :not(pre) > code { color: #1f2329; }
html[data-theme="light"] .code { background: #f7f8fa; } html[data-theme="light"] pre { color: #1f2329; }
html[data-theme="light"] .t-s { color: #1f6fd1; } html[data-theme="light"] .t-k { color: #7b3fe4; } html[data-theme="light"] .t-c { color: #8a919c; } html[data-theme="light"] .t-n { color: #b7791f; }
html[data-theme="light"] .side a.active { color: var(--brand); }

/* ---- navigační lišta jako na fusionshield.fun ---- */
:root { --top: 76px; }
.top { display: block; height: var(--top); padding: 10px 20px; background: transparent !important; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top-in { display: flex; align-items: center; gap: 14px; max-width: 1152px; height: 56px; margin: 0 auto; padding: 0 12px 0 18px; border: 1px solid rgb(255 255 255 / .08); border-radius: 16px;
  background: rgb(8 10 16 / .6); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.brand b { font-size: 17px; } .brand img { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); } .brand:hover img { transform: scale(1.1) rotate(12deg); }
.brand:hover b { color: var(--brand); }
.top-links { display: flex; gap: 2px; margin: 0 auto; }
.top-links a { padding: 7px 15px; border-radius: 10px; color: #a6a6a6; font-size: 13px; font-weight: 500; transition: color .15s, background-color .15s; }
.top-links a:hover, .top-links a.on { color: #fff; background: rgb(255 255 255 / .05); text-decoration: none; }
.top-end { margin-left: 0; gap: 8px; }
.search-btn { width: 180px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .03); border-color: rgb(255 255 255 / .1); }
.theme-btn { border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; background: rgb(255 255 255 / .03); }
.btn-primary { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: #4599ff; color: #fff; font-size: 13px; font-weight: 500; transition: background-color .15s; }
.btn-primary:hover { background: #5aa6ff; text-decoration: none; }
.badge, .brand-sub, .top-link { display: none; }
.layout { max-width: 1440px; }
html[data-theme="light"] .top-in { background: rgb(255 255 255 / .75); border-color: rgb(0 0 0 / .08); }
html[data-theme="light"] .top-links a { color: #555b66; } html[data-theme="light"] .top-links a:hover, html[data-theme="light"] .top-links a.on { color: #111318; background: rgb(0 0 0 / .05); }
html[data-theme="light"] .search-btn, html[data-theme="light"] .theme-btn { background: #fff; border-color: rgb(0 0 0 / .1); }
@media (max-width: 1100px) { .top-links { display: none; } .top-end { margin-left: auto; } }
@media (max-width: 860px) { .top { padding: 8px 10px; } .top-in { padding: 0 8px; gap: 8px; } .search-btn { width: 34px; padding: 0; justify-content: center; } .btn-primary { padding: 0 10px; } }
@media (max-width: 420px) { .brand b { display: none; } }
