:root{
  --accent:#1e73be;--accent-dark:#155a94;--text:#222;--muted:#767676;
  --page-bg:#f4f4f4;--card:#fff;--line:#e6e6e6;--err:#d64b2c;--fix:#1c8a52;
  --nav-bg:#fff;--navbar:#16243d;--navbar-hover:#243651;--footer-bg:#1e73be;--footer-text:#d6e6f5;--container:1200px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;font-size:17px;line-height:1.65;color:var(--text);background:var(--page-bg);-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-dark)}
img{max-width:100%;display:block}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}

.top-bar{background:#0d1526;color:#9fb0cc;font-size:13px}
.top-bar-inner{display:flex;align-items:center;justify-content:space-between;height:38px}
.tb-menu{display:flex;list-style:none;gap:2px}
.tb-menu a{color:#c3cfe4;padding:6px 11px;font-size:13px;white-space:nowrap}
.tb-menu a:hover{color:#fff}
@media(max-width:640px){.tb-tag{display:none}.top-bar-inner{justify-content:center}.tb-menu{overflow-x:auto}}

.site-header{background:var(--nav-bg);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.site-brand{display:inline-flex;text-decoration:none;transition:opacity .16s}
.site-brand:hover{opacity:.88}
.brand-chip{display:inline-flex;align-items:center;gap:12px}
.mark{width:40px;height:40px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1}
.site-title{font-size:24px;font-weight:700;letter-spacing:-.015em;color:var(--text)}
.site-title .et{color:var(--err)}.site-title .ft{color:var(--fix)}.site-title .ht{color:var(--text)}
.brand-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ffb020;margin-left:4px;vertical-align:middle;box-shadow:0 0 0 3px rgba(255,176,32,.16)}
.site-desc{font-size:12px;color:var(--muted);margin-top:5px}

.main-nav{background:var(--navbar)}
.main-nav .container{display:flex;align-items:center;justify-content:space-between}
.menu{display:flex;list-style:none}
.menu li{position:relative}
.menu>li>a{display:block;color:#fff;padding:11px 16px;font-size:14.5px;font-weight:500;white-space:nowrap;transition:background .15s}
.menu>li>a:hover{background:var(--navbar-hover)}
.caret{font-size:11px;margin-left:3px;opacity:.9}
.mega{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--line);border-top:3px solid var(--accent-dark);box-shadow:0 10px 30px rgba(0,0,0,.16);border-radius:0 0 5px 5px;padding:18px 22px;display:flex;gap:22px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s;z-index:60}
.has-mega:hover .mega,.has-mega:focus-within .mega{opacity:1;visibility:visible;transform:translateY(0)}
.mega-right{left:auto;right:0}
.mega-others{display:grid;grid-template-columns:repeat(3,minmax(155px,1fr));gap:16px 26px;max-width:min(92vw,640px)}
.mega-col{min-width:130px}
.mega-h{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding-bottom:8px;margin-bottom:6px;border-bottom:1px solid var(--line);min-height:14px}
.mega-col a{display:block;color:var(--text);padding:6px 8px;font-size:13.5px;font-weight:500;border-radius:3px;white-space:nowrap}
.mega-col a:hover{background:#f0f6fc;color:var(--accent)}
.nav-search{display:flex}
.nav-search input{border:1px solid #2b3d5c;background:#0f1a2e;color:#fff;padding:7px 11px;border-radius:3px 0 0 3px;font-size:13.5px;width:150px}
.nav-search button{background:var(--accent);color:#fff;border:none;padding:0 13px;border-radius:0 3px 3px 0;cursor:pointer;font-size:13.5px}
@media(max-width:900px){.nav-search{display:none}.mega{display:none}.menu{overflow-x:auto}}

.breadcrumb{background:#fff;border-bottom:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.breadcrumb .container{padding:11px 20px}
.breadcrumb a{color:var(--muted)}.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span{margin:0 7px;color:#bbb}

.ad-slot{background:#fafafa;border:1px dashed #cfcfcf;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:12px;letter-spacing:.05em;text-transform:uppercase;margin:0 auto}
.ad-leaderboard{max-width:728px;height:90px;margin:20px auto}
.ad-incontent{height:110px;margin:26px 0}
.ad-sidebar{height:250px;margin-bottom:26px}

.site-main{padding:26px 0 40px}
.layout{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}
@media(max-width:900px){.layout{grid-template-columns:1fr}}

.page-heading{margin-bottom:20px}
.page-heading h1{font-size:26px;font-weight:700;letter-spacing:-.01em}
.page-heading p{color:var(--muted);font-size:15px;margin-top:4px}

.post{background:var(--card);border:1px solid var(--line);border-radius:4px;margin-bottom:26px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.post-thumb{position:relative;background:#0d1526;aspect-ratio:16/6.2;display:flex;align-items:center;justify-content:center}
.post-thumb .code-badge{font-family:"SFMono-Regular",Consolas,Menlo,monospace;font-size:44px;font-weight:700;color:#ffb020;letter-spacing:.03em;text-shadow:0 0 20px rgba(255,176,32,.4)}
.post-thumb .brand-tab{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.12);color:#fff;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:3px}
.post-body{padding:20px 22px 22px}
.entry-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;color:var(--muted);margin-bottom:9px}
.entry-meta .cat{color:var(--err);font-weight:600}
.post-body h2{font-size:22px;font-weight:700;line-height:1.28;letter-spacing:-.01em;margin-bottom:9px}
.post-body h2 a{color:var(--text)}.post-body h2 a:hover{color:var(--accent)}
.post-body p{color:#444;font-size:15.5px;margin-bottom:16px}
.read-more{display:inline-block;background:var(--accent);color:#fff;font-size:14px;font-weight:600;padding:9px 18px;border-radius:3px}
.read-more:hover{background:var(--accent-dark);color:#fff}

.brandgrid{display:flex;flex-wrap:wrap;gap:11px;margin-bottom:10px}
.bpill{background:#fff;border:1px solid var(--line);border-radius:100px;padding:9px 18px;font-weight:600;font-size:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.bpill:hover{border-color:var(--fix);transform:translateY(-2px)}
.bpill.local{border-style:dashed}

.codes-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:620px){.codes-list{grid-template-columns:1fr}}
.ccard{background:#fff;border:1px solid var(--line);border-left:3px solid var(--err);border-radius:5px;padding:16px 18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ccard .code{font-family:monospace;font-weight:700;font-size:18px;color:var(--err)}
.ccard h3{font-size:15px;margin:4px 0 4px}.ccard h3 a{color:var(--text)}
.ccard p{font-size:13.5px;color:#555;line-height:1.45}

/* single article */
.article{background:var(--card);border:1px solid var(--line);border-radius:5px;padding:32px 36px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
@media(max-width:560px){.article{padding:24px 20px}}
.article .entry-meta .brand{font-weight:600}
.article h1{font-size:29px;font-weight:700;line-height:1.25;letter-spacing:-.015em;margin-bottom:18px}
.readout{background:#0b1220;border-radius:10px;padding:20px 24px;display:flex;align-items:center;gap:20px;margin-bottom:24px}
.readout .code{font-family:monospace;font-size:46px;font-weight:700;color:#ffb020;text-shadow:0 0 20px rgba(255,176,32,.4);line-height:1}
.readout .rmeta{color:#c3cfe4;font-size:14px}.readout .rmeta b{color:#fff;display:block;font-size:15px;margin-bottom:2px}
.quick{background:#eaf4ec;border:1px solid #cfe6d6;border-left:4px solid var(--fix);border-radius:5px;padding:16px 20px;margin-bottom:24px}
.quick h2{font-size:15px;text-transform:uppercase;letter-spacing:.05em;color:var(--fix);margin-bottom:6px}
.quick p{font-size:16px;margin:0}
.article h2.sec{font-size:22px;font-weight:700;margin:28px 0 12px;letter-spacing:-.01em;padding-bottom:8px;border-bottom:2px solid #eee}
.article>p{margin-bottom:15px}
.article ul.bullets{margin:0 0 16px 4px;list-style:none}
.article ul.bullets li{position:relative;padding-left:26px;margin-bottom:10px}
.article ul.bullets li::before{content:"";position:absolute;left:4px;top:9px;width:8px;height:8px;border-radius:50%;background:var(--err)}
.steps{counter-reset:step;margin:8px 0 20px}
.steps .step{position:relative;padding:0 0 18px 52px}
.steps .step::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:0;width:34px;height:34px;background:var(--accent);color:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.steps .step:not(:last-child)::after{content:"";position:absolute;left:16.5px;top:36px;bottom:0;width:1.5px;background:#dbe3ee}
.steps .step h3{margin:4px 0 5px;font-size:16.5px}
.steps .step p{margin:0;font-size:15px;color:#444}
.alert{background:#fdecec;border:1px solid #f3c9c2;border-left:4px solid var(--err);border-radius:5px;padding:16px 20px;margin:24px 0}
.alert p{margin:0;font-size:15px;color:#5a2318}.alert b{color:#a5341f}
.part{display:flex;gap:16px;align-items:center;background:#f7f9fc;border:1px solid var(--line);border-radius:6px;padding:16px 18px;margin:20px 0}
.part .pico{width:46px;height:46px;border-radius:8px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;flex:none}
.part h3{margin:0 0 2px;font-size:15px}.part p{margin:0;font-size:14px;color:var(--muted)}
.faq details{border:1px solid var(--line);border-radius:6px;margin-bottom:10px;overflow:hidden}
.faq summary{padding:15px 18px;font-weight:600;font-size:15.5px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;background:#fafbfc}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:20px;color:var(--accent)}
.faq details[open] summary::after{content:"–"}
.faq details[open] summary{border-bottom:1px solid var(--line)}
.faq .fa{padding:14px 18px;font-size:15px;color:#444}
.related{margin-top:30px}.related h2{font-size:20px;font-weight:700;margin-bottom:14px}
.rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:700px){.rel-grid{grid-template-columns:1fr}}
.rel{display:block;background:#fff;border:1px solid var(--line);border-left:3px solid var(--err);border-radius:5px;padding:14px 16px}
.rel .rc{font-family:monospace;font-weight:700;color:var(--err);font-size:16px}
.rel p{margin:4px 0 0;font-size:13.5px;color:#444;line-height:1.4}

/* static page */
.staticpage{background:#fff;border:1px solid var(--line);border-radius:5px;padding:34px 40px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
@media(max-width:560px){.staticpage{padding:24px 20px}}
.staticpage h1{font-size:28px;margin-bottom:6px}
.staticpage .updated{color:var(--muted);font-size:13px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.staticpage h2{font-size:19px;margin:22px 0 8px}
.staticpage p{margin-bottom:14px}

.widget{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:20px;margin-bottom:26px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.widget-title{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding-bottom:11px;margin-bottom:15px;border-bottom:2px solid var(--accent)}
.search-widget{display:flex}
.search-widget input{flex:1;border:1px solid var(--line);border-right:none;padding:10px 12px;border-radius:3px 0 0 3px;font-size:14px}
.search-widget button{background:var(--accent);color:#fff;border:none;padding:0 16px;border-radius:0 3px 3px 0;cursor:pointer}
.cat-list{list-style:none}
.cat-list li{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #f0f0f0;font-size:15px}
.cat-list li:last-child{border-bottom:none}
.cat-list a{color:var(--text)}.cat-list a:hover{color:var(--accent)}
.recent{list-style:none}
.recent li{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #f0f0f0;align-items:center}
.recent li:last-child{border-bottom:none}
.recent .rcode{flex:none;width:54px;height:44px;background:#0b1220;border-radius:4px;display:flex;align-items:center;justify-content:center;font-family:monospace;font-weight:700;font-size:15px;color:#ffb020}
.recent .rtext{font-size:14px;line-height:1.35;font-weight:500}
.recent .rtext small{display:block;color:var(--muted);font-weight:400;font-size:12px;margin-top:2px}
.recent a{color:var(--text)}.recent a:hover{color:var(--accent)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{background:#f3f3f3;color:#555;font-size:13px;padding:6px 12px;border-radius:3px;font-family:monospace;font-weight:600}
.tag-cloud a:hover{background:var(--accent);color:#fff}
.pagination{display:flex;gap:6px;margin-top:6px}
.pagination a,.pagination span{padding:9px 14px;border:1px solid var(--line);background:#fff;border-radius:3px;font-size:14px;font-weight:600;color:var(--accent)}
.pagination .current{background:var(--accent);color:#fff;border-color:var(--accent)}

.site-footer{background:var(--footer-bg);color:var(--footer-text);padding:44px 0 0;margin-top:20px}
.footer-widgets{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding-bottom:36px}
@media(max-width:820px){.footer-widgets{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.footer-widgets{grid-template-columns:1fr}}
.fwidget h4{color:#fff;font-size:15px;font-weight:700;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em}
.fwidget p{font-size:14px}.fwidget ul{list-style:none}.fwidget ul li{margin-bottom:9px}
.fwidget a{color:var(--footer-text);font-size:14px}.fwidget a:hover{color:#fff}
.footer-brand{display:flex;align-items:center;margin-bottom:13px}
.footer-brand .site-title{font-size:21px;color:#fff}.footer-brand .ht{color:#fff}
.copyright{border-top:1px solid rgba(255,255,255,.22);padding:18px 0;font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.copyright .team{font-family:monospace;color:#fff;font-weight:600}

/* featured image + rich article body (from WYSIWYG) */
.article .featured{width:100%;border-radius:8px;margin:0 0 22px;border:1px solid var(--line)}
.article-body{font-size:16.5px;color:#333;margin-bottom:20px}
.article-body p{margin-bottom:15px}
.article-body h2{font-size:22px;font-weight:700;margin:26px 0 12px;letter-spacing:-.01em;padding-bottom:8px;border-bottom:2px solid #eee}
.article-body h3{font-size:18px;font-weight:700;margin:20px 0 8px}
.article-body ul,.article-body ol{margin:0 0 16px 22px}
.article-body li{margin-bottom:8px}
.article-body blockquote{border-left:4px solid var(--accent);background:#f7f9fc;margin:0 0 16px;padding:10px 18px;color:#555;border-radius:0 5px 5px 0}
.article-body pre{background:#0d1526;color:#e6edf5;padding:14px 16px;border-radius:7px;overflow:auto;font-size:14px;margin-bottom:16px}
.article-body img{border-radius:8px;margin:10px 0}
.article-body a{color:var(--accent);text-decoration:underline}

/* callout boxes + tables from the editor (front-end) */
.article-body .callout{border-left:4px solid;border-radius:0 8px 8px 0;padding:14px 18px;margin:0 0 18px;font-size:16px}
.article-body .callout p{margin:0}
.article-body .callout.tip{background:#eaf7ef;border-color:#17a55c}
.article-body .callout.note{background:#eaf2fb;border-color:#1e73be}
.article-body .callout.warn{background:#fdf3e6;border-color:#e0913f}
.article-body table.wtbl{border-collapse:collapse;width:100%;margin:0 0 18px;font-size:15px}
.article-body table.wtbl th,.article-body table.wtbl td{border:1px solid var(--line);padding:9px 12px;text-align:left}
.article-body table.wtbl th{background:#f6f8fb;font-weight:700}
.article-body hr{border:none;border-top:2px solid #e6e6e6;margin:22px 0}

/* editor image figures */
.article-body figure.post-figure{margin:0 0 18px}
.article-body figure.post-figure img{width:100%;border-radius:8px}

/* share bar */
.share-bar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:28px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.share-label{font-size:14px;font-weight:700;color:#333;text-transform:uppercase;letter-spacing:.03em}
.share-btns{display:flex;flex-wrap:wrap;gap:8px}
.sh{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:7px;font-size:13.5px;font-weight:600;color:#fff;border:none;cursor:pointer;text-decoration:none;line-height:1}
.sh svg{flex:none}
.sh.fb{background:#1877f2}.sh.wa{background:#25d366}.sh.tw{background:#0f1419}.sh.li{background:#0a66c2}.sh.pin{background:#e60023}
.sh.cp{background:#5a6472}
.sh:hover{opacity:.9;color:#fff}
@media(max-width:520px){.sh span{display:none}.sh{padding:9px 11px}}

/* author box */
.author-box{display:flex;gap:18px;align-items:flex-start;background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin:26px 0}
.author-avatar{flex:none;width:66px;height:66px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#1e73be,#0d1526);display:flex;align-items:center;justify-content:center}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.author-avatar span{color:#fff;font-size:28px;font-weight:700}
.author-eyebrow{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--accent)}
.author-name{font-size:19px;font-weight:700;margin:3px 0 7px}
.author-bio{font-size:14.5px;color:#555;line-height:1.6;margin:0}
@media(max-width:520px){.author-box{flex-direction:column;gap:12px}}


/* ===== header logo + title animations (loops forever, re-shows every cycle) ===== */
@keyframes efx-logo-wiggle{
  0%,58%,100%{transform:rotate(0) scale(1)}
  64%{transform:rotate(-10deg) scale(1.07)}
  71%{transform:rotate(8deg) scale(1.05)}
  78%{transform:rotate(-5deg) scale(1.03)}
  85%{transform:rotate(2deg) scale(1.01)}
  92%{transform:rotate(0) scale(1)}
}
@keyframes efx-title-cycle{
  0%{opacity:0;transform:translateY(10px)}
  10%{opacity:1;transform:translateY(0)}
  100%{opacity:1;transform:translateY(0)}
}
@keyframes efx-dot{0%,100%{box-shadow:0 0 0 3px rgba(255,176,32,.18)}50%{box-shadow:0 0 0 7px rgba(255,176,32,0)}}
.site-header .mark{animation:efx-logo-wiggle 5s ease-in-out infinite;transform-origin:center}
.site-header .site-title span{display:inline-block}
.site-header .site-title .et{animation:efx-title-cycle 5s ease infinite;animation-delay:.10s}
.site-header .site-title .ft{animation:efx-title-cycle 5s ease infinite;animation-delay:.22s}
.site-header .site-title .ht{animation:efx-title-cycle 5s ease infinite;animation-delay:.34s}
.site-header .site-desc{animation:efx-title-cycle 5s ease infinite;animation-delay:.44s}
.site-header .brand-dot{animation:efx-dot 2.2s ease-in-out infinite}
.site-brand:hover .brand-dot{animation-duration:1s}
@media (prefers-reduced-motion: reduce){
  .site-header .mark,.site-header .site-title span,.site-header .brand-dot,.site-header .site-desc{animation:none!important}
}
