.nowenny-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.post-type-archive-nowenna .inside-article .post-image img,
.tax-nowenna_kategoria .inside-article .post-image img {
  width: 100%;
  height: auto;
}

.nowenny-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nowenny-card:hover,
.nowenny-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.nowenny-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.nowenny-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.nowenny-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nowenny-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.1rem;
  flex: 1 1 auto;
}

.nowenny-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.nowenny-card__meta {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.78;
}

.nowenny-card__excerpt {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  opacity: 0.88;
}

.nowenny-card--nearest .nowenny-card__body {
  padding: 1rem;
}

.nowenny-single-meta {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.035));
}

.nowenny-single-meta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem 1rem;
}

.nowenny-single-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nowenny-single-meta__item strong,
.nowenny-single-meta__item span {
  display: block;
}

.nowenny-single-meta__cta {
  margin: 1rem 0 0;
}

.nowenny-apps {
  margin-top: 1rem;
}

.nowenny-apps__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.nowenny-apps__buttons,
.nowenny-widget-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.nowenny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.nowenny-button--secondary {
  background: rgba(0, 0, 0, 0.03);
}

.nowenny-widget-card {
  font-size: var(--nowenny-widget-text-scale, 80%);
  line-height: 1.55;
}

.nowenny-widget-card::after {
  content: "";
  display: table;
  clear: both;
}

.nowenny-widget-card__thumb-link {
  float: left;
  width: 150px;
  margin: 0 1rem 0.75rem 0;
  text-decoration: none;
}

.nowenny-widget-card__thumb {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
}

.nowenny-widget-card__content {
  min-width: 0;
}

.nowenny-widget-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.1em;
  line-height: 1.3;
}

.nowenny-widget-card__title a {
  text-decoration: none;
}

.nowenny-widget-card__excerpt {
  margin: 0 0 0.8rem;
}

.widget .nowenny-card,
.wp-block-widget-area .nowenny-card {
  box-shadow: none;
}

@media (max-width: 1024px) {
  .nowenny-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .nowenny-grid {
    grid-template-columns: 1fr;
  }

  .nowenny-widget-card__thumb-link {
    float: none;
    width: 150px;
    max-width: 100%;
    margin: 0 0 0.75rem;
  }

  .nowenny-widget-card__thumb {
    width: 150px;
    height: 150px;
    max-width: 100%;
  }
}
