/* Poradna: statické stránky bez JavaScriptu (scripts/build-poradna.mjs). Písmo a barvy jako landing. */
:root {
  /* Hodnoty sémantických tokenů ze src/index.css (světlý režim). */
  --foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --info-fg: 217 91% 40%;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { max-width: 70ch; margin: 0 auto; padding: 0 1.25rem; color: hsl(var(--foreground)); background: #fff; font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
a { color: hsl(var(--info-fg)); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid hsl(var(--info-fg)); outline-offset: 3px; border-radius: 3px; }

header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; padding: .75rem 0; border-bottom: 1px solid hsl(var(--border)); }
header a, .drobecky a, footer a { display: inline-flex; min-height: 44px; align-items: center; }
.logo { color: hsl(var(--foreground)); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.logo span:first-child { color: #0369a1; }
.logo span:last-child { color: #0ea5e9; }

.drobecky ol { display: flex; flex-wrap: wrap; align-items: center; margin: .25rem 0 0; padding: 0; list-style: none; color: hsl(var(--muted-foreground)); font-size: .9375rem; }
/* Oddělovač bez textu, čtečka ho nepřečte (vzor WAI-ARIA APG Breadcrumb). */
.drobecky li + li::before { content: ""; display: inline-block; height: .8em; margin: 0 .6em; border-right: 1px solid currentcolor; transform: rotate(15deg); }
.drobecky [aria-current="page"] { color: hsl(var(--muted-foreground)); text-decoration: none; }

h1 { margin: 1.5rem 0 .75rem; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; }
h3 { margin: 2rem 0 .5rem; font-size: 1.2rem; line-height: 1.35; }
p, ul, ol { margin: 1rem 0; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .4rem; }
strong { font-weight: 650; }
.meta { color: hsl(var(--muted-foreground)); font-size: .9375rem; }
blockquote { margin: 1.5rem 0; padding: .25rem 1rem; border-left: 3px solid hsl(var(--border)); }
code { padding: .1em .3em; border-radius: 4px; background: hsl(var(--muted)); font-size: .9em; }
pre { overflow-x: auto; padding: 1rem; border-radius: 8px; background: hsl(var(--muted)); line-height: 1.5; }
pre code { padding: 0; background: none; }
img { max-width: 100%; height: auto; }

/* Tabulka na úzkém displeji drží čitelné sloupce a posouvá se vodorovně. */
.tabulka { overflow-x: auto; margin: 1.5rem 0; border: 1px solid hsl(var(--border)); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
th, td { min-width: 9rem; padding: .6rem .8rem; border-bottom: 1px solid hsl(var(--border)); text-align: left; vertical-align: top; }
th { background: hsl(var(--muted)); font-weight: 650; }
tr:last-child td { border-bottom: 0; }

.clanky { padding: 0; list-style: none; }
.clanky li { margin: 0; padding: 1.25rem 0; border-top: 1px solid hsl(var(--border)); }
.clanky h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.clanky p { margin: .25rem 0; }

.cta a { min-height: 44px; display: inline-flex; align-items: center; padding: .5rem 1.25rem; border-radius: 8px; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); font-weight: 600; text-decoration: none; }
.cta a:hover { background: hsl(var(--foreground)); }

footer { margin-top: 3rem; padding: 1rem 0 2rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .875rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding: 0; list-style: none; }
footer li + li { margin-top: 0; }
