/* Stories carousel + Recent news list + detail pages */

.stories-section,
.news-section {
  margin: 0;
}

.news-section {
  padding-top: 0.25rem;
}

.stories-head,
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 1rem;
}

.stories-head h2,
.news-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.stories-head a,
.news-head a {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}

.stories-head a:hover,
.news-head a:hover {
  color: #0f172a;
}

@media (min-width: 1024px) {
  .stories-head a,
  .news-head a { font-size: 0.875rem; }
}

/* Horizontal Stories scroller */
.stories-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin: 0 -0.15rem;
  padding-left: 0.15rem;
  padding-right: 12%;
  scrollbar-width: none;
}

.stories-track::-webkit-scrollbar { display: none; }

.story-card {
  flex: 0 0 min(78%, 300px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (min-width: 768px) {
  .story-card { flex-basis: min(42%, 340px); }
}

@media (min-width: 1024px) {
  .story-card { flex-basis: min(34%, 360px); }
  .stories-track { padding-right: 8%; gap: 1.35rem; }
}

.story-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #e2e8f0;
}

.story-card-title {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.story-card-date {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Recent news list */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.news-item:hover .news-item-title {
  color: #4f46e5;
}

.news-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

@media (min-width: 640px) {
  .news-thumb { width: 84px; height: 84px; border-radius: 14px; }
  .news-list { gap: 1.5rem; }
}

.news-item-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.news-item-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}

@media (min-width: 640px) {
  .news-item-title { font-size: 1.08rem; }
}

.news-item-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.news-item-meta span + span::before {
  content: " · ";
  color: #94a3b8;
}

/* Detail pages */
.sn-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.sn-date {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.sn-prose {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.sn-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sn-list li { margin-bottom: 0.45rem; }

.sn-list-grid {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.sn-list-grid .story-card {
  flex: none;
  max-width: 100%;
}

.sn-list-grid .news-item {
  padding: 0.25rem 0;
}
