/* Slovník pojmů: zvýrazněný pojem v textu, bublina s vysvětlením a stránka /slovnik/. Skládá se z komponent webu (karty, filtr, hero rozcestníku); nové je jen podtržení pojmu, bublina a pole hledání.
   Dvě varianty vzhledu pojmu a bubliny podle atributu html[data-pojmy]: „a“ (tečkované podtržení, bílá bublina) a „b“ (limetkové zvýraznění, tmavě zelená bublina). */

/* ---------- pojem v textu (bez JS odkaz, se skriptem tlačítko – stejný vzhled i rozměr) ---------- */
a.pojem, button.pojem { position: relative; display: inline; white-space: nowrap; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-decoration: underline dotted #26532b; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a.pojem { cursor: pointer; }
a.pojem::after, button.pojem::after { content: ""; position: absolute; inset: -9px -2px; }  /* větší plocha pro ťuknutí, bez vlivu na řádek */
a.pojem:hover, button.pojem:hover, button.pojem[aria-expanded="true"] { color: #26532b; text-decoration-style: solid; }
a.pojem:focus-visible, button.pojem:focus-visible, .bublina a:focus-visible, .bublina-krizek:focus-visible { outline: 2px solid #26532b; outline-offset: 2px; border-radius: 2px; }
html[data-pojmy="b"] a.pojem, html[data-pojmy="b"] button.pojem { text-decoration: none; background-color: rgba(163, 188, 0, .28); border-radius: 3px; box-shadow: 0 0 0 2px rgba(163, 188, 0, .28); }
html[data-pojmy="b"] a.pojem:hover, html[data-pojmy="b"] button.pojem:hover, html[data-pojmy="b"] button.pojem[aria-expanded="true"] { background-color: rgba(163, 188, 0, .5); box-shadow: 0 0 0 2px rgba(163, 188, 0, .5); color: inherit; }
.nezlomit { white-space: nowrap; }

/* ---------- bublina ---------- */
.bublina { position: absolute; z-index: 9990; box-sizing: border-box; width: min(380px, calc(100vw - 32px)); padding: 18px 20px 20px; background: #fff; color: inherit; border: 1px solid rgba(38, 83, 43, .22); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease; }
.bublina[hidden] { display: none; }
.bublina.bublina-nad { transform: translateY(-4px); }
.bublina.otevrena { opacity: 1; transform: none; }
.bublina:focus { outline: none; }
.bublina:focus-visible { outline: 2px solid #26532b; outline-offset: 2px; }
.bublina-hlava { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bublina-nazev { margin: 0; padding-top: 10px; font-family: "Dosis_l"; font-weight: 800; text-transform: uppercase; font-size: var(--step-0); line-height: 1.25; color: #26532b; }
.bublina-krizek { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: -4px -10px 0 0; padding: 0; background: none; border: 0; border-radius: 4px; color: #26532b; cursor: pointer; }
.bublina-krizek:hover { background-color: #edf3f9; }
.bublina-text { margin: 0 0 10px; font-size: var(--step-0); line-height: 1.5; }
.bublina-odkaz { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: #26532b; text-decoration: underline; text-underline-offset: 3px; }
.bublina-odkaz:hover { text-decoration-thickness: 2px; }
html[data-pojmy="b"] .bublina { background: #26532b; color: #fff; border-color: #26532b; }
html[data-pojmy="b"] .bublina-nazev, html[data-pojmy="b"] .bublina-odkaz, html[data-pojmy="b"] .bublina-krizek { color: #dbe598; }
html[data-pojmy="b"] .bublina-krizek:hover { background-color: rgba(255, 255, 255, .12); }
html[data-pojmy="b"] .bublina:focus-visible, html[data-pojmy="b"] .bublina a:focus-visible, html[data-pojmy="b"] .bublina-krizek:focus-visible { outline-color: #dbe598; }
@media (max-width: 639px) {
  .bublina.bublina-panel { position: fixed; left: 8px; right: 8px; bottom: 68px; top: auto; width: auto; max-height: calc(100vh - 150px); overflow-y: auto; transform: translateY(12px); }
  .bublina.bublina-panel.otevrena { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .bublina { transition: none; transform: none; } }
@media print { .bublina { display: none !important; } }

/* ---------- stránka Slovník ---------- */
.sl-sekce .brxe-container { align-items: stretch; }
.sl-hledani { display: flex; flex-direction: column; gap: 10px; max-width: 520px; width: 100%; margin: 0 auto; }
.sl-hledani[hidden] { display: none; }
.sl-popisek-pole { font-family: "Dosis_l"; font-weight: 800; text-transform: uppercase; font-size: var(--step-0); color: var(--bricks-color-pegpjf); }
.sl-pole { box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: var(--step-1); color: inherit; background: #fff; border: 1px solid #26532b; border-radius: 4px; }
.sl-pole:focus-visible { outline: 2px solid #26532b; outline-offset: 2px; }
.sl-pocet { min-height: 1.5em; margin: 0; font-size: var(--step-0); }
.sl-abeceda ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sl-abeceda li[hidden] { display: none; }
.sl-abeceda a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 6px 12px; font-family: "Dosis_l"; font-weight: 500; font-size: var(--step-1); line-height: 1.2; color: var(--bricks-color-hhnjhq); text-decoration: none; border: 1px solid var(--bricks-color-hhnjhq); border-radius: 4px; transition: background-color .3s ease, color .3s ease; }
.sl-abeceda a:hover { background-color: #26532b; color: #fff; }
.sl-abeceda a:focus-visible { outline: 2px solid #26532b; outline-offset: 2px; }
.sl-seznam { display: flex; flex-direction: column; row-gap: 3rem; }
.sl-pismeno[hidden], .sl-mrizka > li[hidden] { display: none; }
.sl-pismeno-nadpis { margin: 0 0 1.25rem; font-size: var(--step-3); color: #26532b; scroll-margin-top: 130px; }
.sl-mrizka { transition: none !important; }
.sl-karta { scroll-margin-top: 130px; }
.sl-karta p { flex: none; }
.sl-kratce { font-weight: 600; }
.sl-karta.sl-cil { outline: 3px solid #a3bc00; outline-offset: 3px; }
.sl-souvisi, .sl-sluzba { font-size: var(--step-0); }
.sl-popisek { font-family: "Dosis_l"; font-weight: 800; text-transform: uppercase; color: var(--bricks-color-pegpjf); }
.sl-souvisi a, .sl-sluzba a, .sl-zdroje a, .sl-nic a { color: #26532b; text-decoration: underline; text-underline-offset: 3px; }
.sl-sluzba { margin-top: auto; }
.sl-sluzba a { font-weight: 600; text-decoration: none; }
.sl-sluzba a:hover { text-decoration: underline; }
.sl-zdroje { font-size: var(--step-0); }
.sl-zdroje summary { cursor: pointer; color: #26532b; }
.sl-zdroje ul { margin: 8px 0 0; padding-left: 1.2em; }
.sl-nic, .sl-upozorneni { margin: 0; text-align: center; }
.sl-nic[hidden] { display: none; }
.sl-upozorneni { font-size: var(--step-0); }
@media (max-width: 478px) { .sl-abeceda ul { justify-content: flex-start; gap: 6px; } .sl-abeceda a { min-width: 44px; padding: 6px 8px; } }
