/* =========================================================
   아이언스토리 (story.php) — page.css 와 함께 로드
   ========================================================= */
.story-sec { padding-top: 44px; padding-bottom: 64px; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }

.story-card__thumb {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
    background: #f4f6f9; border: 1px solid #eef1f4;
}
.story-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card__thumb--empty img { width: 46%; height: auto; max-width: 132px; object-fit: contain; opacity: .5; }

.story-card__body { padding: 14px 2px 0; }
.story-card__title { margin: 10px 0 14px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.story-card__title a {
    color: #191f28; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.story-card__title a:hover { color: var(--brand); }
.story-card__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #b0b8c1; }
.story-card__views { display: inline-flex; align-items: center; gap: 4px; }
.story-card__views svg { width: 15px; height: 15px; }

@media (max-width: 1024px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- 아이언스토리 상세 (story-detail.php) ---------- */
.story-detail-sec { max-width: 820px; padding-top: 44px; padding-bottom: 80px; }
.story-detail__title { margin: 14px 0 12px; font-size: 28px; font-weight: 700; line-height: 1.4; color: #191f28; }
.story-detail__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #9aa5b1; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #eef1f4; }
.story-detail__views { display: inline-flex; align-items: center; gap: 4px; }
.story-detail__views svg { width: 15px; height: 15px; }
.story-detail__cover { width: 100%; border-radius: 12px; margin-bottom: 28px; display: block; }

.story-detail__body { font-size: 16px; line-height: 1.85; color: #333c47; }
.story-detail__body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: #191f28; }
.story-detail__body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: #191f28; }
.story-detail__body p { margin: 0 0 16px; }
.story-detail__body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.story-detail__body a { color: var(--brand); text-decoration: underline; }
.story-detail__body ul, .story-detail__body ol { margin: 0 0 16px; padding-left: 22px; }
.story-detail__body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid #dbe2ea; color: #6b7280; }

.story-detail__back { display: inline-block; margin-top: 40px; font-size: 14px; font-weight: 600; color: #6b7280; }
.story-detail__back:hover { color: var(--brand); }
