/* CloudPOS blog — self-contained (the site's Tailwind bundle is purged, so nothing here relies on utility classes) */
.blog { --b-brand:#271151; --b-brand2:#6b45d2; --b-line:#ebe6f5; --b-soft:#f7f5fc; --b-text:#231a3a; --b-muted:#6a6382; color:var(--b-text); }
.blog .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.blog a { color:inherit; }
.b-wrap { max-width:1120px; margin:0 auto; padding:28px 16px 64px; }
.b-post-wrap { max-width:860px; }

.b-crumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px; padding:0; font-size:13px; color:var(--b-muted); }
.b-crumbs li + li::before { content:"/"; margin-right:6px; opacity:.5; }
.b-crumbs a:hover { color:var(--b-brand2); text-decoration:underline; }

.b-hero { text-align:center; padding:18px 0 8px; }
.b-hero h1 { font-size:clamp(28px,4.2vw,44px); line-height:1.12; font-weight:800; color:var(--b-brand); margin:0 0 10px; letter-spacing:-.02em; }
.b-hero p { max-width:680px; margin:0 auto 18px; color:var(--b-muted); font-size:17px; line-height:1.55; }
.b-search { display:flex; max-width:460px; margin:0 auto; border:1px solid var(--b-line); border-radius:999px; overflow:hidden; background:#fff; box-shadow:0 6px 20px rgba(39,17,81,.06); }
.b-search input { flex:1; border:0; padding:12px 18px; font:inherit; outline:none; min-width:0; background:transparent; }
.b-search button { border:0; background:var(--b-brand); color:#fff; padding:0 22px; font-weight:700; cursor:pointer; font:inherit; font-weight:700; }
.b-search button:hover { background:#3f1b80; }

.b-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:22px 0 28px; }
.b-pills a { padding:7px 14px; border-radius:999px; border:1px solid var(--b-line); font-size:13.5px; font-weight:600; background:#fff; transition:.15s; }
.b-pills a small { opacity:.55; margin-left:3px; }
.b-pills a:hover { border-color:var(--b-brand2); color:var(--b-brand2); }
.b-pills a.on { background:var(--b-brand); border-color:var(--b-brand); color:#fff; }

.b-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:980px) { .b-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px) { .b-grid { grid-template-columns:1fr; } }
.b-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--b-line); border-radius:18px; overflow:hidden; transition:transform .18s, box-shadow .18s; }
.b-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(39,17,81,.12); }
.b-card-img { display:block; aspect-ratio:16/9; background:var(--b-soft); overflow:hidden; }
.b-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.b-noimg { display:flex; align-items:center; justify-content:center; width:100%; height:100%; font-size:54px; font-weight:800; color:var(--b-brand2); opacity:.35; }
.b-card-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.b-card-title { font-size:18px; line-height:1.3; font-weight:800; margin:0; color:var(--b-brand); }
.b-card-title a:hover { color:var(--b-brand2); }
.b-card-sum { margin:0; font-size:14.5px; line-height:1.55; color:var(--b-muted); flex:1; }
.b-cat { --c:#271151; align-self:flex-start; display:inline-block; font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--b-brand2); background:var(--b-soft); padding:3px 10px; border-radius:99px; }
.b-cat:hover { background:var(--b-brand); color:#fff; }
.b-meta { display:flex; flex-wrap:wrap; gap:6px; font-size:13px; color:var(--b-muted); align-items:center; }

.b-pager { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:34px; }
.b-pager a, .b-pager span { min-width:38px; height:38px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid var(--b-line); font-weight:700; font-size:14px; background:#fff; }
.b-pager a:hover { border-color:var(--b-brand2); color:var(--b-brand2); }
.b-pager .cur { background:var(--b-brand); color:#fff; border-color:var(--b-brand); }
.b-pager .gap { border:0; background:none; }
.b-empty { text-align:center; padding:50px 0; color:var(--b-muted); }
.b-btn { display:inline-flex; background:var(--b-brand); color:#fff !important; padding:11px 22px; border-radius:999px; font-weight:700; transition:.15s; }
.b-btn:hover { background:#3f1b80; transform:translateY(-1px); }

/* article */
.b-art { max-width:1180px; }
.b-progress { position:fixed; top:0; left:0; right:0; height:3px; z-index:90; background:transparent; pointer-events:none; }
.b-progress span { display:block; height:100%; background:linear-gradient(90deg,#6b45d2,#271151); transform-origin:left; transform:scaleX(0); }
.b-art-head { max-width:820px; margin:6px auto 26px; text-align:center; }
.b-art-head .b-cat { align-self:auto; }
.b-art-head h1 { font-size:clamp(30px,4.6vw,48px); line-height:1.12; font-weight:800; color:var(--b-brand); margin:14px 0 14px; letter-spacing:-.025em; text-wrap:balance; }
.b-lead { font-size:19px; line-height:1.6; color:var(--b-muted); margin:0 auto 20px; max-width:700px; }
.b-byline { display:inline-flex; align-items:center; gap:12px; text-align:left; padding:8px 18px 8px 8px; border:1px solid var(--b-line); border-radius:999px; background:#fff; }
.b-byline strong { font-size:14.5px; display:block; line-height:1.2; }
.b-byline .b-meta { font-size:12.5px; }
.b-avatar { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,#6b45d2,#271151); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; flex:none; }
.b-avatar.lg { width:56px; height:56px; font-size:22px; }
.b-hero-img { margin:0 auto 38px; max-width:980px; border-radius:22px; overflow:hidden; background:var(--b-soft); box-shadow:0 18px 50px rgba(39,17,81,.14); }
.b-hero-img img { width:100%; height:auto; display:block; max-height:560px; object-fit:cover; }

.b-art-grid { display:grid; grid-template-columns:minmax(0,740px) 300px; gap:56px; justify-content:center; align-items:start; }
.b-main { min-width:0; }
.b-side { position:sticky; top:96px; display:grid; gap:16px; }
.b-side-card { border:1px solid var(--b-line); border-radius:16px; padding:16px 18px; background:#fff; }
.b-side-card h2 { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--b-muted); font-weight:800; margin:0 0 10px; }
.b-toc-d ol { list-style:none; margin:0; padding:0; display:grid; gap:2px; max-height:46vh; overflow:auto; }
.b-toc-d li a { display:block; padding:6px 10px; border-left:3px solid transparent; font-size:14px; line-height:1.4; color:var(--b-muted); border-radius:0 8px 8px 0; }
.b-toc-d li.l3 a { padding-left:22px; font-size:13px; }
.b-toc-d li a:hover { color:var(--b-brand2); background:var(--b-soft); }
.b-toc-d li a.on { color:var(--b-brand); font-weight:700; border-left-color:var(--b-brand2); background:var(--b-soft); }
.b-share-btns { display:flex; gap:8px; }
.b-share-btns a { width:40px; height:40px; border-radius:50%; border:1px solid var(--b-line); display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; color:var(--b-brand); text-transform:uppercase; transition:.15s; }
.b-share-btns a:hover { background:var(--b-brand); color:#fff; border-color:var(--b-brand); }
.b-side-cta { border-radius:16px; padding:20px; color:#fff; background:linear-gradient(135deg,#1c0d3f,#3f1b80); }
.b-side-cta p { margin:6px 0 14px; font-size:14px; line-height:1.5; color:rgba(255,255,255,.85); }
.b-side-cta .b-btn { background:#fff; color:var(--b-brand) !important; }
.b-toc-m { display:none; }
.b-toc { background:var(--b-soft); border:1px solid var(--b-line); border-radius:14px; padding:14px 18px; margin:0 0 26px; }
.b-toc summary { font-weight:800; cursor:pointer; color:var(--b-brand); }
.b-toc ol { margin:10px 0 0; padding-left:20px; display:grid; gap:4px; font-size:15px; }
.b-toc li.l3 { margin-left:16px; list-style:circle; }
.b-share-m { display:none; }

.b-content { font-size:18.5px; line-height:1.8; color:#2a2340; overflow-wrap:anywhere; }
.b-content > p:first-of-type { font-size:20px; color:#231a3a; }
.b-content > * + * { margin-top:1.15em; }
.b-content h2 { font-size:30px; line-height:1.25; font-weight:800; color:var(--b-brand); margin-top:2em; padding-top:.4em; scroll-margin-top:90px; letter-spacing:-.015em; }
.b-content h3 { font-size:23px; line-height:1.3; font-weight:800; color:var(--b-brand); margin-top:1.6em; scroll-margin-top:90px; }
.b-content h4 { font-size:19px; font-weight:800; margin-top:1.3em; }
.b-content a { color:var(--b-brand2); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; font-weight:500; }
.b-content a:hover { color:var(--b-brand); }
.b-content strong { color:#1c1430; }
.b-content ul, .b-content ol { padding-left:1.5em; }
.b-content ul { list-style:disc; } .b-content ol { list-style:decimal; }
.b-content li + li { margin-top:.45em; } .b-content li::marker { color:var(--b-brand2); }
.b-content img { max-width:100%; height:auto; border-radius:14px; display:block; margin:1.6em auto; box-shadow:0 8px 28px rgba(39,17,81,.12); }
.b-content figure { margin:1.6em 0; } .b-content figcaption { text-align:center; font-size:14px; color:var(--b-muted); margin-top:8px; }
.b-content blockquote { border-left:4px solid var(--b-brand2); background:var(--b-soft); padding:16px 22px; border-radius:0 14px 14px 0; font-size:19px; font-style:italic; color:#231a3a; }
.b-content table { width:100%; border-collapse:separate; border-spacing:0; display:block; overflow-x:auto; font-size:16px; border:1px solid var(--b-line); border-radius:12px; }
.b-content th, .b-content td { border-bottom:1px solid var(--b-line); padding:11px 14px; text-align:left; }
.b-content th { background:var(--b-soft); color:var(--b-brand); font-weight:800; }
.b-content pre, .b-content code { font-family:Consolas,monospace; font-size:15px; }
.b-content pre { background:#1c0d3f; color:#efeaf9; padding:16px 18px; border-radius:12px; overflow-x:auto; }
.b-content :not(pre) > code { background:var(--b-soft); padding:2px 6px; border-radius:6px; }
.b-content iframe { max-width:100%; width:100%; aspect-ratio:16/9; height:auto; border:0; border-radius:14px; }
.b-content hr { border:0; border-top:1px solid var(--b-line); margin:2.2em 0; }

.b-faq { margin-top:44px; } .b-faq h2 { font-size:28px; font-weight:800; color:var(--b-brand); margin:0 0 16px; }
.b-faq details { border:1px solid var(--b-line); border-radius:14px; padding:0 18px; margin-bottom:10px; background:#fff; }
.b-faq details[open] { background:var(--b-soft); }
.b-faq summary { cursor:pointer; font-weight:700; padding:15px 0; color:var(--b-brand); }
.b-faq details > div { padding:0 0 16px; color:#3a3450; line-height:1.7; }
.b-tags { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:38px; padding-top:22px; border-top:1px solid var(--b-line); font-size:14px; }
.b-tags span { font-weight:800; color:var(--b-muted); text-transform:uppercase; font-size:12px; letter-spacing:.08em; margin-right:4px; }
.b-tags a { background:var(--b-soft); border:1px solid var(--b-line); padding:5px 12px; border-radius:99px; font-size:13px; }
.b-tags a:hover { border-color:var(--b-brand2); color:var(--b-brand2); }
.b-authorbox { display:flex; gap:16px; align-items:center; margin-top:28px; padding:20px 22px; border:1px solid var(--b-line); border-radius:18px; background:var(--b-soft); }
.b-authorbox small { color:var(--b-muted); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:11px; display:block; }
.b-authorbox strong { font-size:17px; color:var(--b-brand); } .b-authorbox p { margin:4px 0 0; font-size:14.5px; color:var(--b-muted); line-height:1.5; }
.b-share a { color:var(--b-brand2); font-weight:600; }
.b-prevnext { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:44px auto 0; max-width:980px; }
.b-prevnext a { display:block; border:1px solid var(--b-line); border-radius:16px; padding:16px 20px; background:#fff; transition:.15s; }
.b-prevnext a.r { text-align:right; grid-column:2; }
.b-prevnext a:hover { border-color:var(--b-brand2); box-shadow:0 10px 26px rgba(39,17,81,.1); } .b-prevnext small { display:block; color:var(--b-muted); font-weight:700; margin-bottom:4px; } .b-prevnext span { font-weight:700; color:var(--b-brand); line-height:1.35; }
.b-related { margin-top:56px; padding-top:40px; border-top:1px solid var(--b-line); } .b-related h2 { font-size:28px; font-weight:800; color:var(--b-brand); margin:0 0 22px; }
@media (max-width:1020px) {
  .b-art-grid { grid-template-columns:minmax(0,740px); }
  .b-side { position:static; grid-row:2; margin-top:30px; } .b-toc-d { display:none; } .b-share-d { display:none; }
  .b-toc-m { display:block; } .b-share-m { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:18px; font-size:14px; } .b-share-m span { font-weight:700; }
}
@media (max-width:620px) {
  .b-prevnext { grid-template-columns:1fr; } .b-prevnext a.r { grid-column:auto; text-align:left; }
  .b-content { font-size:17px; } .b-content > p:first-of-type { font-size:18px; } .b-content h2 { font-size:25px; } .b-content h3 { font-size:20px; }
  .b-hero-img { border-radius:14px; } .b-byline { border-radius:18px; } .b-authorbox { flex-direction:column; text-align:center; }
}
