/* Spolocny zaklad pre A aj B: reset, klavesove tlacidlo, odkaz na navod, dialog s navodom.
   Varianty nastavuju len tokeny (--bg, --ink, --key-*, --font) a vlastny layout hero. */
:root{
  --lime:#C8E55A;
  --ease:cubic-bezier(.2,.7,.2,1);
  --gutter:clamp(20px,5.5vw,88px);
  --depth:4px;
}
*{box-sizing:border-box}
html{background:var(--bg);color:var(--ink)}
body{margin:0;min-height:100svh;font-family:var(--font);font-size:1.125rem;line-height:1.55;
  background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;overflow-x:clip}
h1,h2,h3,p,ul,ol{margin:0}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
img{display:block;max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--ink);outline-offset:4px}

/* Tlacidlo je klaves: ma spodnu hranu a pri stlaceni sa zatlaci. Produkt = "podrz klaves". */
.key{display:inline-flex;align-items:center;gap:12px;min-height:60px;padding:0 30px 0 24px;margin-bottom:var(--depth);
  border-radius:var(--key-r);background:var(--key-face);color:var(--key-ink);
  font:inherit;font-size:1.1875rem;font-weight:650;letter-spacing:-.005em;text-decoration:none;
  box-shadow:0 var(--depth) 0 var(--key-edge),inset 0 1px 0 var(--key-hi);
  transition:transform .14s var(--ease),box-shadow .14s var(--ease),background-color .18s var(--ease)}
.key svg{width:22px;height:22px;flex:none;overflow:visible}
.key .arrow{transition:transform .22s var(--ease)}
.key:hover{background:var(--key-face-hover)}
.key:hover .arrow{transform:translateY(2px)}
.key:active{transform:translateY(3px);box-shadow:0 1px 0 var(--key-edge),inset 0 1px 0 var(--key-hi)}
.key:focus-visible{outline-offset:6px}

.meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 24px;font-size:1rem;line-height:1.4}
.howto{display:inline-flex;align-items:center;min-height:44px;color:inherit;font-weight:600;
  text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:.22em;
  text-decoration-color:var(--line)}
.howto:hover{text-decoration-color:currentColor}

/* Navod: modalny dialog (JS). Bez JS je to cielova kotva #navod a zobrazi sa pod hero. */
.sheet{width:min(34rem,calc(100% - 32px));max-height:calc(100svh - 32px);padding:0;border:0;border-radius:20px;
  background:var(--sheet);color:var(--ink);box-shadow:0 24px 64px rgba(10,16,6,.28),0 2px 8px rgba(10,16,6,.12)}
.sheet::backdrop{background:rgba(12,20,8,.42)}
.sheet:target:not([open]){display:block;position:static;margin:0 auto 48px}
.sheet-in{padding:28px clamp(22px,4vw,36px) 32px}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sheet h2{font-size:1.75rem;line-height:1.15;font-weight:700;letter-spacing:-.015em;padding-top:6px}
.sheet h3{font-size:1.1875rem;line-height:1.3;font-weight:700;margin-top:28px}
.sheet p{margin-top:10px;font-size:1.0625rem}
.sheet ol{margin-top:20px;padding-left:1.5em;display:grid;gap:12px}
.sheet ol li{padding-left:.35em}
.sheet ol li::marker{font-weight:700}
.sheet ul{margin-top:10px;padding-left:1.2em;display:grid;gap:6px}
.close{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-4px -10px 0 0;padding:0;border:0;border-radius:50%;
  background:transparent;color:inherit;cursor:pointer;transition:background-color .15s var(--ease)}
.close:hover{background:var(--close-hover)}
.close svg{width:22px;height:22px}

@media (prefers-reduced-motion:no-preference){
  .sheet[open]{animation:sheet-in .26s var(--ease)}
  .sheet[open]::backdrop{animation:fade .26s var(--ease)}
}
@keyframes sheet-in{from{opacity:0;transform:translateY(10px) scale(.985)}}
@keyframes fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.key,.key .arrow,.close{transition:none}}
