/* ===== Barevné motivy (vybírají se v content.js → site.theme) ===== */
:root, [data-theme="romanticky"] {
  --bg: #FBEFEF; --ink: #3A0D16; --muted: #6E3F48; --accent: #B0173A;
  --node: #FFFFFF; --line: #E3B5BE; --shadow: 0 10px 30px rgba(176,23,58,.12);
  --display: 'DM Serif Display', Georgia, serif;
}
[data-theme="minimal"] {
  --bg: #F6F3EE; --ink: #1D1B19; --muted: #5B5650; --accent: #7A2335;
  --node: #F6F3EE; --line: #CFC8BE; --shadow: none;
  --display: 'Cormorant Garamond', Georgia, serif;
}
[data-theme="tmavy"] {
  --bg: #150A0E; --ink: #F5E9E4; --muted: #C4AFA9; --accent: #C21F3D;
  --node: #22121A; --line: #5A3640; --shadow: 0 0 40px rgba(194,31,61,.25);
  --display: 'Bodoni Moda', Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: 'Work Sans', system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 28px; }

.top { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; text-decoration: none; }
.logo svg { color: var(--accent); }
.countdown { font-size: 14px; color: var(--muted); min-height: 22px; }
.countdown strong { color: var(--accent); font-size: 18px; }

.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.crumbs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ===== Kulové menu ===== */
.stage { position: relative; width: min(680px, 92vw); aspect-ratio: 1 / 1; }
.stage-list { margin: 0; padding: 0; list-style: none; }
.ring { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; border-radius: 50%; border: 1px dashed var(--line); }
.spoke { position: absolute; left: 50%; top: 50%; width: 37%; height: 1px; background: var(--line); transform-origin: 0 50%; animation: grow .4s ease both; }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 21%; aspect-ratio: 1 / 1; border-radius: 50%;
  border: 1.5px solid var(--accent); background: var(--node); color: var(--ink); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s ease; animation: pop .45s cubic-bezier(.2,.8,.3,1.2) both;
}
.node:hover { transform: translate(-50%, -50%) scale(1.07); }
.node .label { font-family: var(--display); font-size: clamp(13px, 2.3vw, 20px); line-height: 1.1; }
.node .meta { font-size: clamp(10px, 1.4vw, 12px); color: var(--muted); }
.center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--accent); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12px; box-shadow: var(--shadow); margin: 0;
}
.center .label { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 3.6vw, 32px); line-height: 1.05; margin: 0; }
.center .meta { font-size: clamp(11px, 1.5vw, 13px); opacity: .9; }
@keyframes pop { from { opacity: 0; left: 50%; top: 50%; } }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .node, .spoke { animation: none; } .node { transition: none; } }

.intro { margin: 0; max-width: 640px; text-align: center; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ===== Koncová sekce ===== */
.card { width: 100%; max-width: 720px; border: 1px solid var(--line); border-radius: 24px; background: var(--node); padding: 40px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.card .kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.card h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.card .desc { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
/* ===== Formátovaný obsah sekcí ===== */
.article { display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; line-height: 1.65; }
.card.article { max-width: 720px; }
.article > * { margin: 0; }
.article h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin-top: 18px; }
.article h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.article > :first-child { margin-top: 0; }
.article strong { font-weight: 600; }
.article a { color: var(--accent); text-underline-offset: 2px; }
.article ul, .article ol { padding: 0; display: flex; flex-direction: column; gap: 10px; }
.article ul { list-style: none; }
.article ul > li { position: relative; padding-left: 30px; }
.article ul > li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9.2-8.6C1.3 8.5 3 5 6.3 5c2 0 3.2 1.1 3.9 2.3h3.6C14.5 6.1 15.7 5 17.7 5 21 5 22.7 8.5 21.2 11.4 19 15.6 12 20 12 20z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9.2-8.6C1.3 8.5 3 5 6.3 5c2 0 3.2 1.1 3.9 2.3h3.6C14.5 6.1 15.7 5 17.7 5 21 5 22.7 8.5 21.2 11.4 19 15.6 12 20 12 20z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article ul.check > li::before { -webkit-mask: none; mask: none; background: transparent; border: 2px solid var(--accent); border-radius: 5px; width: 16px; height: 16px; box-sizing: border-box; }
.article ol { padding-left: 1.7em; list-style: decimal; }
.article ol > li { padding-left: 4px; }
.article ol > li::marker { color: var(--accent); font-weight: 600; }
.article blockquote { border-radius: 16px; background: var(--bg); padding: 18px 22px; font-family: var(--display); font-size: 21px; line-height: 1.45; }
.article blockquote p { margin: 0; }
.article .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.article th { background: var(--bg); font-weight: 600; }
.article tr:last-child td { border-bottom: 0; }
.more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more h2 { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.more ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); text-decoration: none; font-size: 14px; }

.hint { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.foot { width: 100%; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.foot ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot ul a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--ink); }
.foot p { margin: 0; }

/* ===== 404 ===== */
.notfound { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 40px 0; }
.notfound h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 44px; }
.notfound a.btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; }

