#graf {
  width: 100%;
  height: 620px;
}

.home-landing-section {
  min-height: auto;
  display: block;
}

.home-landing-hero {
  min-height: clamp(620px, 72vh, 820px);
  display: flex;
  align-items: center;
}

.home-landing-section-compact {
  min-height: auto;
}

.home-landing-inner {
  width: 100%;
}

.home-landing-copy {
  max-width: 46rem;
}

.home-landing-copy h1 {
  max-width: 13ch;
}

.home-landing-demo > .card {
  box-shadow:
    0 26px 80px color-mix(in oklch, var(--color-base-content) 20%, transparent),
    inset 0 1px 0 color-mix(in oklch, var(--color-base-content) 8%, transparent);
}

.home-landing-section-data .grid.xl\:grid-cols-4 {
  align-items: stretch;
}

.home-landing-section-data .card,
#funkcie .card,
#produkt-v-praxi .card,
#about .card {
  border-radius: .75rem;
}

@media (min-width: 1024px) {
  .home-landing-demo {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .home-landing-section,
  .home-landing-hero,
  .home-landing-section-compact {
    min-height: auto;
  }

  .home-landing-copy h1 {
    max-width: none;
  }
}

#demo > .card > .card-body {
  padding: 1.35rem;
  gap: .85rem;
}

#demo .card-title {
  line-height: 1.2;
}

.hero-demo-intro {
  padding: .15rem .25rem .25rem;
}

#heroDemoAutocomplete,
#heroDemoGraph {
  min-height: 520px;
}

#heroDemoAutocomplete .lg\:grid-cols-2,
#heroDemoGraph .lg\:grid-cols-\[300px_1fr\] {
  display: block;
}

#heroDemoAutocomplete .grid.sm\:grid-cols-2,
#heroDemoGraph .grid.lg\:grid-cols-\[300px_1fr\] > .space-y-4:first-child,
#heroDemoGraph .pg-filter-card,
#heroDemoGraph #pg-report {
  display: none !important;
}

#heroDemoAutocomplete .card,
#heroDemoGraph .card {
  box-shadow: none;
}

#heroDemoAutocomplete .card-body {
  padding: .75rem;
}

#heroDemoAutocomplete .space-y-3.bg-base-100 {
  background: var(--color-base-200);
  padding: .9rem;
}

#heroDemoGraph #graf {
  height: 305px;
}

#heroDemoGraph #pg-graph-card > .card-body {
  padding: .55rem;
}

#heroDemoGraph #pg-panel {
  display: none !important;
}

.hero-risk-score {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .55rem;
  border-radius: .85rem;
  background: color-mix(in oklch, var(--color-base-100) 60%, transparent);
}

.hero-risk-ring {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-success);
  color: var(--color-success);
  font-weight: 800;
  font-size: .82rem;
  background: radial-gradient(circle at center, color-mix(in oklch, var(--color-success) 16%, transparent), transparent 62%);
}

.hero-kv,
.hero-stat-chip {
  background: color-mix(in oklch, var(--color-base-100) 70%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-base-300) 70%, transparent);
  border-radius: .65rem;
  padding: .45rem .55rem;
  min-width: 0;
}

.hero-kv span {
  display: block;
  opacity: .48;
  line-height: 1.1;
}

.hero-kv b {
  display: block;
  margin-top: .15rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-stat-chip {
  color: color-mix(in oklch, var(--color-base-content) 80%, transparent);
}

.hero-dataset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  padding-top: .65rem;
  border-top: 1px solid color-mix(in oklch, var(--color-base-300) 70%, transparent);
  overflow: hidden;
}

.hero-dataset-row .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-dataset-row::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.hero-dataset-row .btn {
  grid-column: 2;
  grid-row: 1;
  min-height: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.hero-dataset-row .badge {
  grid-row: 1;
  position: relative;
}

.hero-dataset-row .badge:nth-of-type(1) { grid-column: 1; justify-self: start; margin-left: 0; }
.hero-dataset-row .badge:nth-of-type(2) { grid-column: 1; justify-self: start; margin-left: 3.7rem; }
.hero-dataset-row .badge:nth-of-type(3) { grid-column: 1; justify-self: start; margin-left: 7.35rem; }
.hero-dataset-row .badge:nth-of-type(4) { grid-column: 1; justify-self: start; margin-left: 11.15rem; opacity: .82; }

@media (min-width: 1024px) {
  #heroDemoAutocomplete,
  #heroDemoGraph {
    min-height: 515px;
  }
}

