/* ─── Homepage-specific styles ───────────────────────────────────── */

.main-feed {
  padding: 22px 0 96px;
}

/* Homepage newsletter gets top padding since it follows the mosaic */
.main-feed ~ .newsletter {
  padding-top: 96px;
}

/* ─── Categories ─────────────────────────────────────────────────── */

.categories {
  padding: 8px 0 56px;
}

.categories-shell {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-panel {
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 0;
  background: transparent;
  transition: transform 220ms ease, opacity 180ms ease;
}

.category-panel:hover {
  transform: translateY(-2px);
}

.category-media {
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16 / 12;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.category-panel:hover .category-media img {
  transform: scale(1.03);
}

.category-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 1.5vw, 1.7rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.category-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.46;
  color: var(--muted);
}

.category-panel .linkline {
  margin-top: 14px;
}

/* ─── FAQ ────────────────────────────────────────────────────────── */

.faq {
  padding: 28px 0 54px;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-intro {
  display: grid;
  gap: 16px;
  align-content: start;
}

.faq-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: transparent;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px 34px;
  max-width: 48rem;
  line-height: 1.58;
  color: var(--muted);
}

/* ─── Homepage Responsive ────────────────────────────────────────── */

@media (max-width: 1180px) {
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .categories-shell {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-feed {
    padding-top: 8px;
  }

  .main-feed ~ .newsletter {
    padding-top: 78px;
  }

  .categories {
    padding: 0 0 44px;
  }

  .categories-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .category-panel {
    gap: 14px;
  }

  .category-panel p {
    font-size: 0.95rem;
  }

  .faq {
    padding: 18px 0 42px;
  }

  .faq-shell {
    gap: 20px;
    padding-top: 18px;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  .faq-title,
  .newsletter-title {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3.1rem);
  }
}
