/* Unlayered on purpose: overrides the theme's layered `.content ul` / `.content a` rules. */
.kc-cjenik {
  --kc-primary: var(--color-primary, #292f2f);
  --kc-foreground: var(--color-foreground, #1f2222);
  --kc-border: var(--color-green-300, #d0d5d5);
  --kc-muted: var(--color-green-600, #5a6060);
  margin-top: 2.5rem;
}

.kc-cjenik ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kc-cjenik a::before {
  display: none;
}

.kc-cjenik .kc-locations > li + li {
  margin-top: 0;
}

.kc-cjenik .kc-location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--kc-border);
}

.kc-cjenik .kc-location:first-child {
  border-top: 1px solid var(--kc-border);
}

.kc-cjenik .kc-location__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

.kc-cjenik .kc-location__meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--kc-muted);
}

.kc-cjenik .kc-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kc-cjenik a.kc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8125rem 1.25rem;
  border-radius: 9999px;
  background: var(--kc-primary);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.kc-cjenik a.kc-btn:hover,
.kc-cjenik a.kc-btn:focus-visible {
  background: var(--kc-foreground);
  color: #fff;
}

.kc-cjenik .kc-btn__icon {
  height: 0.875rem;
  width: auto;
  fill: currentColor;
}

.kc-cjenik .kc-archive {
  grid-column: 1 / -1;
  font-size: 0.875rem;
}

.kc-cjenik .kc-archive summary {
  cursor: pointer;
  color: var(--kc-muted);
}

.kc-cjenik .kc-archive__list {
  margin-top: 0.75rem;
}

.kc-cjenik .kc-archive__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
  border-top: 1px solid var(--kc-border);
}

.kc-cjenik .kc-archive__links {
  display: inline-flex;
  gap: 1rem;
}

.kc-cjenik .kc-archive__links a {
  color: var(--kc-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .kc-cjenik .kc-location {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .kc-cjenik a.kc-btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}
