:root{--navy:#081b35;--navy2:#102a4b;--teal:#0b8d92;--teal2:#12a3a0;--ink:#102033;--muted:#617083;--line:#dfe7ef;--soft:#f4f7fa;--white:#fff;--danger:#a52a2a;--shadow:0 18px 50px rgba(8,27,53,.10)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.65}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.site-header,.admin-header{background:rgba(8,27,53,.98);color:#fff;position:sticky;top:0;z-index:100;backdrop-filter:blur(10px)}.nav-wrap{max-width:1240px;margin:auto;min-height:76px;padding:0 24px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:11px;font-weight:850;font-size:20px;white-space:nowrap}.brand img{height:40px;width:40px;object-fit:contain;background:#fff;border-radius:8px}.nav-wrap nav{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:14px}.nav-wrap nav a{opacity:.9}.nav-wrap nav a:hover{opacity:1}.nav-cta{background:var(--teal2);padding:9px 15px;border-radius:9px;font-weight:800;opacity:1!important}.menu-toggle{display:none;margin-left:auto;background:none;border:0;color:#fff;font-size:25px;cursor:pointer}.hero{background:linear-gradient(125deg,var(--navy),#12365c 58%,#087d82);color:#fff;min-height:500px;display:flex;align-items:center;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:620px;height:620px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-190px;top:-260px}.hero-inner{width:min(1160px,100%);margin:auto;padding:78px 24px;display:grid;grid-template-columns:1.6fr .7fr;gap:60px;align-items:center;position:relative;z-index:1}.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:850;color:var(--teal)}.hero .eyebrow{color:#9be8e7}.hero h1{font-size:clamp(44px,6.2vw,76px);line-height:1.01;letter-spacing:-2.5px;margin:14px 0 22px}.hero h1 span{color:#66e0dc}.hero p{max-width:700px;color:#d8e7f4;font-size:18px}.actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:var(--teal);color:#fff;padding:11px 17px;font-weight:800;cursor:pointer}.btn:hover{filter:brightness(.96);transform:translateY(-1px)}.btn-light{background:#fff;color:var(--navy)}.btn-small{padding:8px 12px;font-size:13px}.hero-card{padding:30px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.07);box-shadow:0 25px 60px rgba(0,0,0,.12)}.hero-card span{font-size:11px;letter-spacing:.12em;color:#9be8e7;font-weight:800}.hero-card strong{display:block;font-size:30px;line-height:1.15;margin:10px 0}.hero-card p{font-size:14px;color:#d2e1ed}.shell{max-width:1160px;margin:auto;padding:36px 24px 80px}.chips{display:flex;gap:8px;overflow:auto;padding-bottom:25px}.chips a{white-space:nowrap;border:1px solid var(--line);padding:8px 13px;border-radius:999px;font-size:13px}.chips a.active,.chips a:hover{background:var(--navy);color:#fff;border-color:var(--navy)}.featured{display:grid;grid-template-columns:1.08fr 1fr;background:var(--soft);border-radius:18px;overflow:hidden;margin:8px 0 55px;box-shadow:var(--shadow)}.feature-image{min-height:390px;background:#e9eef3}.feature-image img{width:100%;height:100%;display:block;object-fit:cover}.feature-copy{padding:46px;display:flex;flex-direction:column;align-items:flex-start}.badge{display:inline-block;background:#e5f6f5;color:#08777b;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.feature-copy h2{font-size:clamp(29px,4vw,46px);line-height:1.1;margin:14px 0}.feature-copy p{color:var(--muted);font-size:17px}.meta{color:#748294;font-size:12px;margin:14px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 24px}.section-head h2{font-size:32px;line-height:1.15;margin:5px 0}.search{display:flex;gap:8px}.search input{border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-width:230px;outline:none}.search input:focus,input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(11,141,146,.10)}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff;transition:.2s;box-shadow:0 7px 22px rgba(8,27,53,.04)}.post-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.post-image{display:block;aspect-ratio:16/9;background:var(--soft);overflow:hidden}.post-image img{width:100%;height:100%;object-fit:cover}.post-body{padding:20px}.post-body h3{font-size:20px;line-height:1.25;margin:11px 0}.post-body p{color:var(--muted);font-size:14px;margin:0}.pagination{display:flex;justify-content:center;gap:7px;margin-top:32px}.pagination a{border:1px solid var(--line);padding:8px 12px;border-radius:8px}.pagination a.active,.pagination a:hover{background:var(--navy);color:#fff}.empty,.not-found{max-width:800px;margin:70px auto;padding:60px 24px;text-align:center}.category-page{padding-top:55px}.category-heading{padding:15px 0 35px}.category-heading h1{font-size:48px;line-height:1.1;margin:7px 0}.category-heading p{color:var(--muted);max-width:700px}.article{max-width:900px;margin:auto;padding:60px 24px 80px}.article-head{max-width:820px;margin:auto}.back{display:inline-block;color:var(--teal);font-size:13px;font-weight:800;margin-bottom:20px}.article-head h1{font-size:clamp(40px,6vw,66px);line-height:1.05;letter-spacing:-1.7px;margin:18px 0}.deck{font-size:20px;color:var(--muted);line-height:1.55}.article-image{margin:42px 0;border-radius:18px;overflow:hidden}.article-image img{width:100%;display:block;max-height:590px;object-fit:cover}.article-content{font-size:18px;line-height:1.85}.article-content h2{font-size:30px;line-height:1.2;margin-top:45px}.article-content h3{font-size:23px}.article-content a{color:var(--teal);text-decoration:underline}.article-content img{max-width:100%;height:auto}.article-content table{width:100%;border-collapse:collapse;margin:25px 0}.article-content th,.article-content td{border:1px solid var(--line);padding:10px;text-align:left}.share-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin-top:45px;font-size:13px}.share-row a{padding:7px 11px;border:1px solid var(--line);border-radius:8px;font-weight:700}.article-cta{margin-top:45px;background:linear-gradient(120deg,var(--navy),#0b6975);color:#fff;padding:32px;border-radius:16px;display:flex;justify-content:space-between;align-items:center;gap:25px}.article-cta .eyebrow{color:#8fe5e3}.article-cta h2{margin:7px 0;font-size:27px;line-height:1.2}.article-cta p{color:#d5e5ee}.related{padding-top:0}.site-footer{background:var(--navy);color:#d8e4ef;padding:50px max(24px,calc((100% - 1160px)/2)) 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.footer-grid strong{color:#fff;display:block;margin-bottom:10px}.footer-grid a{display:block;margin-top:8px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:34px;height:34px;background:#fff;border-radius:7px}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:20px;font-size:12px}.admin-shell{max-width:1200px;margin:auto;padding:48px 24px 80px}.admin-shell.narrow{max-width:1000px}.admin-top{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin-bottom:28px}.admin-top h1{font-size:42px;line-height:1.1;margin:5px 0}.admin-top p{color:var(--muted)}.admin-actions .btn{margin-left:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.stats div{padding:20px;border:1px solid var(--line);border-radius:13px;background:#fff}.stats span{display:block;color:var(--muted);font-size:12px}.stats strong{font-size:30px}.admin-card,.editor-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 22px rgba(8,27,53,.04)}.admin-card-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.admin-card h2{margin:0;font-size:20px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}td small{display:block;color:#8995a4;margin-top:4px}.status{font-size:11px;font-weight:850;padding:4px 8px;border-radius:99px;background:#eef2f6}.status.published{background:#e4f6ef;color:#167052}.status.draft{background:#fff4df;color:#8a641a}.editor-form{padding:22px;display:flex;flex-direction:column;gap:15px}.editor-form label{font-weight:750;font-size:13px}.editor-form label small{font-weight:400;color:var(--muted)}.editor-form input,.editor-form textarea,.editor-form select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;margin-top:6px;outline:none}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.content-editor{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.6}.check{display:flex;gap:8px;align-items:center}.check input{width:auto;margin:0}.editor-form details{border:1px solid var(--line);padding:14px;border-radius:8px}.editor-form summary{cursor:pointer;font-weight:800}.edit-preview{max-width:300px;max-height:180px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.cat-list{list-style:none;padding:10px 20px;margin:0}.cat-list li{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.cat-list small{display:block;color:var(--muted);margin-top:3px}.link-danger{border:0;background:none;color:var(--danger);font-weight:750;cursor:pointer}.error-box{background:#fff0f0;color:var(--danger);border:1px solid #f1cccc;padding:12px;border-radius:8px;margin-bottom:15px}.auth-page{min-height:100vh;background:linear-gradient(135deg,var(--navy),#12365c 55%,#087d82);display:flex;align-items:center;justify-content:center;padding:25px}.auth-card{width:min(480px,100%);background:#fff;border-radius:18px;padding:35px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.auth-card>img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:9px;border:1px solid var(--line);margin-bottom:18px}.auth-card h1{font-size:34px;line-height:1.1;margin:6px 0}.auth-card p{color:var(--muted)}.auth-note{font-size:12px}.auth-card code{background:var(--soft);padding:2px 5px;border-radius:4px}@media(max-width:950px){.nav-wrap nav{display:none;position:absolute;left:0;right:0;top:76px;background:var(--navy);padding:16px 24px;flex-direction:column;align-items:stretch}.nav-wrap nav.open{display:flex}.menu-toggle{display:block}.hero-inner{grid-template-columns:1fr}.hero-card{max-width:500px}.post-grid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.featured{grid-template-columns:1fr}.feature-image{min-height:300px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}}
@media(max-width:650px){.nav-wrap{padding:0 16px}.hero-inner{padding:58px 16px}.hero h1{font-size:43px}.shell,.article,.admin-shell{padding-left:16px;padding-right:16px}.chips{margin-right:-16px;padding-right:16px}.feature-copy{padding:27px}.post-grid{grid-template-columns:1fr}.section-head,.admin-top{display:block}.search{margin-top:15px}.search input{min-width:0;flex:1}.article-content{font-size:16px}.article-head h1{font-size:40px}.article-cta{display:block}.article-cta .btn{margin-top:12px}.footer-grid{grid-template-columns:1fr}.admin-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.two{grid-template-columns:1fr}.admin-actions .btn{margin:8px 5px 0 0}.category-heading h1{font-size:40px}.auth-card{padding:25px}}

/* Rich Article Studio */
.wide-editor{max-width:1240px}.rich-editor-card{border:1px solid var(--line);border-radius:15px;background:#fbfdff;overflow:hidden;margin-top:2px}.rich-editor-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;border-bottom:1px solid var(--line)}.rich-editor-head h2{margin:4px 0 2px;font-size:22px}.rich-editor-head p{margin:0;color:var(--muted);font-size:13px}.editor-safe{font-size:11px;font-weight:800;color:#167052;background:#e5f6ee;border-radius:99px;padding:7px 10px;white-space:nowrap}.editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:76px;z-index:20}.editor-toolbar button,.editor-toolbar select,.import-btn{border:1px solid #d8e1e9;background:#fff;color:var(--ink);border-radius:7px;padding:8px 10px;font-size:12px;font-weight:750;cursor:pointer}.editor-toolbar button:hover,.import-btn:hover{border-color:var(--teal);color:var(--teal)}.editor-toolbar select{min-width:125px}.import-btn{display:inline-flex;align-items:center;gap:5px}.import-btn input{display:none}.tool-special{background:#e9f8f7!important;color:#06777b!important;border-color:#bce7e4!important}.editor-hint{padding:10px 14px;background:#f4f8fb;color:#607184;font-size:12px;border-bottom:1px solid var(--line)}.visual-editor{min-height:520px;padding:28px;outline:none;background:#fff;font-size:17px;line-height:1.75}.visual-editor:focus{box-shadow:inset 0 0 0 2px rgba(11,141,146,.18)}.visual-editor h2{font-size:30px;line-height:1.2;margin:28px 0 10px}.visual-editor h3{font-size:23px;margin:24px 0 8px}.visual-editor blockquote{border-left:4px solid var(--teal);padding:10px 18px;margin:20px 0;background:#f4f8fb;color:#4d6073}.visual-editor img{max-width:100%;height:auto;border-radius:8px}.visual-editor table,.article-content table{width:100%;border-collapse:collapse;margin:22px 0;display:table;overflow:auto}.visual-editor th,.visual-editor td,.article-content th,.article-content td{border:1px solid #d8e1e9;padding:9px 11px}.visual-editor th{background:#f3f7fa;font-weight:800}.visual-editor .equation{padding:16px;margin:18px 0;background:#f7fafc;border:1px dashed #c9d7e4;border-radius:9px;text-align:center;overflow:auto}.editor-status{display:flex;justify-content:space-between;padding:8px 14px;border-top:1px solid var(--line);color:#8491a0;font-size:11px}.save-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px}.article-content .excel-import{overflow-x:auto}.article-content .excel-import h3{margin-top:30px}.article-content .equation{overflow-x:auto;text-align:center;padding:12px 0}.article-content .equation mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}.article-content pre{background:#0b1930;color:#eef6ff;padding:16px;border-radius:10px;overflow:auto}.article-content ul,.article-content ol{padding-left:28px}@media(max-width:650px){.editor-toolbar{top:64px}.rich-editor-head{display:block}.editor-safe{display:inline-block;margin-top:10px}.visual-editor{min-height:400px;padding:18px;font-size:16px}.save-row{display:block}.save-row .btn{margin-top:12px}.editor-toolbar button,.editor-toolbar select,.import-btn{padding:7px 8px}.editor-hint{font-size:11px}}

/* Subscriptions, push & comments */
.nav-subscribe{font-weight:800!important;color:#9be8e7!important}
.push-btn{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer}
.push-btn:hover{background:rgba(255,255,255,.15)}
.flash-message{position:fixed;right:18px;top:88px;z-index:200;background:#0b8d92;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);font-weight:750;font-size:13px;max-width:420px}
.subscribe-band{max-width:1160px;margin:0 auto 55px;padding:28px 30px;border:1px solid var(--line);border-radius:16px;background:var(--soft);display:flex;align-items:center;justify-content:space-between;gap:25px}
.subscribe-band h2{margin:4px 0;font-size:27px;line-height:1.2}.subscribe-band p{margin:0;color:var(--muted)}
.subscribe-form{display:flex;gap:8px;min-width:min(470px,100%)}.subscribe-form input{flex:1;border:1px solid var(--line);border-radius:9px;padding:11px 13px;outline:none;background:#fff}
.comments{margin-top:48px;border-top:1px solid var(--line);padding-top:35px}.comments h2{font-size:30px;margin:0 0 20px}.comments h2 span{font-size:13px;color:var(--muted);font-weight:700}
.comment-list{display:flex;flex-direction:column;gap:12px}.comment{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.comment-author{font-weight:850}.comment-date{font-size:11px;color:#8794a2}.comment p{margin:9px 0 0;white-space:normal}
.comment-form-card{margin-top:24px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.comment-form-card h3{margin:0 0 3px;font-size:22px}.comment-form-card>p{margin:0 0 15px;color:var(--muted);font-size:13px}.comment-form{padding:0}.comment-form .two{margin-top:0}.honeypot{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.success-box{background:#e8f8ef;color:#176c4f;border:1px solid #c9ead9;padding:12px;border-radius:8px;margin-bottom:15px}.command-box{background:#0b1930;color:#eef6ff;padding:14px;border-radius:9px;overflow:auto}
@media(max-width:950px){.stats{grid-template-columns:repeat(3,1fr)}.subscribe-band{margin-left:24px;margin-right:24px}.nav-subscribe{display:none}}
@media(max-width:650px){.stats{grid-template-columns:1fr 1fr}.subscribe-band{margin-left:16px;margin-right:16px;display:block;padding:22px}.subscribe-form{margin-top:15px;min-width:0}.subscribe-form .btn{white-space:nowrap}.flash-message{left:16px;right:16px;top:75px;max-width:none}.push-btn{display:inline-flex}}
