/* ========================================================================== */
/*  922 Blog — article reader styles. Loads on top of pia-classic.css.        */
/* ========================================================================== */
* { box-sizing:border-box; margin:0; padding:0; }
body {
  font-family:'Helvetica Neue','Inter','Helvetica Neue',Arial,sans-serif;
  color:#0f1f3d;
  background:#fafbfc;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a { color:#ec5b4e; text-decoration:none; }
a:hover { text-decoration:underline; }

/* ── Header (unified site header) ── */
.blog-hdr {
  position:sticky; top:0; z-index:30;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid #e8eef7;
  padding:14px 22px;
  display:flex; align-items:center; gap:32px;
}
.blog-logo { flex-shrink:0; display:flex; align-items:center; }
.blog-logo img { height:50px; display:block; filter:none; }
.blog-nav { display:flex; gap:24px; flex:1; flex-wrap:wrap; }
.blog-nav a {
  font-size:14px; font-weight:600; color:#475569;
  padding:6px 4px; transition:.15s; white-space:nowrap;
}
.blog-nav a:hover, .blog-nav a.active { color:#ec5b4e; text-decoration:none; }
.blog-nav a.active { border-bottom:2px solid #f59e0b; padding-bottom:4px; }
.blog-cta {
  background:linear-gradient(90deg,#ec5b4e,#d8463a);
  color:#fff !important; padding:10px 18px; border-radius:10px;
  font-weight:700; font-size:14px;
  box-shadow:0 6px 16px rgba(22,119,255,.25);
  white-space:nowrap; flex-shrink:0; transition:.15s;
}
.blog-cta:hover { text-decoration:none; transform:translateY(-1px); box-shadow:0 8px 22px rgba(22,119,255,.35); }
@media(max-width:800px){
  .blog-hdr{gap:14px;flex-wrap:wrap}
  .blog-logo img{height:38px}
  .blog-nav{order:3;width:100%;gap:14px;padding-top:6px;border-top:1px solid #f0f4fa}
  .blog-nav a{font-size:13px}
}

/* ── Article container ── */
.blog-article {
  max-width:760px; margin:0 auto;
  padding:48px 22px 64px;
  font-size:17px;
}

.article-meta-top {
  display:flex; align-items:center; gap:18px;
  font-size:13px; color:#64748b; font-weight:600;
  margin-bottom:18px;
}
.article-cat {
  background:#fff5e8; color:#b25c00 !important;
  border:1px solid #f59e0b;
  padding:4px 12px; border-radius:99px;
  font-weight:800; font-size:11px;
  letter-spacing:.3px; text-transform:uppercase;
}
.article-cat:hover { background:#fff0d6; text-decoration:none; }
.article-date::before { content:"📅 "; }
.article-read::before { content:"⏱ "; }

.article-title {
  font-family:'Helvetica Neue','Helvetica Neue',sans-serif;
  font-size:40px; font-weight:700; line-height:1.22;
  color:#08264d; letter-spacing:-.6px;
  margin-bottom:20px;
}

.article-lede {
  font-size:19px; color:#334155; line-height:1.65;
  margin-bottom:28px; font-weight:400;
}
.article-lede code {
  background:#eef2f7; padding:1px 6px; border-radius:4px;
  font-family:'JetBrains Mono',Consolas,monospace;
  font-size:14px; color:#d8463a;
}

/* ── Author ── */
.article-author {
  display:flex; align-items:center; gap:14px;
  padding:18px 0;
  border-top:1px solid #e8eef7;
  border-bottom:1px solid #e8eef7;
  margin-bottom:32px;
}
.author-avatar {
  width:48px; height:48px; border-radius:50%;
  background:linear-gradient(135deg,#08264d,#ec5b4e);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:16px; letter-spacing:.5px;
  flex-shrink:0;
}
.author-name { font-size:15px; font-weight:700; color:#08264d; }
.author-bio  { font-size:13px; color:#64748b; line-height:1.4; margin-top:2px; }

/* ── TOC ── */
.article-toc {
  background:#fff;
  border:1px solid #e8eef7;
  border-left:4px solid #f59e0b;
  border-radius:8px;
  padding:20px 24px;
  margin:0 0 36px;
}
.toc-title {
  font-size:11px; font-weight:900; color:#ec5b4e;
  text-transform:uppercase; letter-spacing:.6px;
  margin-bottom:10px;
}
.article-toc ol {
  padding-left:18px; counter-reset:item; list-style:none;
}
.article-toc li {
  counter-increment:item;
  padding:4px 0;
  font-size:15px;
  position:relative;
}
.article-toc li::before {
  content:counter(item) ".";
  position:absolute; left:-18px;
  color:#94a3b8; font-weight:700; font-size:13px;
}
.article-toc a {
  color:#08264d; font-weight:600;
}
.article-toc a:hover { color:#ec5b4e; }

/* ── Body content ── */
.blog-article h2 {
  font-family:'Helvetica Neue','Helvetica Neue',sans-serif;
  font-size:26px; font-weight:700; line-height:1.3;
  color:#08264d; letter-spacing:-.3px;
  margin:48px 0 14px;
  scroll-margin-top:80px;
  padding-left:14px;
  border-left:3px solid #f59e0b;
}
.blog-article h3 {
  font-family:'Helvetica Neue','Helvetica Neue',sans-serif;
  font-size:19px; font-weight:600; line-height:1.35;
  color:#08264d;
  margin:30px 0 10px;
}
.blog-article p {
  margin-bottom:18px;
  color:#1f2a44;
}
.blog-article ul, .blog-article ol {
  margin:0 0 22px 22px;
  padding:0;
}
.blog-article li {
  margin-bottom:8px;
  color:#1f2a44;
}
.blog-article ul li::marker { color:#ec5b4e; }
.blog-article ol li::marker { color:#ec5b4e; font-weight:800; }
.blog-article strong { color:#08264d; font-weight:700; }
.blog-article em { font-style:italic; color:#334155; }
.blog-article a { color:#ec5b4e; font-weight:600; }
.blog-article a:hover { color:#d8463a; }

/* Inline code */
.blog-article code {
  background:#eef2f7;
  padding:1px 6px;
  border-radius:4px;
  font-family:'JetBrains Mono',Consolas,monospace;
  font-size:14.5px;
  color:#d8463a;
  border:1px solid #dbe7f6;
}

/* Code block */
.blog-article pre {
  background:#0a1929;
  color:#e2e8f0;
  padding:18px 22px;
  border-radius:10px;
  overflow-x:auto;
  margin:22px 0;
  font-family:'JetBrains Mono',Consolas,monospace;
  font-size:13.5px;
  line-height:1.65;
  box-shadow:0 8px 24px rgba(8,38,77,.18);
}
.blog-article pre code {
  background:transparent;
  border:none;
  color:#e2e8f0;
  padding:0;
  font-size:13.5px;
}

/* Tables */
.blog-article table {
  width:100%;
  border-collapse:collapse;
  margin:22px 0;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(8,38,77,.06);
}
.blog-article th {
  background:#08264d;
  color:#fff;
  padding:12px 16px;
  text-align:left;
  font-size:13px; font-weight:800;
  letter-spacing:.3px; text-transform:uppercase;
}
.blog-article td {
  padding:12px 16px;
  border-bottom:1px solid #eef2f7;
  font-size:14.5px;
  color:#1f2a44;
}
.blog-article tr:last-child td { border-bottom:none; }
.blog-article tr:nth-child(even) td { background:#fafbfc; }

/* Blockquote */
.article-quote {
  background:#fff;
  border-left:4px solid #ec5b4e;
  padding:18px 22px;
  margin:24px 0;
  border-radius:0 8px 8px 0;
  box-shadow:0 6px 18px rgba(8,38,77,.06);
}
.article-quote p {
  font-style:italic;
  color:#334155;
  font-size:17px;
  line-height:1.6;
  margin-bottom:8px;
}
.article-quote cite {
  font-size:13px;
  color:#64748b;
  font-weight:700;
  font-style:normal;
}

/* Code block */
.article-code {
  background:#0c1d33;
  color:#e6edf6;
  border:1px solid #14385f;
  border-radius:10px;
  padding:16px 18px;
  margin:22px 0;
  overflow-x:auto;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13.5px;
  line-height:1.7;
  box-shadow:0 8px 22px rgba(8,38,77,.12);
}
.article-code code {
  background:none;
  color:inherit;
  padding:0;
  font-size:inherit;
  white-space:pre;
}

/* Inline CTA block (mid-article) */
.article-cta {
  background:linear-gradient(135deg,#08264d 0%,#ec5b4e 100%);
  color:#fff;
  border-radius:14px;
  padding:32px 32px 28px;
  margin:48px 0;
  text-align:center;
  box-shadow:0 18px 50px rgba(8,38,77,.25);
}
.article-cta h3 {
  color:#fff !important;
  font-size:22px !important;
  margin-bottom:10px !important;
  border-left:none !important;
  padding-left:0 !important;
}
.article-cta p {
  color:rgba(255,255,255,.88) !important;
  font-size:15px !important;
  margin-bottom:18px !important;
}
.article-cta .cta-btn {
  display:inline-block;
  background:#fff; color:#d8463a !important;
  padding:13px 28px;
  border-radius:10px;
  font-weight:900;
  font-size:15px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.article-cta .cta-btn:hover { text-decoration:none; transform:translateY(-2px); }

/* Related */
.article-related {
  margin-top:56px;
  padding-top:32px;
  border-top:2px solid #e8eef7;
}
.article-related h3 {
  font-size:18px !important;
  color:#08264d !important;
  margin-bottom:16px !important;
  border-left:none !important;
  padding-left:0 !important;
  text-transform:uppercase;
  letter-spacing:.5px;
  font-weight:900;
}
.related-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.related-card {
  background:#fff;
  border:1px solid #e8eef7;
  border-radius:12px;
  padding:18px 18px 20px;
  display:block;
  transition:.2s;
}
.related-card:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 36px rgba(8,38,77,.10);
  text-decoration:none;
  border-color:#bfd4f6;
}
.related-tag {
  display:inline-block;
  background:#fff5e8;
  color:#b25c00;
  font-size:10px;
  font-weight:900;
  padding:3px 9px;
  border-radius:99px;
  letter-spacing:.4px;
  text-transform:uppercase;
  margin-bottom:8px;
}
.related-card h4 {
  font-size:15px;
  font-weight:700;
  color:#08264d;
  line-height:1.35;
  margin-bottom:6px;
}
.related-card p {
  font-size:13px;
  color:#64748b;
  line-height:1.5;
  margin-bottom:0;
}

/* Footer */
.blog-footer {
  background:#08192f;
  color:rgba(255,255,255,.65);
  padding:36px 22px;
  text-align:center;
  font-size:13px;
  line-height:1.8;
}
.blog-footer a { color:rgba(255,255,255,.85); margin:0 8px; }

/* ── Mobile ── */
@media (max-width:760px) {
  .blog-hdr { gap:14px; padding:12px 16px; }
  .blog-nav { gap:14px; }
  .blog-nav a { font-size:13px; }
  .blog-logo img { height:38px; }
  .blog-cta { padding:8px 14px; font-size:13px; }

  .blog-article { padding:32px 18px 48px; font-size:16px; }
  .article-title { font-size:28px; }
  .article-lede { font-size:16.5px; }
  .blog-article h2 { font-size:22px; margin-top:36px; }
  .blog-article h3 { font-size:18px; }
  .blog-article pre { font-size:12.5px; padding:14px 16px; }
  .blog-article th, .blog-article td { padding:10px 12px; font-size:13px; }
  .article-toc { padding:16px 20px; }
  .related-grid { grid-template-columns:1fr; }
  .article-cta { padding:24px 20px; }
  .article-cta h3 { font-size:18px !important; }
}
