/* PingCloud Blog — custom widget + article typography styles.
   Loaded by the generated blog pages alongside the compiled tailwind.css.
   Colors mirror tailwind.config.js tokens (light theme). */

/* ── Search box ─────────────────────────────────────────────── */
.bl-search{
  width:100%;
  background:#FFFFFF;
  padding:10px 44px 10px 40px;
  border-radius:12px;
  border:1px solid #E2E8F0;
  box-shadow:0 1px 2px 0 rgba(0,0,0,.05);
  font-size:14px;
  line-height:1.5;
  color:#131b2e;
}
.bl-search::placeholder{color:#707881}
.bl-search:focus{outline:none;border-color:#006194;box-shadow:0 0 0 2px rgba(0,97,148,.25)}
.bl-search-clear{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  display:none;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:8px;color:#707881;cursor:pointer;
}
.bl-search-clear:hover{background:#F1F5F9;color:#131b2e}
.bl-search-clear.bl-on{display:flex}

/* ── Category chips / tabs ──────────────────────────────────── */
.bl-cat-chip{
  display:inline-flex;align-items:center;gap:4px;
  padding:2px 8px;border-radius:9999px;
  font-size:12px;font-weight:600;line-height:1rem;letter-spacing:.02em;
  text-decoration:none;white-space:nowrap;
}
.bl-cat-tab{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 16px;border-radius:8px;white-space:nowrap;
  font-size:12px;font-weight:600;line-height:1rem;letter-spacing:.02em;
  background:#FFFFFF;border:1px solid #E2E8F0;color:#3f4850;
  cursor:pointer;transition:all .15s;text-decoration:none;
}
.bl-cat-tab:hover{color:#131b2e;background:#F1F5F9}
.bl-cat-tab.active{background:#006194;border-color:#006194;color:#ffffff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.bl-cat-tab-count{padding:2px 6px;border-radius:9999px;font-size:11px;background:#F1F5F9;color:#707881}
.bl-cat-tab.active .bl-cat-tab-count{background:rgba(255,255,255,.2);color:#ffffff}
/* Category tab rail: the scrollbar keeps its gutter (no layout shift) but the
   thumb stays transparent until the cursor enters the row. Modern Chrome
   (121+) and Firefox honor scrollbar-width/color (the ::-webkit-scrollbar
   block is the Safari / older-Chrome fallback). Scoped here so the page keeps
   its own default scrollbars. */
.bl-cat-tabs{scrollbar-width:thin;scrollbar-color:transparent transparent}
.bl-cat-tabs:hover{scrollbar-color:#cbd5e1 transparent}
.bl-cat-tabs::-webkit-scrollbar{height:6px}
.bl-cat-tabs::-webkit-scrollbar-track{background:transparent}
.bl-cat-tabs::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}
.bl-cat-tabs:hover::-webkit-scrollbar-thumb{background:#cbd5e1}

/* ── Article cards ──────────────────────────────────────────── */
.bl-card{
  background:#FFFFFF;border:1px solid #E2E8F0;border-radius:12px;
  box-shadow:0 1px 3px 0 rgba(0,0,0,.05);
  overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;
  transition:box-shadow .15s;
}
.bl-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}
.bl-card h3 a{color:inherit;text-decoration:none}
.bl-draft-badge{
  display:inline-flex;align-items:center;padding:2px 8px;border-radius:9999px;
  background:rgba(245,158,11,.14);color:#B45309;font-size:11px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;
}

/* ── Featured card ──────────────────────────────────────────── */
/* Cover images are data charts, not photos: never crop them.
   Shared by the featured card img and the grid card thumbnail. */
.bl-cover-fit{object-fit:contain}
.bl-featured{
  display:flex;flex-direction:column;
  background:#FFFFFF;border:1px solid #E2E8F0;border-radius:16px;
  box-shadow:0 1px 3px 0 rgba(0,0,0,.05);
  overflow:hidden;transition:box-shadow .15s;
}
@media (min-width:1024px){.bl-featured{flex-direction:row}}
.bl-featured:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.bl-featured h2 a{color:inherit;text-decoration:none}
.bl-featured-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 16px;border-radius:8px;background:#006194;color:#ffffff;
  font-size:14px;font-weight:600;text-decoration:none;box-shadow:0 1px 2px 0 rgba(0,0,0,.05);
  transition:background .15s;
}
.bl-featured-btn:hover{background:#0284C7}
.bl-avatar{
  width:36px;height:36px;border-radius:9999px;flex:none;
  background:rgba(0,97,148,.1);color:#006194;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;
}

/* ── Empty state ────────────────────────────────────────────── */
.bl-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:48px 24px;background:#FFFFFF;border:1px solid #E2E8F0;border-radius:12px;
  text-align:center;
}
.bl-empty[hidden]{display:none}
.bl-empty-reset{
  margin-top:16px;padding:6px 16px;border-radius:8px;border:none;
  background:#eaedff;color:#131b2e;font-size:12px;font-weight:600;cursor:pointer;
}
.bl-empty-reset:hover{background:#e2e7ff}

/* ── Pagination ─────────────────────────────────────────────── */
.bl-page-btn{
  min-width:34px;padding:6px 10px;border-radius:8px;
  background:#FFFFFF;border:1px solid #E2E8F0;color:#3f4850;
  font-size:12px;font-weight:600;cursor:pointer;transition:all .15s;
}
.bl-page-btn:hover:not(:disabled):not(.active){background:#F1F5F9;color:#131b2e}
.bl-page-btn.active{background:#006194;border-color:#006194;color:#ffffff}
.bl-page-btn:disabled{opacity:.5;cursor:not-allowed}

/* ── Dark CTA card ──────────────────────────────────────────── */
.bl-cta-dark{
  position:relative;overflow:hidden;border-radius:16px;
  background:#0B1120;color:#ffffff;padding:32px;
  display:flex;flex-direction:column;gap:24px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
@media (min-width:768px){.bl-cta-dark{flex-direction:row;align-items:center;justify-content:space-between}}
.bl-cta-dark-text{position:relative;z-index:1;max-width:560px}
.bl-cta-dark-text p{margin-top:4px}
.bl-cta-dark-actions{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;flex:none}
@media (min-width:640px){.bl-cta-dark-actions{flex-direction:row}}
.bl-cta-dark::after{
  content:"";position:absolute;right:-40px;bottom:-40px;width:320px;height:320px;
  border-radius:9999px;background:rgba(0,97,148,.25);filter:blur(48px);pointer-events:none;
}
.bl-cta-btn-primary,.bl-cta-btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 24px;border-radius:8px;font-size:14px;font-weight:600;
  text-decoration:none;transition:background .15s;white-space:nowrap;
}
.bl-cta-btn-primary{background:#0284C7;color:#ffffff}
.bl-cta-btn-primary:hover{background:#0EA5E9}
.bl-cta-btn-ghost{background:#1E293B;color:#ffffff;border:1px solid #334155}
.bl-cta-btn-ghost:hover{background:#334155}

/* ── Inline (mid-article) CTA ───────────────────────────────── */
.bl-cta-inline{margin:40px 0}
.bl-cta-inline-card{
  display:flex;align-items:center;gap:14px;
  padding:16px 20px;border:1px solid #E2E8F0;border-radius:12px;
  background:#FFFFFF;box-shadow:0 1px 3px 0 rgba(0,0,0,.05);
  text-decoration:none;transition:border-color .15s,box-shadow .15s;
}
.bl-cta-inline-card:hover{border-color:#006194;box-shadow:0 2px 8px rgba(0,97,148,.12)}
.bl-cta-inline-card>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}
.bl-cta-inline-label{font-size:14px;font-weight:700;color:#131b2e}
.bl-cta-inline-desc{font-size:12.5px;color:#707881;margin-top:2px}
.bl-cta-inline-arrow{flex:none}

/* ── Article content typography ─────────────────────────────── */
.bl-content{font-size:17px;line-height:1.85;color:#1a2333}
.bl-content h2{
  font-size:24px;line-height:1.45;font-weight:700;letter-spacing:-.01em;
  margin:44px 0 16px;color:#131b2e;scroll-margin-top:88px;
}
.bl-content h3{font-size:19px;font-weight:700;margin:32px 0 12px;color:#131b2e;scroll-margin-top:88px}
.bl-content p{margin:0 0 20px}
.bl-content strong{font-weight:700;color:#0b0b0b}
.bl-content em{font-style:normal;background:linear-gradient(transparent 62%,#CCE5FF 62%)}
.bl-content a{color:#006194;text-decoration:none;border-bottom:1px solid rgba(0,97,148,.35)}
.bl-content a:hover{color:#0284C7}
.bl-content hr{border:0;height:1px;background:#E2E8F0;margin:44px 0}
.bl-content blockquote{
  margin:0 0 24px;padding:16px 22px;background:#F8FAFC;
  border-left:3px solid #006194;border-radius:0 8px 8px 0;
  color:#33404d;font-size:16px;
}
.bl-content blockquote p{margin:0}
.bl-content ul,.bl-content ol{margin:0 0 20px;padding-left:26px}
.bl-content li{margin-bottom:8px}
.bl-content li>p{margin-bottom:8px}
.bl-content code{
  background:#F1F5F9;padding:2px 6px;border-radius:4px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.88em;color:#0f172a;overflow-wrap:anywhere;
}
.bl-content pre{
  background:#0B1120;color:#E2E8F0;border-radius:10px;
  padding:16px 18px;overflow-x:auto;margin:0 0 24px;font-size:13.5px;line-height:1.6;
}
.bl-content pre code{background:transparent;padding:0;color:inherit;font-size:inherit}
.bl-content figure{margin:8px 0 24px}
.bl-content figure img{display:block;width:100%;height:auto;border:1px solid #E2E8F0;border-radius:8px}
.bl-content figcaption{
  margin-top:8px;font-size:13px;color:#707881;text-align:center;line-height:1.5;
}
.bl-content img{display:block;max-width:100%;height:auto;border:1px solid #E2E8F0;border-radius:8px;margin:8px 0 20px}
.bl-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0 26px}
.bl-content table{
  width:100%;border-collapse:collapse;font-size:14.5px;
  font-variant-numeric:tabular-nums;
}
.bl-content th,.bl-content td{
  padding:10px 12px;border-bottom:1px solid #E2E8F0;text-align:left;vertical-align:top;
}
.bl-content th{background:#F8FAFC;font-weight:600;color:#2b3542;font-size:13.5px;white-space:nowrap}
.bl-content tr:hover td{background:#FBFCFE}
@media (max-width:640px){
  .bl-content{font-size:16px}
  .bl-content h2{font-size:20px;margin-top:36px}
  .bl-content h3{font-size:17px}
  .bl-content table{font-size:13px}
  .bl-content th,.bl-content td{padding:8px 8px}
}

/* ── Table of contents ──────────────────────────────────────── */
.bl-toc-sticky{position:sticky;top:88px}
.bl-toc-title{
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:#707881;margin-bottom:10px;
}
.bl-toc a{
  display:block;padding:5px 0 5px 10px;border-left:2px solid #E2E8F0;
  font-size:13px;line-height:1.45;color:#3f4850;text-decoration:none;
  transition:color .15s,border-color .15s;
}
.bl-toc a.bl-toc-h3{padding-left:22px;font-size:12.5px}
.bl-toc a:hover{color:#006194}
.bl-toc a.active{color:#006194;border-left-color:#006194;font-weight:600}
.bl-toc-mobile{
  border:1px solid #E2E8F0;border-radius:12px;background:#FFFFFF;
  padding:12px 16px;margin-bottom:24px;
}
.bl-toc-mobile summary{
  cursor:pointer;list-style:none;font-size:14px;font-weight:600;color:#131b2e;
  display:flex;align-items:center;gap:6px;
}
.bl-toc-mobile summary::-webkit-details-marker{display:none}
.bl-toc-mobile summary .material-symbols-outlined{font-size:18px;line-height:1;color:#707881}
.bl-toc-mobile[open] summary{margin-bottom:8px}
.bl-toc-in-details{margin-top:8px}

/* ── Data & Methodology card ────────────────────────────────── */
.bl-meth{
  margin:40px 0;border:1px solid #E2E8F0;border-radius:12px;
  background:#FFFFFF;box-shadow:0 1px 3px 0 rgba(0,0,0,.05);overflow:hidden;
}
.bl-meth-head{
  display:flex;align-items:center;gap:8px;padding:14px 18px;
  background:#F8FAFC;border-bottom:1px solid #E2E8F0;
}
.bl-meth-head h2{margin:0}
.bl-meth-grid{display:grid;grid-template-columns:1fr;gap:0;margin:0}
@media (min-width:640px){.bl-meth-grid{grid-template-columns:1fr 1fr}}
.bl-meth-row{
  display:flex;flex-direction:column;gap:2px;
  padding:12px 18px;border-bottom:1px solid #F1F5F9;
}
.bl-meth-row dt{font-size:12px;font-weight:600;color:#707881;letter-spacing:.02em}
.bl-meth-row dd{margin:0;font-size:13.5px;line-height:1.6;color:#1a2333;overflow-wrap:anywhere}

/* ── Tags + share ───────────────────────────────────────────── */
.bl-article-foot{margin-top:40px;padding-top:20px;border-top:1px solid #E2E8F0}
.bl-tags-row{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}
.bl-tag{
  display:inline-flex;padding:3px 10px;border-radius:9999px;
  background:#F1F5F9;color:#3f4850;font-size:12.5px;font-weight:500;
}
.bl-share-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;position:relative}
.bl-share-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px;border-radius:8px;border:1px solid #E2E8F0;
  background:#FFFFFF;color:#3f4850;font-size:12.5px;font-weight:600;
  cursor:pointer;text-decoration:none;transition:all .15s;
}
.bl-share-btn:hover{border-color:#006194;color:#006194}
.bl-toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(8px);
  background:#131b2e;color:#ffffff;padding:8px 16px;border-radius:8px;
  font-size:13px;font-weight:600;opacity:0;pointer-events:none;
  transition:opacity .2s,transform .2s;z-index:60;
}
.bl-toast.bl-toast-on{opacity:1;transform:translateX(-50%) translateY(0)}

/* ── Related / prev-next ────────────────────────────────────── */
.bl-related{margin-top:40px}
.bl-related-card{
  display:flex;flex-direction:column;gap:6px;
  padding:16px;border:1px solid #E2E8F0;border-radius:12px;background:#FFFFFF;
  text-decoration:none;transition:border-color .15s,box-shadow .15s;
}
.bl-related-card:hover{border-color:#006194;box-shadow:0 2px 8px rgba(0,97,148,.1)}
.bl-related-cat{font-size:11.5px;font-weight:700;color:#006194;letter-spacing:.03em;text-transform:uppercase}
.bl-related-title{font-size:14.5px;font-weight:700;line-height:1.4;color:#131b2e}
.bl-related-card:hover .bl-related-title{color:#006194}
.bl-related-meta{font-size:12px;color:#707881}
.bl-pn{margin-top:24px}
.bl-pn-cell{
  display:flex;flex-direction:column;gap:6px;padding:14px 16px;
  border:1px solid #E2E8F0;border-radius:12px;background:#FFFFFF;
  text-decoration:none;transition:border-color .15s;
}
.bl-pn-cell:hover{border-color:#006194}
.bl-pn-label{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:#707881;letter-spacing:.03em;text-transform:uppercase}
.bl-pn-next .bl-pn-label{justify-content:flex-end}
.bl-pn-title{font-size:14px;font-weight:600;line-height:1.45;color:#131b2e}
.bl-pn-cell:hover .bl-pn-title{color:#006194}

/* ── Cover ──────────────────────────────────────────────────── */
.bl-cover{margin:0 0 28px}
.bl-cover img{box-shadow:0 1px 3px 0 rgba(0,0,0,.05)}

/* ── Footer (mirrors the homepage .pc-footer) ───────────────── */
.bl-footer{border-top:1px solid #E2E8F0;background:#FFFFFF;padding:24px 0}
.bl-footer-inner{
  max-width:1440px;margin:0 auto;padding:0 16px;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:12px;
}
@media (min-width:768px){
  .bl-footer-inner{flex-direction:row;padding:0 32px}
}
.bl-footer-l{display:flex;align-items:center;gap:8px;font-size:12px;color:#707881}
.bl-footer-logo{
  width:20px;height:20px;display:flex;align-items:center;justify-content:center;
  border-radius:4px;background:#ECEEF0;color:#0284C7;flex:none;
}
.bl-footer-logo .material-symbols-outlined{font-size:14px}
.bl-footer-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px}
.bl-footer-links a{font-size:12px;color:#707881;text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.bl-footer-links a:hover{color:#131b2e}
.bl-footer-rss{font-size:14px;line-height:1}

/* ── Mobile nav sheet ───────────────────────────────────────── */
.bl-mnav-btn{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:8px;color:#3f4850;cursor:pointer;
}
.bl-mnav-btn:hover{background:#F1F5F9;color:#131b2e}
@media (min-width:1024px){.bl-mnav-btn{display:none}}
.bl-mnav{
  position:fixed;top:64px;left:0;right:0;z-index:49;
  background:#FFFFFF;border-bottom:1px solid #E2E8F0;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  padding:8px 16px 16px;display:flex;flex-direction:column;gap:2px;
}
.bl-mnav[hidden]{display:none}
.bl-mnav-row{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 8px;border-radius:8px;text-decoration:none;color:#3f4850;
}
.bl-mnav-row:hover{background:#F1F5F9;color:#131b2e}
.bl-mnav-row-active{color:#006194;font-weight:600}
.bl-mnav-chev{font-size:18px;line-height:1;color:#CBD5E1}
@media (min-width:1024px){.bl-mnav{display:none !important}}
