*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #111827; line-height: 1.75; margin: 0; padding: 0; background: #ffffff; -webkit-font-smoothing: antialiased; }
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid #e5e7eb; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 0 24px; position: sticky; top: 0; z-index: 50; }
.site-header-inner { max-width: 1152px; margin: 0 auto; height: 80px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 2px; text-decoration: none; }
.site-logo img { width: 60px; height: 60px; object-fit: contain; }
.site-logo span { font-weight: 600; font-size: 25px; color: #111827; }
.site-logo:hover { text-decoration: none; }
.header-nav { display: flex; align-items: center; gap: 8px; }
#nav-user-area { display: flex; align-items: center; gap: 8px; }
.nav-link { color: #374151; font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 12px; border-radius: 6px; transition: background 0.15s; }
.nav-link:hover { background: #f3f4f6; color: #111827; text-decoration: none; }
.nav-link.nav-active { background: #f3f4f6; color: #111827; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; background: #4f46e5; color: #fff !important; font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.nav-btn:hover { background: #4338ca; text-decoration: none; }
.page-wrapper { max-width: 672px; margin: 0 auto; padding: 48px 16px 80px; }
.breadcrumb { margin-bottom: 16px; }
.breadcrumb a { font-size: 12px; color: #9ca3af; text-decoration: none; }
.breadcrumb a:hover { color: #374151; text-decoration: none; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9ca3af; margin-bottom: 16px; flex-wrap: wrap; }
h1.article-title { font-size: clamp(26px, 5vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #111827; margin: 0 0 16px; }
.article-description { font-size: 18px; color: #6b7280; line-height: 1.6; margin: 0 0 8px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #111827; margin: 40px 0 16px; padding-top: 8px; scroll-margin-top: 96px; }
.prose h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 32px 0 12px; }
.prose p { font-size: 16px; color: #374151; margin: 0 0 20px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 28px; }
.prose li { font-size: 16px; color: #374151; margin-bottom: 8px; line-height: 1.65; }
.prose strong { font-weight: 600; color: #111827; }
.prose em { font-style: italic; }
.prose code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 14px; font-family: 'SF Mono', Monaco, monospace; color: #4f46e5; }
.prose a { color: #4f46e5; }
.prose blockquote { border-left: 4px solid #4f46e5; padding: 12px 20px; margin: 24px 0; background: #eef2ff; border-radius: 0 8px 8px 0; }
.prose blockquote p { margin: 0; color: #374151; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; display: block; }
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 40px 0; }
.emotion-row { display: flex; justify-content: center; align-items: flex-end; gap: 32px; margin: 40px 0; padding: 32px; background: #f9fafb; border-radius: 12px; }
.emotion-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.emotion-item img { width: 128px; height: 128px; object-fit: contain; }
.emotion-row img { width: 128px !important; height: 128px !important; max-width: 128px !important; object-fit: contain; border-radius: 0; margin: 0; }
.emotion-label { font-size: 12px; color: #9ca3af; }
.emotion-label.highlight { color: #4f46e5; font-weight: 600; }
.emotion-row span { font-size: 12px; color: #9ca3af; text-align: center; line-height: 1.4; }
.emotion-row span.font-medium { font-weight: 500; }
.emotion-row span.text-primary { color: #4f46e5; }
.prose h4 { font-size: 16px; font-weight: 700; color: #111827; margin: 28px 0 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.prose thead { border-bottom: 2px solid #e5e7eb; }
.prose th { font-weight: 600; color: #111827; padding: 10px 14px; text-align: left; background: #f9fafb; }
.prose td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; color: #374151; vertical-align: top; line-height: 1.55; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: #f9fafb; }
.quick-answer { background: #fefce8; border-left: 4px solid #ca8a04; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 36px; }
.qa-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #854d0e; margin-bottom: 6px; }
.quick-answer p { margin: 0; font-size: 15px; color: #374151; line-height: 1.7; }
.inline-cta { border: 1px solid rgba(79,70,229,0.25); background: rgba(79,70,229,0.05); border-radius: 12px; padding: 24px 28px; margin: 32px 0; }
.inline-cta .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #4f46e5; margin-bottom: 6px; }
.inline-cta h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.inline-cta p { font-size: 14px; color: #6b7280; margin: 0 0 16px; }
.inline-cta a { display: inline-block; background: #4f46e5; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 6px; text-decoration: none; }
.inline-cta a:hover { background: #4338ca; }
.toc-box { border: 1px solid #e5e7eb; border-radius: 12px; background: rgba(0,0,0,0.02); padding: 16px 20px; margin: 32px 0; }
.toc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; }
.toc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc-link { font-size: 14px; color: #6b7280; text-decoration: none; line-height: 1.4; }
.toc-link:hover { color: #4f46e5; text-decoration: none; }
.faqs { margin-top: 48px; }
.faqs-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; }
.faq-item { padding: 16px 0; }
.faq-border { border-bottom: 1px solid #e5e7eb; }
.faq-q { font-size: 14px; font-weight: 600; color: #111827; margin: 0 0 4px; }
.faq-a { font-size: 14px; color: #9ca3af; margin: 0; line-height: 1.65; }
.cta-box { background: rgba(0,0,0,0.03); border: 1px solid #e5e7eb; border-radius: 12px; padding: 32px 24px; text-align: center; margin: 48px 0; }
.cta-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(79,70,229,0.08); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cta-icon img { width: 40px; height: 40px; object-fit: contain; }
.cta-box h2 { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.cta-box p { font-size: 14px; color: #6b7280; margin: 0 0 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
.cta-btn { display: inline-block; background: #4f46e5; color: #fff !important; font-weight: 600; font-size: 15px; padding: 11px 24px; border-radius: 8px; text-decoration: none; }
.cta-btn:hover { background: #4338ca; text-decoration: none; }
.author-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.author-bio { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e5e7eb; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(79,70,229,0.1); color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.author-name { font-size: 14px; font-weight: 500; color: #111827; }
.author-tagline { font-size: 12px; color: #9ca3af; }
.prevnext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prevnext-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; cursor: pointer; }
.prevnext-link:hover .prevnext-title { color: #4f46e5; text-decoration: none; }
.prevnext-right { align-items: flex-end; text-align: right; }
.prevnext-label { font-size: 12px; color: #9ca3af; }
.prevnext-title { font-size: 14px; font-weight: 500; color: #374151; line-height: 1.4; }
.prevnext-slug { font-size: 11px; color: #d1d5db; font-family: 'SF Mono', Monaco, monospace; }
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.related-heading { font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; }
.related-card { display: block; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; background: rgba(0,0,0,0.02); text-decoration: none; transition: background 0.15s; }
.related-card:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.related-card:hover .related-card-title { color: #4f46e5; }
.related-card-meta { display: flex; gap: 12px; font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.related-meta-item { display: flex; align-items: center; gap: 4px; }
.related-card-title { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.4; margin-bottom: 4px; transition: color 0.15s; }
.related-arrow { opacity: 0; transition: opacity 0.15s; }
.related-card:hover .related-arrow { opacity: 1; }
.related-card-desc { font-size: 12px; color: #9ca3af; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.back-to-blog { margin-top: 20px; }
.back-to-blog a { font-size: 14px; color: #9ca3af; text-decoration: none; }
.back-to-blog a:hover { color: #374151; text-decoration: none; }
.site-footer { border-top: 1px solid #e5e7eb; padding: 32px 16px; }
.site-footer-inner { max-width: 1024px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.site-footer-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer-logo { display: flex; align-items: center; gap: 2px; text-decoration: none; flex-shrink: 0; }
.site-footer-logo img { height: 60px; width: 60px; }
.site-footer-logo span { font-weight: 600; font-size: 25px; color: #111827; }
.site-footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; }
.site-footer-nav a { color: #6b7280; text-decoration: none; transition: color 0.15s; }
.site-footer-nav a:hover { color: #111827; text-decoration: none; }
.site-footer-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 12px; }
.site-footer-subnav a { color: #6b7280; text-decoration: none; transition: color 0.15s; }
.site-footer-subnav a:hover { color: #111827; text-decoration: none; }
.site-footer-copy { font-size: 12px; color: #9ca3af; text-align: center; }
@media (min-width: 640px) { .site-footer-row { flex-direction: row; align-items: center; justify-content: space-between; } .site-footer-copy { text-align: right; } }
/* Mobile nav hamburger */
.hamburger-btn { display: none; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 6px; color: #374151; }
.hamburger-btn:hover { background: #f3f4f6; }
.mobile-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; padding: 8px 16px 16px; flex-direction: column; gap: 2px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 11px 12px; font-size: 15px; font-weight: 500; color: #374151; border-radius: 8px; text-decoration: none; }
.mobile-nav a:hover { background: #f3f4f6; text-decoration: none; }
.mobile-nav-divider { height: 1px; background: #f3f4f6; margin: 6px 0; }
.mobile-nav-cta { background: #4f46e5 !important; color: #fff !important; text-align: center; margin-top: 4px; font-weight: 600 !important; }
.mobile-nav-cta:hover { background: #4338ca !important; }
@media (max-width: 767px) {
  .site-header { overflow: visible; }
  .header-nav { display: none !important; }
  .hamburger-btn { display: flex; }
  .prevnext-grid { grid-template-columns: 1fr; }
  .prevnext-right { align-items: flex-start; text-align: left; }
}
@media (max-width: 600px) { .page-wrapper { padding: 32px 16px 60px; } .emotion-row { gap: 16px; padding: 20px; } .emotion-row img { width: 96px !important; height: 96px !important; } .cta-box { padding: 28px 20px; } }
/* Tailwind shim — covers utility classes embedded in blog markdown HTML */
.overflow-x-auto { overflow-x: auto; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.w-full { width: 100%; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-left { text-align: left; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.border-collapse { border-collapse: collapse; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.pr-4 { padding-right: 16px; }
.cursor-pointer { cursor: pointer; }
.hover\:underline:hover { text-decoration: underline; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.text-center { text-align: center; }
.text-muted-foreground { color: #9ca3af; }
.text-primary { color: #4f46e5; }
.text-foreground\/80 { color: rgba(17,24,39,0.8); }
.not-prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.not-prose th { font-weight: 600; color: #111827; padding: 8px 16px 8px 0; text-align: left; border-bottom: 2px solid #e5e7eb; }
.not-prose td { padding: 8px 16px 8px 0; border-bottom: 1px solid #e5e7eb; color: #374151; vertical-align: top; line-height: 1.55; font-size: 14px; }
.not-prose tr:last-child td { border-bottom: none; }
/* Hub-specific */
.hub-page { max-width: 672px; margin: 0 auto; padding: 48px 16px 80px; }
.hub-heading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hub-h1 { font-size: 32px; font-weight: 800; color: #111827; margin: 0; letter-spacing: -0.02em; }
.hub-mascot { width: 80px; height: 80px; object-fit: contain; }
.hub-desc { font-size: 16px; color: #6b7280; margin: 0 0 32px; }
.promo-box { border: 1px solid #fecaca; background: #fff1f2; border-radius: 14px; padding: 20px; margin-bottom: 32px; display: flex; gap: 12px; align-items: flex-start; }
.promo-icon { font-size: 18px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.promo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #dc2626; margin-bottom: 4px; }
.promo-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.promo-desc { font-size: 14px; color: #6b7280; margin-bottom: 12px; line-height: 1.5; }
.promo-link { font-size: 14px; font-weight: 500; color: #dc2626; text-decoration: none; }
.promo-link:hover { text-decoration: underline; }
.guide-box { background: #111827; color: #fff; border-radius: 14px; margin-bottom: 40px; overflow: hidden; }
.guide-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; }
.guide-toggle:hover { opacity: 0.9; }
.guide-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guide-header-title { font-size: 16px; font-weight: 700; color: #fff; }
.guide-badge { font-size: 11px; font-weight: 600; background: #e11d48; color: #fff; padding: 2px 8px; border-radius: 99px; }
.guide-toggle-desc { font-size: 13px; color: rgba(255,255,255,0.6); margin: 3px 0 0; }
.guide-chevron { color: rgba(255,255,255,0.5); font-size: 16px; flex-shrink: 0; margin-left: 16px; transition: transform 0.2s; }
.guide-body { display: none; border-top: 1px solid rgba(255,255,255,0.1); padding: 24px; }
.guide-body.open { display: block; }
.guide-stage { margin-bottom: 24px; }
.stage-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.stage-subtitle { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-item { display: flex; gap: 10px; align-items: flex-start; }
.guide-num { font-size: 12px; font-family: monospace; color: rgba(255,255,255,0.4); min-width: 20px; padding-top: 2px; }
.guide-body-inner { flex: 1; }
.guide-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; }
.guide-title:hover { color: #fff; text-decoration: underline; }
.guide-note { font-size: 12px; color: rgba(255,255,255,0.5); margin: 2px 0 0; line-height: 1.5; }
.emergency-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 16px; margin-top: 20px; }
.emergency-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-tab { padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid #e5e7eb; background: transparent; color: #6b7280; transition: all 0.15s; }
.filter-tab:hover { border-color: #9ca3af; color: #111827; }
.filter-tab.active { background: #111827; color: #fff; border-color: #111827; }
.filter-count { font-size: 12px; margin-left: 4px; opacity: 0.6; }
.cat-section { margin-bottom: 48px; }
.cat-header { margin-bottom: 12px; }
.cat-name { font-size: 17px; font-weight: 700; }
.cat-desc { font-size: 14px; color: #6b7280; margin: 2px 0 0; }
.post-list { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.post-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; text-decoration: none; color: inherit; }
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #f9fafb; }
.post-num { font-size: 12px; font-family: monospace; color: #d1d5db; min-width: 20px; }
.post-title { font-size: 14px; font-weight: 500; color: #111827; flex: 1; line-height: 1.4; }
.post-item:hover .post-title { color: #e11d48; }
.post-time { font-size: 12px; color: #9ca3af; white-space: nowrap; }
@media (max-width: 600px) { .hub-page { padding: 32px 16px 60px; } .guide-toggle { padding: 16px; } .guide-body { padding: 16px; } }
