/* ==========================================================================
   Onxeera — blog article layout (single posts)
   Selectors use `html body .onx-article … :not(#_)` to win over onx-v3.css.
   ========================================================================== */

html body .onx-article{--oa-ink:#05102C;--oa-tx:#2B3347;--oa-mu:#5A6378;--oa-line:#E4E4DE;--oa-blue:#0048C0;--oa-tint:#F2F6FD;--oa-paper:#FAFAF7;background:#fff;color:var(--oa-tx)}
html body .onx-article *{box-sizing:border-box}
.oa-wrap{max-width:1160px;margin:0 auto;padding:0 24px}

/* Reading progress */
.onx-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:9999;background:transparent;pointer-events:none}
.onx-progress i{display:block;height:100%;width:0;background:var(--onx-blue,#0048C0);transition:width .1s linear}

/* ── Header band ─────────────────────────────────────────────── */
html body .onx-article .oa-head:not(#_){background:var(--oa-paper);border-bottom:1px solid var(--oa-line);padding:44px 0 40px}
html body .onx-article .oa-crumbs:not(#_){display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--oa-mu);margin-bottom:22px}
html body .onx-article .oa-crumbs a:not(#_){color:var(--oa-mu);text-decoration:none}
html body .onx-article .oa-crumbs a:hover{color:var(--oa-blue)}
html body .onx-article .oa-crumbs span{color:#B5BAC6}
html body .onx-article .oa-cat:not(#_){display:inline-block;font-family:var(--onx-mono,monospace);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--oa-blue);background:var(--oa-tint);border:1px solid #D9E4F8;padding:5px 10px;border-radius:999px;text-decoration:none;margin-bottom:18px}
html body .onx-article h1.oa-title:not(#_){font-family:var(--onx-serif,'Newsreader',Georgia,serif);font-weight:400;font-size:clamp(34px,4.6vw,54px);line-height:1.08;letter-spacing:-.02em;color:var(--oa-ink);max-width:880px;margin:0 0 18px}
html body .onx-article .oa-dek:not(#_){font-size:clamp(17px,1.6vw,20px);line-height:1.55;color:var(--oa-mu);max-width:760px;margin:0 0 26px}
html body .onx-article .oa-meta:not(#_){display:flex;align-items:center;gap:12px;font-size:13.5px;color:var(--oa-mu);line-height:1.45}
html body .onx-article .oa-meta b{color:var(--oa-ink);font-weight:600}
.oa-avatar{width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid var(--oa-line,#E4E4DE);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.oa-avatar img{width:70%;height:70%;object-fit:contain}
.oa-avatar.lg{width:56px;height:56px}

/* ── Grid ────────────────────────────────────────────────────── */
.oa-grid{display:grid;grid-template-columns:minmax(0,720px) 280px;justify-content:space-between;gap:64px;padding-top:48px;padding-bottom:24px}
@media(max-width:1060px){.oa-grid{grid-template-columns:minmax(0,1fr);gap:0}.oa-side{display:none}}
.oa-sticky{position:sticky;top:96px}

/* ── Sidebar ─────────────────────────────────────────────────── */
html body .onx-article .oa-k:not(#_){font-family:var(--onx-mono,monospace);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--oa-mu);margin-bottom:10px}
.oa-toc{border-left:1px solid var(--oa-line);padding-left:16px;margin-bottom:28px}
.oa-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
html body .onx-article .oa-toc a:not(#_){display:block;font-size:13.5px;line-height:1.4;color:var(--oa-mu);text-decoration:none;padding:5px 0 5px 12px;margin-left:-17px;border-left:2px solid transparent;transition:color .15s,border-color .15s}
html body .onx-article .oa-toc a:hover,html body .onx-article .oa-toc a.on:not(#_){color:var(--oa-ink);border-left-color:var(--oa-blue)}
.oa-side-cta{background:var(--oa-ink);color:#fff;border-radius:14px;padding:22px}
html body .onx-article .oa-side-cta .oa-k:not(#_){color:#8FB3F5}
.oa-side-cta b{display:block;font-size:17px;line-height:1.3;color:#fff;margin-bottom:8px;font-weight:600}
html body .onx-article .oa-side-cta p:not(#_){font-size:13.5px;line-height:1.55;color:#C9D2E3;margin:0 0 16px}

/* Buttons */
html body .onx-article a.oa-btn:not(#_){display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 18px;border-radius:8px;background:var(--oa-blue);color:#fff;font-size:14px;font-weight:600;text-decoration:none;border:1px solid var(--oa-blue);transition:background .15s}
html body .onx-article a.oa-btn:hover{background:#003A9E}
html body .onx-article .oa-side-cta a.oa-btn:not(#_){width:100%;background:#fff;color:var(--oa-ink);border-color:#fff}
html body .onx-article a.oa-btn.light:not(#_){background:#fff;color:var(--oa-ink);border-color:#fff}
html body .onx-article a.oa-btn.ghost:not(#_){background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}

/* Mobile TOC */
.oa-toc-mobile{display:none;border:1px solid var(--oa-line);border-radius:12px;background:var(--oa-paper);margin-bottom:32px}
@media(max-width:1060px){.oa-toc-mobile{display:block}}
.oa-toc-mobile summary{cursor:pointer;padding:14px 16px;font-size:14px;font-weight:600;color:var(--oa-ink);list-style:none;display:flex;justify-content:space-between}
.oa-toc-mobile summary::after{content:'+';color:var(--oa-mu);font-weight:400}
.oa-toc-mobile[open] summary::after{content:'–'}
.oa-toc-mobile ol{margin:0;padding:0 16px 14px 34px}
html body .onx-article .oa-toc-mobile li:not(#_){font-size:14px;margin:6px 0}
html body .onx-article .oa-toc-mobile a:not(#_){color:var(--oa-tx);text-decoration:none}

/* ── Article body ────────────────────────────────────────────── */
html body .onx-article .oa-body:not(#_){font-size:17.5px;line-height:1.75;color:var(--oa-tx)}
html body .onx-article .oa-body > p:first-child:not(#_){font-size:19px;line-height:1.65;color:var(--oa-ink);border-left:3px solid var(--oa-blue);padding:2px 0 2px 20px;margin-bottom:32px}
html body .onx-article .oa-body p:not(#_){margin:0 0 22px}
html body .onx-article .oa-body h2:not(#_){font-family:var(--onx-serif,'Newsreader',Georgia,serif);font-weight:400;font-size:clamp(27px,2.6vw,33px);line-height:1.2;letter-spacing:-.015em;color:var(--oa-ink);margin:56px 0 18px;padding-top:28px;border-top:1px solid var(--oa-line);scroll-margin-top:96px}
html body .onx-article .oa-body h3:not(#_){font-family:var(--onx-sans,system-ui,sans-serif);font-weight:600;font-size:19.5px;line-height:1.35;color:var(--oa-ink);margin:36px 0 12px;letter-spacing:-.005em;scroll-margin-top:96px}
html body .onx-article .oa-body strong:not(#_){font-weight:600;color:var(--oa-ink)}
html body .onx-article .oa-body a:not(#_){color:var(--oa-blue);text-decoration:underline;text-decoration-color:rgba(0,72,192,.35);text-underline-offset:3px;text-decoration-thickness:1px}
html body .onx-article .oa-body a:hover{text-decoration-color:var(--oa-blue)}

/* Lists (the global reset removes markers; restore them) */
html body .onx-article .oa-body ul:not(#_),html body .onx-article .oa-body ol:not(#_){margin:0 0 26px;padding-left:0}
html body .onx-article .oa-body ul:not(#_){list-style:none}
html body .onx-article .oa-body ul > li:not(#_){position:relative;padding-left:26px;margin:0 0 12px}
html body .onx-article .oa-body ul > li::before{content:'';position:absolute;left:6px;top:.72em;width:7px;height:7px;border-radius:2px;background:var(--oa-blue);transform:rotate(45deg)}
html body .onx-article .oa-body ol:not(#_){list-style:none;counter-reset:oa}
html body .onx-article .oa-body ol > li:not(#_){position:relative;padding-left:40px;margin:0 0 14px;counter-increment:oa;min-height:28px}
html body .onx-article .oa-body ol > li::before{content:counter(oa);position:absolute;left:0;top:.18em;width:26px;height:26px;border-radius:50%;background:var(--oa-tint);border:1px solid #D9E4F8;color:var(--oa-blue);font-family:var(--onx-mono,monospace);font-size:12.5px;font-weight:500;display:flex;align-items:center;justify-content:center}
html body .onx-article .oa-body ol[start] > li::before{content:counter(oa)}
html body .onx-article .oa-body li > ul,html body .onx-article .oa-body li > ol{margin:10px 0 0}

/* Tables */
.oa-table{margin:30px 0 34px;border:1px solid var(--oa-line);border-radius:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;box-shadow:0 1px 2px rgba(5,16,44,.04)}
html body .onx-article .oa-table table:not(#_){width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px;line-height:1.5;margin:0}
html body .onx-article .oa-table th:not(#_){background:var(--oa-ink);color:#fff;font-weight:600;font-size:13px;letter-spacing:.01em;text-align:left;padding:13px 16px;border:0;vertical-align:bottom}
html body .onx-article .oa-table td:not(#_){padding:13px 16px;border:0;border-top:1px solid var(--oa-line);vertical-align:top;color:var(--oa-tx)}
html body .onx-article .oa-table tr:nth-child(even) td:not(#_){background:#FBFBF9}
html body .onx-article .oa-table td:first-child:not(#_){font-weight:600;color:var(--oa-ink)}
html body .onx-article .oa-table tr:first-child th:first-child:empty{background:var(--oa-ink)}

/* Code */
html body .onx-article .oa-body pre:not(#_){background:#05102C;color:#E2E8F0;border-radius:12px;padding:20px 22px;margin:28px 0;overflow-x:auto;font-size:13.5px;line-height:1.65;font-family:var(--onx-mono,ui-monospace,monospace);white-space:pre}
html body .onx-article .oa-body pre code:not(#_){background:none;color:inherit;padding:0;border:0;font-size:inherit;font-family:inherit}
html body .onx-article .oa-body code:not(#_){font-family:var(--onx-mono,ui-monospace,monospace);font-size:.86em;background:#F3F3EF;border:1px solid #E9E9E3;color:var(--oa-ink);padding:1px 6px;border-radius:5px}
html body .onx-article .oa-body blockquote:not(#_){margin:28px 0;padding:18px 22px;background:var(--oa-tint);border-left:3px solid var(--oa-blue);border-radius:0 10px 10px 0;font-size:17px;color:var(--oa-ink)}
html body .onx-article .oa-body img{max-width:100%;height:auto;border-radius:10px}
.oa-hero-img{margin:0 0 36px;border-radius:14px;overflow:hidden}
.oa-hero-img img{width:100%;height:auto;display:block}

/* FAQ */
html body .onx-article .oa-faq:not(#_){margin-top:56px}
html body .onx-article .oa-faq h2:not(#_){margin-bottom:20px}
html body .onx-article .oa-faq details:not(#_){border:1px solid var(--oa-line);border-radius:12px;background:#fff;margin:0 0 10px;transition:border-color .15s}
html body .onx-article .oa-faq details[open]:not(#_){border-color:#C9D8F3;background:#FCFDFF}
html body .onx-article .oa-faq summary:not(#_){cursor:pointer;list-style:none;padding:17px 52px 17px 20px;font-size:16.5px;font-weight:600;color:var(--oa-ink);position:relative;line-height:1.45}
html body .onx-article .oa-faq summary::-webkit-details-marker{display:none}
html body .onx-article .oa-faq summary::after{content:'+';position:absolute;right:20px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:var(--oa-tint);color:var(--oa-blue);display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:400}
html body .onx-article .oa-faq details[open] summary::after{content:'–'}
html body .onx-article .oa-faq details p:not(#_){padding:0 20px 18px;margin:0;font-size:16px;line-height:1.7;color:var(--oa-tx)}

/* Tags + author */
.oa-tags{display:flex;flex-wrap:wrap;gap:8px;margin:44px 0 0;padding-top:28px;border-top:1px solid var(--oa-line)}
html body .onx-article .oa-tags a:not(#_){font-size:13px;color:var(--oa-tx);background:#F3F3EF;border:1px solid #E9E9E3;padding:5px 12px;border-radius:999px;text-decoration:none}
html body .onx-article .oa-tags a:hover{border-color:var(--oa-blue);color:var(--oa-blue)}
.oa-author{display:flex;gap:16px;align-items:flex-start;margin:32px 0 16px;padding:22px;border:1px solid var(--oa-line);border-radius:14px;background:var(--oa-paper)}
.oa-author b{display:block;font-size:16px;color:var(--oa-ink);margin-bottom:4px}
html body .onx-article .oa-author p:not(#_){margin:0;font-size:14.5px;line-height:1.6;color:var(--oa-mu)}
html body .onx-article .oa-author .oa-k:not(#_){margin-bottom:4px}

/* CTA band */
.oa-cta-band{background:var(--oa-ink);margin-top:48px;padding:56px 0}
.oa-cta-band .oa-wrap{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
html body .onx-article .oa-cta-band .oa-k:not(#_){color:#8FB3F5}
html body .onx-article .oa-cta-band h2:not(#_){color:#fff;font-size:clamp(28px,3.2vw,40px);line-height:1.12;margin:0 0 10px;max-width:640px}
html body .onx-article .oa-cta-band p:not(#_){color:#C9D2E3;font-size:16px;margin:0;max-width:600px}
.oa-cta-btns{display:flex;gap:10px;flex-wrap:wrap}

/* Related */
.oa-related{padding:64px 0 72px;background:var(--oa-paper);border-top:1px solid var(--oa-line)}
html body .onx-article .oa-related h2:not(#_){font-size:clamp(28px,3vw,36px);margin:0 0 26px;color:var(--oa-ink)}
.oa-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(max-width:900px){.oa-cards{grid-template-columns:1fr}}
html body .onx-article a.oa-card:not(#_){display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--oa-line);border-radius:14px;padding:22px;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
html body .onx-article a.oa-card:hover{border-color:#C9D8F3;transform:translateY(-2px);box-shadow:0 8px 24px rgba(5,16,44,.06)}
.oa-card-cat{font-family:var(--onx-mono,monospace);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--oa-blue)}
.oa-card b{font-size:17px;line-height:1.35;color:var(--oa-ink);font-weight:600}
.oa-card-ex{font-size:14px;line-height:1.55;color:var(--oa-mu);flex:1}
.oa-card-more{font-size:13.5px;font-weight:600;color:var(--oa-blue)}

/* Phones */
@media(max-width:640px){
  .oa-wrap{padding:0 18px}
  html body .onx-article .oa-head:not(#_){padding:28px 0 28px}
  html body .onx-article .oa-body:not(#_){font-size:16.5px}
  html body .onx-article .oa-body > p:first-child:not(#_){font-size:17.5px;padding-left:14px}
  html body .onx-article .oa-body h2:not(#_){margin-top:44px;padding-top:22px}
  .oa-grid{padding-top:28px}
  .oa-cta-band{padding:40px 0}
  .oa-cta-btns,.oa-cta-btns a{width:100%}
  html body .onx-article .oa-table table:not(#_){font-size:13.5px}
}

/* ── Article boxes: key takeaways, checklists, related reading ── */
html body .onx-article .oa-body .oa-tldr:not(#_){background:var(--oa-tint);border:1px solid #D9E4F8;border-left:3px solid var(--oa-blue);border-radius:12px;padding:20px 24px 18px;margin:0 0 32px}
html body .onx-article .oa-body :is(.oa-tldr-k,.oa-box-k,.oa-related-k):not(#_){font-family:var(--onx-mono,monospace);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--oa-blue);margin:0 0 10px;font-weight:400}
html body .onx-article .oa-body :is(.oa-tldr,.oa-box,.oa-related-inline) ul:not(#_){margin:0;padding-left:20px}
html body .onx-article .oa-body :is(.oa-tldr,.oa-box,.oa-related-inline) li:not(#_){font-size:15.5px;line-height:1.6;margin:0 0 6px}
html body .onx-article .oa-body .oa-box:not(#_){background:var(--oa-paper);border:1px solid var(--oa-line);border-radius:12px;padding:20px 24px 16px;margin:28px 0}
html body .onx-article .oa-body .oa-box li::marker{color:#0F7A45}
html body .onx-article .oa-body .oa-related-inline:not(#_){border-top:1px solid var(--oa-line);border-bottom:1px solid var(--oa-line);padding:20px 0 14px;margin:36px 0}
html body .onx-article .oa-body .oa-related-inline a:not(#_){font-weight:500}
