
/* Stories Explore page */

.stories-explore-page {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: 28px 18px 48px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  color: var(--stories-text, #172033);
}

.stories-explore-header {
  margin-bottom: 32px;
}

.stories-explore-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stories-explore-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.stories-explore-description {
  max-width: 600px;
  margin: 0;
  color: var(--stories-muted, #64748b);
  font-size: 16px;
  line-height: 1.7;
}

.stories-explore-section-heading {
  margin-bottom: 18px;
}

.stories-explore-section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

.stories-explore-section-heading p {
  margin: 0;
  color: var(--stories-muted, #64748b);
  font-size: 14px;
  line-height: 1.6;
}


/* Category cards: clean horizontal layout */

.stories-explore-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.stories-explore-category-card {
  display: flex;
  position: relative;
  min-width: 0;
  min-height: 76px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: var(--stories-card-bg, #ffffff);
  color: var(--stories-text, #172033);
  text-decoration: none;
  box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.stories-explore-category-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 5px 14px rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.stories-explore-category-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.stories-explore-category-name {
  min-width: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}


.stories-explore-category-count {
  display: flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5eaf1;
  border-radius: 50%;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}


.stories-explore-category-arrow {
  display: none;
}

@media (min-width: 560px) {
  .stories-explore-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 850px) {
  .stories-explore-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stories-explore-category-card {
    transition: none;
  }

  .stories-explore-category-card:hover {
    transform: none;
  }
}

/* Popular topics */

.stories-explore-topics {
  margin-top: 38px;
}

.stories-explore-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stories-explore-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: var(--stories-card-bg, #fff);
  color: var(--stories-text, #172033);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.stories-explore-topic span {
  color: var(--stories-muted, #64748b);
  font-size: 11px;
}

.stories-explore-topic:hover,
.stories-explore-topic:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
}


/* Discover stories */

.stories-explore-discover {
  margin-top: 42px;
}

.stories-explore-discover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.stories-explore-discover-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: var(--stories-card-bg, #fff);
}

.stories-explore-discover-image-link {
  display: block;
  overflow: hidden;
  background: #f1f5f9;
}

.stories-explore-discover-image,
.stories-explore-discover-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stories-explore-discover-placeholder {
  background: linear-gradient(135deg, #eff6ff, #e2e8f0);
}

.stories-explore-discover-body {
  padding: 15px;
}

.stories-explore-discover-category {
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.stories-explore-discover-title {
  margin: 8px 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.stories-explore-discover-title a {
  color: var(--stories-text, #172033);
  text-decoration: none;
}

.stories-explore-discover-title a:hover,
.stories-explore-discover-title a:focus-visible {
  color: #2563eb;
  text-decoration: underline;
}

.stories-explore-discover-excerpt {
  color: var(--stories-muted, #64748b);
  font-size: 14px;
  line-height: 1.65;
}

.stories-explore-discover-date {
  display: block;
  margin-top: 12px;
  color: var(--stories-muted, #64748b);
  font-size: 12px;
}

@media (min-width: 560px) {
  .stories-explore-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .stories-explore-discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