@media (max-width: 640px) {
  .hero-dataset-row .btn {
    margin-left: auto;
  }

  #heroDemoTabs {
    width: 100%;
  }

  #heroDemoTabs .tab {
    flex: 1 1 0;
  }

  #demo,
  #demo .card-body,
  #heroDemoGraph,
  #heroDemoGraph #pg-graph-card {
    min-width: 0;
    max-width: 100%;
  }

  #heroDemoGraph #pg-graph-card > .card-body > .flex:first-child {
    flex-wrap: wrap;
  }

  #heroDemoGraph #pg-graph-card > .card-body > .flex:first-child > .ml-auto {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  #heroDemoGraph #graf {
    height: 285px;
  }

  #heroDemoAutocomplete,
  #heroDemoGraph {
    min-height: 500px;
  }

  #demo > .card > .card-body {
    padding: 1.1rem;
  }
}

@media (max-width: 1023px) {
  #graf {
    height: 68vh;
    min-height: 380px;
  }
}

.pg-zoom-btn {
  width: 2.25rem;
  height: 2.25rem;
}

.pg-depth.active,
.pg-layout.active {
  background: var(--color-primary);
  color: var(--color-primary-content);
}

#pg-graph-card.pg-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
  border-radius: 0;
}

#pg-graph-card.pg-fullscreen #graf {
  height: calc(100dvh - 56px) !important;
}

#pg-search-wrap {
  z-index: 50;
}

#pg-search-dd,
.pg-mini-dd {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--color-base-100, #1f2937);
  color: var(--color-base-content, #dbeafe);
  border: 1px solid var(--color-base-300, rgba(148, 163, 184, .25));
  border-radius: .5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
  max-height: 300px;
  overflow: auto;
}

.pg-dd-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: .45rem .7rem;
  gap: 1px;
  background: var(--color-base-100, #1f2937);
  color: inherit;
  border: 0;
}

.pg-dd-item:hover {
  background: var(--color-base-200, #273244);
}

.pg-dd-head {
  padding: .4rem .7rem .15rem;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .45;
}

.pg-detail-float {
  position: absolute;
  right: 1rem;
  top: 3.4rem;
  z-index: 30;
  width: 250px;
  max-width: 64%;
  background: var(--color-base-100, #1f2937);
  color: var(--color-base-content, #e2e8f0);
  border: 1px solid var(--color-base-300, rgba(148, 163, 184, .3));
  border-radius: .6rem;
  padding: .85rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}

@media (max-width: 640px) {
  .pg-detail-float {
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }
}

.pg-filterbar {
  display: flex;
  align-items: center;
  gap: .5rem 1rem;
  flex-wrap: wrap;
}

.pg-fb-group {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.pg-fb-lbl {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .5;
  white-space: nowrap;
}

.pg-filterbar .range {
  width: 6rem;
}

.pg-filter-card,
.pg-filter-card > .card-body,
.pg-filter-card .join {
  overflow: visible;
}

.pg-edge-key {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid;
  vertical-align: middle;
}

.pg-tl-item {
  display: flex;
  gap: .6rem;
  padding: .35rem 0;
  position: relative;
}

.pg-tl-item:not(:last-child) .pg-tl-line {
  position: absolute;
  left: .56rem;
  top: 1.4rem;
  bottom: 0;
  width: 2px;
  background: rgba(148, 163, 184, .18);
}

.pg-tl-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5rem;
}

.pg-tl-date {
  font-size: .65rem;
  opacity: .45;
  white-space: nowrap;
}

.pg-tl-title {
  font-size: .75rem;
  line-height: 1.3;
  font-weight: 500;
}

.pg-tl-detail {
  font-size: .65rem;
  opacity: .55;
}

#pg-timeline-content,
#pg-people-list,
#pg-related-list {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.pg-ps {
  width: 0;
  min-width: 0;
  padding: 0 !important;
  border-width: 0 !important;
  opacity: 0;
  overflow: hidden;
  transition: width .18s ease, opacity .18s ease;
}

.pg-ps.open {
  width: 10rem;
  padding: 0 .5rem !important;
  border-width: 1px !important;
  opacity: 1;
}

.pg-tl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .5rem;
}

.pg-tl-chip {
  font-size: .6rem;
  padding: .18rem .5rem;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid;
  opacity: .35;
  background: transparent;
  line-height: 1.4;
}

.pg-tl-chip.active {
  opacity: 1;
}

#pg-rep-tabbar {
  width: 100%;
}

#pg-rep-tabbar .tab {
  flex: 1 1 0;
  min-width: 0;
}

.pg-act {
  max-height: 2.1em;
  overflow: hidden;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

.pg-act.pg-act-open {
  max-height: 60em;
  -webkit-mask-image: none;
  mask-image: none;
}
