/* nahledy: feed mockupu jako karty "okna prohlizece" (signature: lista s teckami a cestou stranky),
   prohlizec v appce = lista + iframe pres zbytek obrazovky */

/* ---------- projekty ---------- */
.nh-projekty { flex-wrap: wrap; margin-bottom: 8px; }
.nh-projekty .zalozka { display: inline-flex; align-items: center; gap: 6px; }
.nh-tecka {
  width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block;
  background: hsl(var(--h, 260) 55% 52%);
}

/* ---------- feed ---------- */
.nh-den { margin-top: 8px; }
.nh-den-nadpis {
  position: sticky; top: var(--bezpeci-nahore, 0); z-index: 2;
  margin: 0 -4px 10px; padding: 10px 4px 8px;
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.nh-mrizka { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: 18px; }
.nh-karta {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; scroll-margin-top: 56px;
  border-radius: var(--r-l); background: var(--plocha); border: 1px solid var(--cara);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.nh-karta:hover { transform: translateY(-2px); box-shadow: var(--stin-2); border-color: var(--cara-2); }
.nh-karta:target { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-mekky); }

.nh-karta-nahled {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--bg-2); border-bottom: 1px solid var(--cara); color: inherit; text-decoration: none;
}
.nh-okno-lista {
  display: flex; align-items: center; gap: 5px; flex: none; height: 26px; padding: 0 10px;
  background: var(--plocha-2, var(--plocha)); border-bottom: 1px solid var(--cara);
}
.nh-okno-lista i { width: 7px; height: 7px; border-radius: 50%; background: var(--cara-2); }
.nh-okno-lista i:first-child { background: hsl(var(--h, 260) 55% 52%); }
.nh-okno-lista .mono {
  margin-left: 8px; font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nh-karta-nahled img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; display: block; }
.nh-karta-nahled:hover img { opacity: .94; }
.nh-zastupce {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, hsl(var(--h, 260) 60% 55% / .22), transparent 60%),
    linear-gradient(160deg, hsl(var(--h, 260) 40% 50% / .10), transparent 70%);
}
.nh-zastupce-nazev {
  font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nh-zastupce-kostra { display: grid; gap: 7px; }
.nh-zastupce-kostra i { height: 8px; border-radius: 4px; background: hsl(var(--h, 260) 30% 50% / .18); }
.nh-zastupce-kostra i:nth-child(1) { width: 78%; }
.nh-zastupce-kostra i:nth-child(2) { width: 92%; }
.nh-zastupce-kostra i:nth-child(3) { width: 55%; }
.nh-stranek {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--bg); font-size: 12px; font-weight: 600;
}

.nh-karta-telo { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px 16px; min-width: 0; }
.nh-karta-hlava { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nh-karta-hlava h3 { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; min-width: 0; }
.nh-karta-hlava h3 a { color: inherit; text-decoration: none; }
.nh-karta-hlava h3 a:hover { text-decoration: underline; }
.nh-karta-hlava .ikonka { margin: -6px -6px 0 0; }
.nh-karta .radek-meta > * { white-space: nowrap; }
.nh-projekt { display: inline-flex; align-items: center; gap: 6px; }
.nh-popis {
  margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- prohlizec ---------- */
.nh-prohlizec {
  position: fixed; z-index: 5; left: 0; right: 0; top: 0;
  bottom: calc(var(--tabbar-v) + var(--bezpeci-dole));
  display: flex; flex-direction: column; background: var(--bg);
}
@media (min-width: 860px) { .nh-prohlizec { left: var(--bok); bottom: 0; } }
.nh-lista {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: calc(8px + var(--bezpeci-nahore, 0px)) 10px 8px;
  background: var(--plocha); border-bottom: 1px solid var(--cara);
}
.nh-lista-titulek { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nh-lista-titulek strong { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-lista-titulek .radek-meta { font-size: 12px; flex-wrap: nowrap; overflow: hidden; }
.nh-lista-titulek .radek-meta > * { white-space: nowrap; }
.nh-vyber-stranky select {
  max-width: 34vw; min-height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--cara); background: var(--bg); color: inherit; font: inherit; font-size: 14px;
}
.nh-sirka { display: flex; gap: 2px; padding: 2px; border-radius: 12px; background: var(--bg-2); }
.nh-sirka .tlacitko { gap: 6px; }
.nh-sirka .tlacitko.je-aktivni { background: var(--plocha); color: var(--ink); box-shadow: var(--stin-1); }
.nh-sirka .ik { width: 16px; height: 16px; }
@media (max-width: 859px) { .nh-sirka { display: none; } }

.nh-info {
  flex: none; max-height: 40vh; overflow: auto; padding: 12px 16px;
  background: var(--plocha); border-bottom: 1px solid var(--cara); font-size: 14px; line-height: 1.5;
}
.nh-info p { margin: 0 0 6px; max-width: 80ch; color: var(--ink-2); }
.nh-vyprselo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; flex-wrap: wrap;
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, #f2b630 26%, var(--plocha)); border-bottom: 1px solid color-mix(in srgb, #f2b630 50%, var(--cara));
}
.nh-vyprselo[hidden], .nh-info[hidden] { display: none; }
.nh-vyprselo .tlacitko { gap: 6px; }

.nh-ramec-obal { flex: 1; min-height: 0; display: flex; justify-content: center; background: var(--bg-2); }
.nh-ramec { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.nh-prohlizec--telefon .nh-ramec-obal { padding: 18px 0; overflow: auto; }
.nh-prohlizec--telefon .nh-ramec {
  flex: none; width: 390px; height: min(844px, 100%); border-radius: 28px;
  box-shadow: 0 0 0 10px var(--ink), var(--stin-2);
}
.nh-prohlizec--vyprselo .nh-ramec { opacity: .45; pointer-events: none; }
