/* ============================================
   FAST WMS — LEARN PAGES SHARED STYLESHEET
   Loaded on every /learn/ page, AFTER the page's
   own inline <style> (page styles can still
   override per-page where genuinely needed) and
   BEFORE /css/styles.css (which governs header/footer)
   ============================================ */

/* ── 1. TOKENS ── */
:root{
  --ink:#121212;--ink2:#1f1f1f;--text:#2d2d2d;--muted:#374151;
  --light:#6b7280;--border:#e5e7eb;--border2:#d1d5db;
  --white:#ffffff;--page:#F6F8FB;
  --orange:#1457A6;--orange-dk:#0E3F7E;--orange-lt:#EEF4FB;
  --rose:#FBEAE7;--sage:#FDEEE6;--cream:#FBF3DD;--lavender:#EFE9FB;
  --r:22px;--r-sm:10px;--r-xs:6px;
  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --head:'Bricolage Grotesque',-apple-system,BlinkMacSystemFont,sans-serif;
}

/* ── 2. RESET & BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--white);color:var(--text);line-height:1.65;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* ── 3. BREADCRUMB ── */
.breadcrumb{max-width:1200px;margin:0 auto;padding:18px 24px 0;display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.breadcrumb a{color:var(--muted);transition:color .15s}.breadcrumb a:hover{color:var(--orange)}
.breadcrumb svg{width:12px;height:12px;flex-shrink:0}
.breadcrumb span{color:var(--ink);font-weight:500}

/* ── 4. HERO (shared shell only) ── */
.learn-hero{background:linear-gradient(135deg,#0E3F7E 0%,#1457A6 100%);padding:60px 24px 0;margin:20px 24px 0;border-radius:var(--r);overflow:hidden;position:relative}
.learn-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 55% 60% at 75% 35%,rgba(255,255,255,.06) 0%,transparent 70%)}
.lh-inner{max-width:1152px;margin:0 auto;display:grid;grid-template-columns:1fr 380px;gap:48px;align-items:end;position:relative;z-index:1}
.lh-text{padding-bottom:52px}
.lh-eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.82);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.lh-eyebrow span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);padding:3px 10px;border-radius:20px;color:#ffffff;font-weight:700;letter-spacing:.04em}
.lh-text h1{font-family:var(--head);font-size:clamp(28px,3.8vw,48px);font-weight:800;color:#ffffff;letter-spacing:-.04em;line-height:1.08;margin-bottom:18px}
.lh-text h1 em{font-style:normal;color:#93c5fd}
.lh-lead{font-size:16px;color:rgba(255,255,255,.85);line-height:1.78;max-width:500px;margin-bottom:28px}
.lh-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.lh-meta-item{font-size:13px;color:rgba(255,255,255,.7);display:flex;align-items:center;gap:5px}
.lh-meta-item svg{width:14px;height:14px}

/* ── 5. LEARN PAGE LAYOUT ── */
.learn-wrap{max-width:1200px;margin:0 auto;padding:44px 24px 80px;display:grid;grid-template-columns:1fr 296px;gap:52px;align-items:start}

/* ── 6. PROSE TYPOGRAPHY ── */
.prose h2{font-family:var(--head);font-size:clamp(21px,2.2vw,27px);font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1.2;margin:52px 0 14px;scroll-margin-top:90px}
.prose h3{font-family:var(--head);font-size:18px;font-weight:700;color:var(--ink);letter-spacing:-.02em;margin:28px 0 9px}
.prose p{font-size:16px;color:var(--text);line-height:1.85;margin-bottom:18px}
.prose strong{font-weight:700;color:var(--ink)}
.prose a{color:var(--orange);text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--orange-dk)}
.prose ul{margin:10px 0 18px;display:flex;flex-direction:column;gap:7px;list-style:none}
.prose ul li{font-size:16px;color:var(--text);line-height:1.72;display:flex;align-items:flex-start;gap:10px}
.prose ul li::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--orange);flex-shrink:0;margin-top:9px}

