/* Story index (listing) page styles (extracted from server/app.py render_story_index_page inline <style>) */
:root { --container: min(1280px, calc(100% - 48px)); }
.idx-hero { margin-top: 0; padding: 56px 40px 28px; width: 100%; box-sizing: border-box; }
.idx-hero h1 { font-family: "Bebas Neue", sans-serif; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .92; margin: 12px 0 20px; background: linear-gradient(140deg, #fff 10%, rgba(255, 190, 80, 0.92) 58%, rgba(255, 100, 0, 0.88) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.idx-hero .intro { max-width: 760px; color: #b8c4d4; font-size: 1.05rem; line-height: 1.8; margin: 0 0 24px; }
.idx-stat-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.idx-stat-pills span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #b8c4d4; font-size: .88rem; }
.idx-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 40px 14px; }
.idx-filter-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; backdrop-filter: blur(20px) saturate(160%); background: rgba(10, 14, 26, 0.5); border: 1px solid rgba(255, 255, 255, .14); color: #f8f9fc; font-family: "Space Grotesk", sans-serif; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.idx-filter-tab span { color: #b8c4d4; font-size: .82rem; }
.idx-filter-tab.active { background: linear-gradient(135deg, #ff6a00, #ff3b30); border-color: transparent; color: #fff; }
.idx-filter-tab.active span { color: rgba(255, 255, 255, .75); }
.idx-archive-status { color: #b8c4d4; font-size: .92rem; padding: 0 40px 10px; }
.idx-story-grid { display: grid; gap: 16px; margin-top: 0; padding: 4px 40px 60px; }
.story-card { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; padding: 18px; backdrop-filter: blur(40px) saturate(180%); background: rgba(10, 14, 26, 0.38); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 28px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); transition: transform .25s, box-shadow .25s; text-decoration: none; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.story-card:hover .story-card-media img { transform: scale(1.04); }
.story-card-media { overflow: hidden; border-radius: 18px; }
.story-card-media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: 18px; transition: transform .35s; display: block; }
.story-card-copy { display: grid; gap: 12px; align-content: start; padding: 6px 4px; }
.story-card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.topic-label { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(173, 255, 47, .14); color: #adff2f; font-weight: 700; font-size: .8rem; }
.category-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(255, 107, 0, .14); color: #ff6a00; font-weight: 700; font-size: .8rem; }
.story-card-meta span { color: #b8c4d4; }
.story-card h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; color: #f8f9fc; }
.story-card h2 a { color: inherit; text-decoration: none; }
.story-card p { margin: 0; color: #b8c4d4; line-height: 1.8; font-size: .95rem; }
.story-card-link { color: #adff2f; font-weight: 700; text-decoration: none; font-size: .9rem; }
.idx-footer { margin-top: 8px; padding: 24px 40px 40px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.idx-footer-brand { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .08em; color: #f8f9fc; text-decoration: none; }
.idx-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.idx-footer-links a { color: #b8c4d4; text-decoration: none; font-size: .92rem; transition: color .2s; }
.idx-footer-links a:hover { color: #f8f9fc; }
.idx-search-wrap { padding: 12px 40px 4px; }
.idx-search { width: 100%; padding: 10px 18px; border-radius: 999px; background: rgba(10, 14, 26, 0.55); border: 1px solid rgba(255, 255, 255, .14); color: #f8f9fc; font-family: "Space Grotesk", sans-serif; font-size: .9rem; outline: none; box-sizing: border-box; transition: border-color .2s; }
.idx-search::placeholder { color: #6b7894; }
.idx-search:focus { border-color: rgba(255, 106, 0, .5); box-shadow: 0 0 0 3px rgba(255, 106, 0, .1); }
.idx-load-more { text-align: center; padding: 0 40px 32px; }
.idx-load-more-btn { padding: 12px 36px; border-radius: 999px; background: rgba(255, 106, 0, .12); border: 1px solid rgba(255, 106, 0, .35); color: #ff6a00; font-family: "Space Grotesk", sans-serif; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.idx-load-more-btn:hover { background: rgba(255, 106, 0, .22); border-color: rgba(255, 106, 0, .6); }
@media (max-width: 800px) { .story-card { grid-template-columns: 1fr; } .story-card-media img { min-height: 180px; } }
/* Mobile: pull back the 40px horizontal padding that was eating most of the
   viewport on narrow screens (left story cards looking cramped and narrow). */
@media (max-width: 640px) {
  .idx-hero { padding: 40px 16px 20px; }
  .idx-filter-bar,
  .idx-archive-status,
  .idx-story-grid,
  .idx-search-wrap,
  .idx-load-more,
  .idx-footer { padding-left: 14px; padding-right: 14px; }
  .story-card { padding: 14px; border-radius: 22px; gap: 14px; }
  .story-card-copy { padding: 2px; }
  .idx-filter-bar { gap: 8px; padding-bottom: 10px; }
  .idx-filter-tab { padding: 0 12px; font-size: .85rem; min-height: 36px; }
}
.ad-unit-wrap { margin: 0 24px 24px; min-height: 90px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.ad-unit-wrap ins { width: 100%; }
