/* ===== Blog shared styles — linked by blog/index.html and all blog articles ===== */

/* Article hero */
.art-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border-1); margin-bottom: 0; }
.art-hero .crumbs { margin-bottom: 20px; }
.art-hero__meta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 13px; color: var(--fg-3); margin-bottom: 18px; }
.art-hero__meta time { font-weight: 600; }
.art-hero__meta .read { display: flex; align-items: center; gap: 5px; }
.art-tag { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--zp-raspberry-50); color: var(--zp-raspberry-600); text-decoration: none; transition: background .15s; }
.art-tag:hover { background: var(--zp-raspberry-100); }
.art-hero h1 { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 900; }
.art-hero .lead { font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 700px; }

/* Article layout: body + sidebar */
.art-wrap { display: grid; grid-template-columns: 1fr; gap: 48px; padding: 48px 0 72px; }
@media (min-width: 1060px) { .art-wrap { grid-template-columns: 1fr 320px; gap: 64px; align-items: start; } }

/* Article body */
.art-body { min-width: 0; }
.art-body h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 48px 0 16px; line-height: 1.2; letter-spacing: -0.015em; }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 20px; margin: 32px 0 12px; }
.art-body p { font-size: 17px; line-height: 1.75; color: var(--fg-1); margin: 0 0 20px; }
.art-body ul, .art-body ol { padding-left: 22px; margin: 0 0 20px; }
.art-body li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.art-body strong { color: var(--fg-1); }
.art-body a { color: var(--zp-raspberry-500); text-decoration: underline; text-underline-offset: 3px; }
.art-body a:hover { color: var(--zp-raspberry-700); }
.art-body .art-callout { background: var(--zp-raspberry-50); border: 1px solid var(--zp-raspberry-200); border-radius: var(--radius-md); padding: 18px 22px; margin: 28px 0; }
.art-body .art-callout p { margin: 0; font-size: 16px; color: var(--zp-raspberry-800); }

/* In-article CTA */
.art-cta { background: linear-gradient(135deg, var(--zp-raspberry-500), var(--zp-raspberry-700)); border-radius: var(--radius-xl); padding: 36px 40px; color: #fff; margin: 48px 0; }
.art-cta h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.art-cta p { color: rgba(255,255,255,0.85); margin: 0 0 20px; font-size: 16px; }

/* FAQ section */
.art-faq { margin-top: 48px; }
.art-faq h2 { font-size: 26px; margin: 0 0 24px; }
.faq-item { border-bottom: 1px solid var(--border-1); padding: 0; }
.faq-item summary { list-style: none; padding: 20px 0; font-size: 17px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--zp-raspberry-500); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--fg-2); }

/* Sidebar */
.art-sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1060px) { .art-sidebar { position: sticky; top: 88px; } }
.sidebar-box { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-box h4 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.sidebar-cta { background: linear-gradient(135deg, var(--zp-raspberry-500), var(--zp-raspberry-700)); color: #fff; }
.sidebar-cta h4 { color: rgba(255,255,255,0.75); }
.sidebar-cta p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 16px; line-height: 1.55; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.related-list a { font-size: 14px; font-weight: 600; color: var(--fg-1); text-decoration: none; line-height: 1.4; display: block; }
.related-list a:hover { color: var(--zp-raspberry-500); }
.related-list .meta { font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* Blog listing */
.blog-hero { padding: 48px 0 40px; }
.blog-hero h1 { font-size: clamp(34px, 4.4vw, 56px); margin: 12px 0 16px; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.blog-card__img { aspect-ratio: 16/9; background: var(--zp-raspberry-50); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease-out); }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }

/* Article cover image */
.art-cover { padding: 0 0 0; }
.art-cover__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: var(--radius-lg); max-height: 420px; }
.blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.blog-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; flex: 1; }
.blog-card .blog-card__desc { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0 0 16px; }
.blog-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-3); margin-top: auto; }
.blog-card__footer .read-more { color: var(--zp-raspberry-500); font-weight: 700; }