/* ── 7. TOC ── */
.toc{border-left:3px solid var(--orange);background:var(--orange-lt);border-radius:0 var(--r-sm) var(--r-sm) 0;padding:20px 22px;margin-bottom:36px}
.toc-title{font-family:var(--head);font-size:13px;font-weight:800;color:var(--orange-dk);margin-bottom:12px;display:flex;align-items:center;gap:6px}
.toc-title svg{width:14px;height:14px;color:var(--orange)}
.toc ol{margin-left:18px;display:flex;flex-direction:column;gap:5px}
.toc ol li a{font-size:13px;color:var(--orange);font-weight:600;line-height:1.4}
.toc ol li a:hover{color:var(--orange-dk);text-decoration:underline;text-underline-offset:3px}

/* ── 8. PULL QUOTE ── */
.pull-quote{background:var(--orange-lt);border-left:4px solid var(--orange);border-radius:0 var(--r-sm) var(--r-sm) 0;padding:16px 20px;margin:24px 0;font-size:16px;color:var(--ink);font-weight:600;line-height:1.65}

/* ── 9. INDIA CONTEXT CALLOUT ── */
.india-note{background:var(--rose);border-radius:var(--r-sm);padding:16px 18px;margin:16px 0;display:flex;gap:11px;align-items:flex-start}
.india-note-icon{font-size:16px;flex-shrink:0;line-height:1.4}
.india-note-text{font-size:14px;color:var(--ink);line-height:1.65}
.india-note-text strong{font-weight:700}

