/* Mykin – Latest section restore override (safe, CSS-only). Loaded after styles.css. */

.latest {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-block: 24px;
  padding-inline: 16px !important;
}

@media (min-width: 768px) {
  .latest {
    padding-block: 40px;
    padding-inline: 24px !important;
  }
}

@media (min-width: 1200px) {
  .latest {
    padding-inline: 32px !important;
  }
}

.latest__title {
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 24px;
}

.latest__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3, 24px);
  max-width: 1056px;
  margin-left: auto;
  margin-right: auto;
}

.latest .article-card:nth-child(1) { animation-delay: 0.1s; }
.latest .article-card:nth-child(2) { animation-delay: 0.15s; }
.latest .article-card:nth-child(3) { animation-delay: 0.2s; }
.latest .article-card:nth-child(4) { animation-delay: 0.25s; }
.latest .article-card:nth-child(5) { animation-delay: 0.3s; }
.latest .article-card:nth-child(6) { animation-delay: 0.35s; }

.latest__more {
  margin-top: 24px;
  text-align: center;
}

/* .latest__more .btn styles moved to mykin-system.css */

@media (min-width: 768px) {
  .latest__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest__more {
    margin-top: 32px;
  }
}

@media (min-width: 1024px) {
  .latest__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4, 32px);
  }
}

/* === Latest: mobile gutter sync to Stories/Mushrooms === */
@media (max-width: 767.98px){
  /* sekcja trzyma gutter identyczny jak Stories/Mushrooms */
  .latest{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* lista nie dodaje dodatkowego paddingu */
  .latest__list{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }
  /* karty nie rozszerzają się poza gutter */
  .latest .article-card{
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Opcjonalnie: przy bardzo małych ekranach można zejść do 10px
@media (max-width: 360px){
  .latest{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
*/

/* === Latest: meta spacing under image (no horizontal indentation changes) === */
.latest .article-card__meta{
  margin-top: 12px;    /* mobile pionowy oddech nad kategorią+datą */
  padding-left: 0;     /* nie zmieniaj wcięć poziomych */
  padding-right: 0;
}
@media (min-width: 768px){
  .latest .article-card__meta{ margin-top: 16px; }
}

/* Button block spacing – powrót separacji jak w projekcie */
.latest__more{
  margin-top: 24px;
  text-align: center;
}
@media (min-width:768px){
  .latest__more{ margin-top: 32px; }
}

/* Bottom spacing consistent with other CTAs */
.latest{
  padding-bottom: var(--space-8, 64px);
}
@media (min-width:768px){
  .latest{
    padding-bottom: var(--space-8, 64px);
  }
}
