/* ═══════════════════════════════════════════════
 CHIWAI Article Template (Editorial GEO Optimized)
 ═══════════════════════════════════════════════ */
:root {
 --brand-blue: #0056b3;
 --brand-teal: #00838f;
 --brand-amber: #d97706;
 --brand-dark: #1e293b;
 --border: #e2e8f0;
 --sans: 'Barlow', sans-serif;
 --display: 'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 line-height: 1.75; color: var(--brand-dark); margin: 0; background: #fff;
 -webkit-font-smoothing: antialiased;
}

.article-wrapper { max-width: 850px; margin: 0 auto; padding: 50px 24px; font-size: 17px; }

/* BREADCRUMB */
.breadcrumb { padding: 10px 0 20px; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; color: #64748b; }
.breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: #3d4451; font-weight: 600; }

/* Headings */
.zq-h1 { font-family: var(--display); font-size: 38px; font-weight: 800; color: #0f172a; margin-bottom: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.5px; }
.zq-meta { font-family: var(--sans); color: #64748b; font-size: 14px; margin-bottom: 32px; font-weight: 600; }

h2 { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--brand-blue); margin-top: 48px; border-bottom: 2px solid var(--border); padding-bottom: 10px; text-transform: uppercase; }
h3 { font-family: var(--sans); font-size: 20px; margin-top: 32px; font-weight: 700; color: #0f172a; }
p { margin-bottom: 18px; }
a { color: var(--brand-blue); text-decoration: none; font-weight: 600;}
a:hover { text-decoration: underline; }

/* Stats Block */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; margin: 0 0 36px; }
.stat-box { background: #fff; padding: 24px 16px; text-align: center; }
.stat-num { font-family: var(--display); font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.4; }

/* GEO Verdict Box */
.geo-box { background: #f8fafc; border-left: 5px solid #334155; padding: 24px 28px; border-radius: 6px; margin: 28px 0 40px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.geo-label { font-family: var(--sans); font-size: 13px; font-weight: 800; color: #334155; text-transform: uppercase; display: block; margin-bottom: 12px; letter-spacing: 1px; }
.geo-text { font-size: 16.5px; margin: 0; font-weight: 500; line-height: 1.7; color: #1e293b; }

/* Type Cards (ItemList) */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.type-card { padding: 24px; border-radius: 8px; border: 1px solid var(--border); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.02);}
.type-card.factory { border-top: 4px solid #16a34a; }
.type-card.integrator { border-top: 4px solid var(--brand-blue); }
.type-card.trading { border-top: 4px solid #ca8a04; }
.type-label { font-family: var(--sans); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #64748b;}
.type-name { font-family: var(--display); font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.2;}
.type-body { font-size: 14.5px; color: #475569; line-height: 1.6; margin: 0; }

/* Steps (HowTo) */
.step-box { border: 1px solid var(--border); border-left: 4px solid var(--brand-blue); border-radius: 6px; padding: 24px; margin: 24px 0; background: #f8fafc; }
.step-number { font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.step-title { font-family: var(--sans); font-size: 19px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.step-body { font-size: 16px; line-height: 1.7; color: #334155; margin: 0;}

/* Red Flags */
.flag-list { background: #fff5f5; border-left: 4px solid #dc2626; border-radius: 6px; padding: 24px 28px; margin: 32px 0; border-top: 1px solid #fecaca; border-right: 1px solid #fecaca; border-bottom: 1px solid #fecaca;}
.flag-list-title { font-family: var(--display); font-weight: 800; color: #991b1b; font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
.flag-list ul { list-style: none; padding: 0; margin: 0; }
.flag-list li { padding: 8px 0 8px 28px; position: relative; font-size: 15.5px; color: #450a0a; line-height: 1.6; border-bottom: 1px solid #fecaca; }
.flag-list li:last-child { border-bottom: none; padding-bottom: 0;}
.flag-list li::before { content: '🚩'; position: absolute; left: 0; top: 9px; font-size: 14px; }

/* Images */
.img-fluid { width: 100%; height: auto; object-fit: cover; border-radius: 8px; margin: 32px 0 12px; display: block; border: 1px solid var(--border);}
.img-cap { font-family: var(--sans); font-size: 13px; color: #64748b; font-style: italic; text-align: center; margin-bottom: 40px; display: block; padding: 0 20px;}

/* FAQ Section */
.faq-section { margin-top: 64px; border-top: 2px solid var(--border); padding-top: 10px;}
.faq-item { border-bottom: 1px solid var(--border); }
details > summary { font-family: var(--sans); font-weight: 700; font-size: 17px; color: #0f172a; padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s;}
details > summary:hover { color: var(--brand-blue); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--brand-blue); flex-shrink: 0; line-height: 1;}
details[open] > summary::after { content: '−'; }
.faq-answer { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: #475569; padding: 0 0 24px; }

/* References */
.ref-section { margin-top: 48px; padding: 24px 28px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--border); }
.ref-section h3 { margin-top: 0; color: #334155; font-size: 18px; }
.ref-section ul { margin: 10px 0 0 20px; font-family: var(--sans); font-size: 14px; color: #475569; line-height: 1.8; }

/* CTA Footer */
.cta-section { background: #0f172a; padding: 48px 40px; text-align: center; border-radius: 12px; margin-top: 60px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.cta-section h2 { margin-top: 0; color: #fff; border-bottom: none; padding-bottom: 0; justify-content: center; display: flex;}
.cta-section p { color: #cbd5e1; font-family: var(--sans); font-size: 16px; margin-bottom: 24px; }
.cta-btn { display: inline-block; background: #F59E0B; color: #0f172a; font-family: var(--sans); font-size: 15.5px; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s;}
.cta-btn:hover { background: #D97706; transform: translateY(-2px); text-decoration: none;}

@media(max-width:768px) {
 .type-grid { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
 .zq-h1 { font-size: 32px; }
 .stat-row { grid-template-columns: repeat(2, 1fr); }
 .cta-section { padding: 40px 20px; }
}