/* Shared styles for all blog pages — Inventory & Orders */
:root{
  --ink:#10201f; --muted:#4f6362; --bg:#f6f4ee; --card:#ffffff;
  --brand:#0f3d3e; --brand-2:#145a5c; --accent:#e8a33d; --line:#e2ded3;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.7;font-size:17px}
a{color:var(--brand-2)}
img{max-width:100%;display:block}

header.top{border-bottom:1px solid var(--line);background:rgba(246,244,238,.95)}
header.top .bar{max-width:1120px;margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;text-decoration:none;color:var(--ink)}
.logo img{width:32px;height:32px;border-radius:9px}
.top nav a{margin-left:22px;text-decoration:none;color:var(--muted);font-size:15px}
.top nav a:hover{color:var(--ink)}

.btn{display:inline-block;background:var(--brand);color:#fff!important;text-decoration:none;padding:12px 20px;border-radius:12px;font-weight:600;font-size:15px}
.btn:hover{background:var(--brand-2)}
.btn.small{padding:8px 14px}

.wrap{max-width:760px;margin:0 auto;padding:48px 24px 80px}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:20px}
.crumbs a{color:var(--muted)}
h1{font-size:clamp(30px,4.4vw,44px);line-height:1.15;letter-spacing:-.02em;margin-bottom:14px}
.meta{font-size:14px;color:var(--muted);margin-bottom:36px}
article h2{font-size:24px;letter-spacing:-.01em;line-height:1.25;margin:40px 0 12px}
article h3{font-size:19px;margin:28px 0 8px}
article p{margin-bottom:16px;color:#2b3b3a}
article ul,article ol{margin:0 0 18px 22px;color:#2b3b3a}
article li{margin-bottom:8px}
article strong{color:var(--ink)}
.lead{font-size:19px;color:var(--muted)}
.note{background:#e3ece9;border-left:4px solid var(--brand-2);padding:16px 20px;border-radius:10px;margin:24px 0}
.note p{margin:0}
table{width:100%;border-collapse:collapse;margin:8px 0 24px;font-size:15px;background:var(--card)}
th,td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
th{background:#eef2ef}

.cta{background:var(--brand);color:#fff;border-radius:20px;padding:32px;margin-top:48px}
.cta h2{color:#fff;margin:0 0 8px;font-size:22px}
.cta p{color:#c9dbd8;margin-bottom:20px}
.cta .btn{background:var(--accent);color:var(--ink)!important}

/* blog index list */
.post-list{list-style:none;margin:0}
.post-list li{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:16px}
.post-list h2{font-size:21px;margin:0 0 6px}
.post-list h2 a{color:var(--ink);text-decoration:none}
.post-list h2 a:hover{color:var(--brand-2)}
.post-list p{color:var(--muted);font-size:15px;margin:0}
.post-list time{font-size:13px;color:var(--muted);display:block;margin-bottom:6px}

footer{border-top:1px solid var(--line);padding:28px 24px;font-size:14px;color:var(--muted);text-align:center}
footer a{color:var(--muted);margin:0 9px}
@media(max-width:600px){.top nav a:not(.btn){display:none}}

/* diagrams */
article figure{margin:24px 0 28px}
article figure img{width:100%;height:auto;border-radius:14px;border:1px solid var(--line)}
article figcaption{font-size:14px;color:var(--muted);margin-top:8px;text-align:center}

/* portrait phone screenshots, narrower than a full-width diagram */
article figure.phone-shot{max-width:280px;margin-left:auto;margin-right:auto}
article figure.phone-shot img{box-shadow:0 14px 28px -14px rgba(15,61,62,.35)}

/* step text and screenshot side by side */
.step-row{display:flex;gap:32px;align-items:center;margin:20px 0 36px}
.step-row .step-text{flex:1 1 0;min-width:0}
.step-row .step-text p{margin-bottom:0}
.step-row figure.phone-shot{flex:0 0 200px;margin:0}
.step-row .visual{flex:0 0 200px;display:flex;flex-direction:column;align-items:center;gap:14px}
.step-row .visual figure.phone-shot{flex:none;max-width:none}
.step-row.rev{flex-direction:row-reverse}
@media(max-width:680px){
  .step-row{flex-direction:column;gap:18px}
  .step-row.rev{flex-direction:column}
  .step-row figure.phone-shot{flex:0 0 auto;width:180px}
}

/* a horizontally scrollable filmstrip of small report screenshots */
.report-grid-wrap{position:relative;margin:20px 0 36px}
.report-grid-wrap:before,.report-grid-wrap:after{content:"";position:absolute;top:0;bottom:16px;width:40px;pointer-events:none;z-index:2;opacity:1;transition:opacity .2s}
.report-grid-wrap:before{left:0;background:linear-gradient(to right,var(--bg),transparent)}
.report-grid-wrap:after{right:0;background:linear-gradient(to left,var(--bg),transparent)}
.report-grid-wrap.at-start:before{opacity:0}
.report-grid-wrap.at-end:after{opacity:0}
.report-grid{display:flex;gap:20px;overflow-x:auto;padding:4px 4px 16px;margin:0;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.report-grid figure{flex:0 0 auto;width:160px;margin:0;scroll-snap-align:start;text-align:center}
.report-grid img{box-shadow:0 14px 28px -14px rgba(15,61,62,.35)}
