.article-header-fixed { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.article-header-fixed h1 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.share-btn-small { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; font-size: 18px; }
.share-btn-small:hover { color: var(--blue); }

/* ── BLOG LISTING ── */
.blog-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,5vw,64px) 24px clamp(56px,7vw,90px); }

.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.fbtn { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1.5px solid var(--line); padding: 9px 18px; border-radius: var(--r-pill);
  cursor: pointer; transition: all 0.2s; }
.fbtn:hover { border-color: var(--blue); color: var(--blue); }
.fbtn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
  background: var(--blue-mist); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 44px; }
.featured-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; background: var(--blue-pale); }
.featured-body { padding: clamp(24px,3vw,40px); }
.featured-body .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--blue); background: var(--blue-pale); padding: 5px 12px;
  border-radius: var(--r-pill); margin-bottom: 14px; }
.featured-body h2 { font-family: var(--font-display); font-size: clamp(22px,2.6vw,32px); font-weight: 600;
  line-height: 1.2; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.featured-body p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; flex-wrap: wrap; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--blue-mid); }
.post-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--blue-pale); }
.post-card-emoji { width: 100%; aspect-ratio: 16/10; display: grid; place-items: center; font-size: 48px;
  background: linear-gradient(135deg, var(--blue-pale), #fff); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px; }
.post-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3;
  color: var(--ink); margin-bottom: 8px; }
.post-card p { font-size: 14px; color: var(--ink-faint); line-height: 1.6; flex: 1; }
.post-card .post-meta { margin: 14px 0 0; font-size: 12px; }

.blog-empty { display: none; text-align: center; padding: 60px 24px; color: var(--ink-faint); }

/* Share */
.share-wrap { position: relative; display: inline-block; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line);
  color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 13px; padding: 8px 14px;
  border-radius: var(--r-pill); cursor: pointer; transition: all 0.2s; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 20; min-width: 170px; }
.share-menu.open { display: flex; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); text-decoration: none; background: none; border: none; cursor: pointer; width: 100%; text-align: left; font-family: var(--font-body); }
.share-menu a:hover, .share-menu button:hover { background: var(--blue-pale); color: var(--blue); }

.toast { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; font-size: 14px; padding: 11px 20px; border-radius: var(--r-pill);
  pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 1100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ARTICLE (post) ── */
.article { max-width: 760px; margin: 0 auto; padding: clamp(36px,5vw,56px) 24px clamp(56px,7vw,90px); }
.article .crumb { margin-bottom: 24px; }
.article-head { margin-bottom: 28px; }
.article .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue); background: var(--blue-pale); padding: 5px 13px; border-radius: var(--r-pill); margin-bottom: 16px; }
.article h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px; }
.article-cover { width: 100%; border-radius: var(--r-md); margin: 8px 0 32px; box-shadow: var(--sh-sm); background: var(--blue-pale); }
.article-body { font-size: 17px; color: var(--ink-soft); line-height: 1.85; }
.article-body p { margin-bottom: 22px; }
.article-figs { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.article-figs img { width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.article-figs figcaption { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 10px; font-style: italic; }

.lang-pills { display: flex; gap: 8px; margin: 18px 0 0; }
.lang-pill { padding: 7px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--blue); background: #fff;
  color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.lang-pill.active { background: var(--blue); color: #fff; }

.article-foot { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.related { background: var(--paper); border-top: 1px solid var(--line); }
.related .wrap { padding-top: 56px; padding-bottom: 64px; }
.related h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

#a-loading, #a-notfound { text-align: center; padding: 80px 24px; color: var(--ink-faint); }
#a-notfound { display: none; }
#a-notfound h2 { font-family: var(--font-display); color: var(--ink); margin: 12px 0 6px; }

.post-card { position: relative; }
.card-share { position: absolute; top: 12px; right: 12px; z-index: 10; }
.share-btn-card { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  background: rgba(255,255,255,0.95); border: none; border-radius: 50%; cursor: pointer; font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.2s; }
.share-btn-card:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: scale(1.05); }
.share-menu-card { position: absolute; top: 100%; right: 0; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md);
  border: 1px solid var(--line); padding: 6px; display: none; flex-direction: column; gap: 2px; margin-top: 4px; min-width: 150px; z-index: 20; }
.share-menu-card.open { display: flex; }
.share-menu-card button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: none;
  border-radius: var(--r-sm); background: none; cursor: pointer; font-family: var(--font-body); font-size: 13px;
  color: var(--ink); text-align: left; width: 100%; transition: 0.2s; }
.share-menu-card button:hover { background: var(--blue-pale); color: var(--blue); }

@media (max-width: 940px) {
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
}