@media (max-width: 600px) {
  .wrap { padding: 20px 12px 40px; gap: 20px; }
  .card { padding: 26px 18px; border-radius: 18px; }
  .article { font-size: 16px; }
  .article blockquote { font-size: 19px; padding: 14px 16px; }
}

/* ===== Responzivní kulové menu ===== */
.node { min-height: 0; overflow: hidden; }
.node .label { max-width: 100%; overflow-wrap: break-word; hyphens: auto; }
.l-short { display: none; }
@media (max-width: 600px) {
  .stage { width: min(560px, calc(100vw - 24px)); }
  .node { width: 25%; padding: 4px; gap: 2px; }
  .node .label { font-size: clamp(12px, 3.6vw, 17px); line-height: 1.08; }
  .node .meta { font-size: 10px; }
  .has-short .l-full { display: none; }
  .has-short .l-short { display: inline; }
  .center { width: 30%; padding: 8px; }
  .center .label { font-size: clamp(16px, 5.2vw, 26px); }
  .center .meta { font-size: 11px; }
  .top { justify-content: center; text-align: center; }
  .logo { font-size: 24px; }
  .countdown { width: 100%; text-align: center; }
  .crumbs a { padding: 0 12px; font-size: 13px; }
  .intro { font-size: 16px; }
}
@media (max-width: 420px) {
  .node .meta { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .stage { width: min(640px, 86vw); }
}

/* ===== Pozice kruhů, generuje build.js ===== */
.p1-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a1-0{transform:rotate(-90.00deg)}
.p2-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a2-0{transform:rotate(-90.00deg)}
.p2-1{left:50.00%;top:87.00%;animation-delay:0.05s}.a2-1{transform:rotate(90.00deg)}
.p3-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a3-0{transform:rotate(-90.00deg)}
.p3-1{left:82.04%;top:68.50%;animation-delay:0.05s}.a3-1{transform:rotate(30.00deg)}
.p3-2{left:17.96%;top:68.50%;animation-delay:0.10s}.a3-2{transform:rotate(150.00deg)}
.p4-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a4-0{transform:rotate(-90.00deg)}
.p4-1{left:87.00%;top:50.00%;animation-delay:0.05s}.a4-1{transform:rotate(0.00deg)}
.p4-2{left:50.00%;top:87.00%;animation-delay:0.10s}.a4-2{transform:rotate(90.00deg)}
.p4-3{left:13.00%;top:50.00%;animation-delay:0.15s}.a4-3{transform:rotate(180.00deg)}
.p5-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a5-0{transform:rotate(-90.00deg)}
.p5-1{left:85.19%;top:38.57%;animation-delay:0.05s}.a5-1{transform:rotate(-18.00deg)}
.p5-2{left:71.75%;top:79.93%;animation-delay:0.10s}.a5-2{transform:rotate(54.00deg)}
.p5-3{left:28.25%;top:79.93%;animation-delay:0.15s}.a5-3{transform:rotate(126.00deg)}
.p5-4{left:14.81%;top:38.57%;animation-delay:0.20s}.a5-4{transform:rotate(198.00deg)}
.p6-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a6-0{transform:rotate(-90.00deg)}
.p6-1{left:82.04%;top:31.50%;animation-delay:0.05s}.a6-1{transform:rotate(-30.00deg)}
.p6-2{left:82.04%;top:68.50%;animation-delay:0.10s}.a6-2{transform:rotate(30.00deg)}
.p6-3{left:50.00%;top:87.00%;animation-delay:0.15s}.a6-3{transform:rotate(90.00deg)}
.p6-4{left:17.96%;top:68.50%;animation-delay:0.20s}.a6-4{transform:rotate(150.00deg)}
.p6-5{left:17.96%;top:31.50%;animation-delay:0.25s}.a6-5{transform:rotate(210.00deg)}
.p7-0{left:50.00%;top:13.00%;animation-delay:0.00s}.a7-0{transform:rotate(-90.00deg)}
.p7-1{left:78.93%;top:26.93%;animation-delay:0.05s}.a7-1{transform:rotate(-38.57deg)}
.p7-2{left:86.07%;top:58.23%;animation-delay:0.10s}.a7-2{transform:rotate(12.86deg)}
.p7-3{left:66.05%;top:83.34%;animation-delay:0.15s}.a7-3{transform:rotate(64.29deg)}
.p7-4{left:33.95%;top:83.34%;animation-delay:0.20s}.a7-4{transform:rotate(115.71deg)}
.p7-5{left:13.93%;top:58.23%;animation-delay:0.25s}.a7-5{transform:rotate(167.14deg)}
.p7-6{left:21.07%;top:26.93%;animation-delay:0.30s}.a7-6{transform:rotate(218.57deg)}