/* ── 10. BEFORE/AFTER OR PROBLEM/SOLUTION COMPARISON BLOCK ── */
.compare-2col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
.compare-box{border-radius:var(--r-sm);padding:16px 18px}
.compare-box.negative{background:#fef2f2;border:1px solid #fecaca}
.compare-box.positive{background:#f0fdf4;border:1px solid #bbf7d0}
.compare-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;margin-bottom:9px}
.compare-label.neg{color:#b91c1c}
.compare-label.pos{color:#166534}
.compare-item{font-size:13px;color:var(--text);line-height:1.6;margin-bottom:6px;display:flex;gap:8px;align-items:flex-start}
.compare-item:last-child{margin-bottom:0}
.compare-item svg{width:13px;height:13px;flex-shrink:0;margin-top:2px}
.compare-item.neg-item svg{color:#dc2626}
.compare-item.pos-item svg{color:#16a34a}

/* ── 11. STAT ROW / STAT STRIP ── */
.stat-strip{display:flex;gap:0;margin-top:18px;border-top:1px solid var(--border);padding-top:16px;flex-wrap:wrap}
.stat-strip-item{flex:1;min-width:120px;padding:0 16px 0 0;border-right:1px solid var(--border)}
.stat-strip-item:first-child{padding-left:0}
.stat-strip-item:last-child{border-right:none}
.ss-val{font-family:var(--head);font-size:24px;font-weight:800;color:var(--orange);letter-spacing:-.04em;line-height:1}
.ss-lbl{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.4}

/* ── 12. NUMBERED CONTENT BLOCK (process/benefit/challenge card shell) ── */
.content-block{background:var(--page);border-radius:var(--r);padding:32px;margin:28px 0;border:1px solid var(--border);position:relative;overflow:hidden}
.content-block::before{content:'';position:absolute;top:0;left:0;width:4px;height:100%;background:var(--orange);border-radius:4px 0 0 4px}
.content-block-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}
.content-block-badge{font-family:var(--head);font-size:11px;font-weight:800;color:var(--orange);background:var(--orange-lt);border:1px solid rgba(20,87,166,.15);padding:4px 11px;border-radius:20px;white-space:nowrap;flex-shrink:0;margin-top:3px}
.content-block-header h2{font-family:var(--head);font-size:22px;font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1.2;margin:0;scroll-margin-top:90px}
.content-block-body p{font-size:16px;color:var(--text);line-height:1.85;margin-bottom:14px}
.content-block-body p:last-child{margin-bottom:0}
.content-block-body strong{font-weight:700;color:var(--ink)}
/* severity / type accent modifiers */
.content-block.accent-blue::before{background:var(--orange)}
.content-block.accent-blue .content-block-badge{color:var(--orange-dk);background:var(--orange-lt);border:1px solid rgba(20,87,166,.15)}
.content-block.accent-red::before{background:#dc2626}
.content-block.accent-red .content-block-badge{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca}
.content-block.accent-amber::before{background:#f59e0b}
.content-block.accent-amber .content-block-badge{color:#92400e;background:#fef3c7;border:1px solid #fde68a}

/* ── 13. COST/FIX PILL CALLOUTS ── */
.cost-pill{display:inline-flex;align-items:center;gap:8px;background:#fef2f2;border:1px solid #fecaca;border-radius:var(--r-xs);padding:8px 14px;font-size:13px;font-weight:700;color:#b91c1c;margin-top:14px}
.cost-pill svg{width:14px;height:14px;color:#dc2626}
.fix-pill{display:inline-flex;align-items:center;gap:8px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:var(--r-xs);padding:8px 14px;font-size:13px;font-weight:700;color:#166534;margin-top:14px}
.fix-pill svg{width:14px;height:14px;color:#16a34a}

/* ── 14. INLINE CTA BAND ── */
.inline-cta{background:var(--lavender);border-radius:var(--r);padding:30px;margin:40px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.inline-cta h3{font-family:var(--head);font-size:17px;font-weight:800;color:var(--ink);letter-spacing:-.02em;margin-bottom:5px}
.inline-cta p{font-size:13px;color:var(--muted);line-height:1.55}

/* ── 15. BUTTON ── */
.btn-fill{display:inline-flex;align-items:center;gap:7px;background:var(--orange);color:#ffffff!important;font-family:var(--head);font-size:14px;font-weight:700;padding:12px 22px;border-radius:var(--r-xs);transition:all .2s;white-space:nowrap;text-decoration:none}
.btn-fill:hover{background:var(--orange-dk);color:#ffffff!important;transform:translateY(-1px)}
.btn-fill svg{width:13px;height:13px;transition:transform .2s}
.btn-fill:hover svg{transform:translateX(3px)}

/* ── 16. HUB BACK-LINK BAND ── */
.hub-back{background:var(--sage);border-radius:var(--r);padding:22px 26px;margin:40px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.hub-back-text strong{display:block;font-family:var(--head);font-size:14px;font-weight:800;color:var(--ink);margin-bottom:2px}
.hub-back-text span{font-size:13px;color:var(--muted)}
.hub-back-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--orange);white-space:nowrap}
.hub-back-link:hover{color:var(--orange-dk);text-decoration:underline;text-underline-offset:3px}
.hub-back-link svg{width:13px;height:13px}

/* ── 17. FAQ ACCORDION ── */
.faq-section{margin:44px 0}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:first-child{border-top:1px solid var(--border)}
.faq-item summary{list-style:none;padding:16px 0;cursor:pointer;font-size:15px;font-weight:700;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:14px;line-height:1.4}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-family:var(--head);font-size:20px;font-weight:400;color:var(--light);flex-shrink:0;transition:transform .2s}
.faq-item[open] summary::after{content:'×';color:var(--orange)}
.faq-body{font-size:15px;color:var(--text);line-height:1.8;padding-bottom:18px}
.faq-body p{margin-bottom:10px}
.faq-body p:last-child{margin-bottom:0}

/* ── 18. SIDEBAR ── */
.article-sidebar{position:sticky;top:90px}
.sw{background:var(--white);border:1.5px solid var(--border);border-radius:16px;padding:20px;margin-bottom:16px}
.sw-title{font-family:var(--head);font-size:13px;font-weight:800;color:var(--ink);margin-bottom:13px;padding-bottom:11px;border-bottom:1px solid var(--border)}
.cta-sw{background:linear-gradient(135deg,#1e3a5f,#1457A6);border:none}
.cta-sw .sw-title{color:rgba(255,255,255,.82);border-bottom-color:rgba(255,255,255,.15)}
.cta-sw p{font-size:13px;color:rgba(255,255,255,.75);line-height:1.6;margin-bottom:13px}
.cta-sw-btn{display:block;text-align:center;padding:11px;border-radius:9px;background:var(--white);color:var(--orange-dk);font-family:var(--head);font-size:14px;font-weight:800;transition:all .15s;text-decoration:none}
.cta-sw-btn:hover{background:var(--orange-lt)}
.rel-item{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-bottom:1px solid var(--border)}
.rel-item:last-child{border-bottom:none;padding-bottom:0}
.rel-icon{width:32px;height:32px;border-radius:8px;background:var(--orange-lt);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.rel-icon svg{width:14px;height:14px;color:var(--orange)}
.rel-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.rel-title{font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.35;display:block;transition:color .15s}
.rel-title:hover{color:var(--orange)}
.rel-meta{font-size:11px;color:#374151;margin-top:4px;display:block;line-height:1.3}
.tag-cloud{display:flex;flex-wrap:wrap;gap:6px}
.sw-tag{font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:20px;background:#f0f0f0;color:#374151;cursor:default;transition:all .15s}
.sw-tag:hover{background:var(--orange-lt);color:var(--orange-dk)}

/* ── 19. BOTTOM CTA BAND ── */
.bottom-cta{background:linear-gradient(135deg,#EFE6FB 0%,#FBE7E2 100%);border-radius:var(--r);padding:clamp(36px,5vw,60px) 44px;text-align:center;margin:0 24px 28px}
.bottom-cta h2{font-family:var(--head);font-size:clamp(22px,3vw,34px);font-weight:800;color:var(--ink);letter-spacing:-.04em;line-height:1.1;margin-bottom:11px}
.bottom-cta p{font-size:16px;color:var(--muted);max-width:460px;margin:0 auto 26px;line-height:1.7}
.bottom-cta .btn-fill{font-size:15px;padding:14px 32px}
.cta-note{font-size:13px;color:var(--muted);margin-top:11px}

/* ── 20. SUMMARY TABLE (reusable at-a-glance comparison table) ── */
.summary-table-wrap{overflow-x:auto;margin:28px 0}
.summary-table{width:100%;border-collapse:collapse;font-size:14px}
.summary-table th{background:var(--ink);color:var(--white);font-family:var(--head);font-size:12px;font-weight:700;padding:11px 14px;text-align:left;letter-spacing:.02em}
.summary-table th:first-child{border-radius:var(--r-xs) 0 0 0}
.summary-table th:last-child{border-radius:0 var(--r-xs) 0 0}
.summary-table td{padding:10px 14px;border-bottom:1px solid var(--border);color:var(--text);vertical-align:top;line-height:1.5}
.summary-table tr:nth-child(even) td{background:var(--page)}
.summary-table tr:last-child td{border-bottom:none}
.summary-table .col-name{font-weight:600;color:var(--ink)}
.sev-high{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#b91c1c;background:#fee2e2;padding:2px 8px;border-radius:10px}
.sev-med{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#92400e;background:#fef3c7;padding:2px 8px;border-radius:10px}
.fix-yes{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#166534;background:#dcfce7;padding:2px 8px;border-radius:10px}

/* ── 21. RESPONSIVE ── */
@media(max-width:1040px){
  .lh-inner{grid-template-columns:1fr}
  .learn-hero-visual{display:none}
  .learn-wrap{grid-template-columns:1fr;gap:24px}
  .article-sidebar{position:static}
  .compare-2col{grid-template-columns:1fr}
}
@media(max-width:768px){
  .learn-hero{margin:12px 12px 0;padding:36px 20px 0}
  .learn-wrap{padding:24px 16px 56px}
  .bottom-cta{margin:0 12px 20px;padding:36px 20px}
  .inline-cta{flex-direction:column}
  .hub-back{flex-direction:column;align-items:flex-start;gap:10px}
  .stat-strip{gap:12px}
  .stat-strip-item{border-right:none;padding-right:0}
}
