@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');*{box-sizing:border-box}body{margin:0;background:#f4f5f2;color:#1c211e;font-family:'DM Sans',sans-serif}a{text-decoration:none;color:inherit}aside{position:fixed;left:0;top:0;bottom:0;width:245px;background:#18231d;color:#fff;padding:30px 22px}aside img{width:150px;filter:brightness(0) invert(1);display:block;margin-bottom:8px}aside>span{font-size:9px;letter-spacing:.2em;color:#e5b84a}aside nav{display:flex;flex-direction:column;margin-top:45px;gap:8px}aside nav a{padding:13px 14px;border-radius:7px;font-size:13px;color:#d4d9d5}aside nav a:hover{background:#25342c;color:white}.admin{margin-left:245px;padding:45px 5vw}.admin header{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.admin header span{font-size:10px;letter-spacing:.2em;color:#8a918b}.admin h1{font-size:38px;margin:5px 0}.primary,button{display:inline-block;border:0;background:#1d2b24;color:white;padding:14px 19px;border-radius:5px;font-weight:600;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.stats div,.panel{background:white;border:1px solid #e3e5e1;border-radius:9px;padding:24px}.stats b{display:block;font-size:35px}.stats span{font-size:12px;color:#7b837c}.panel{margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head a{font-size:12px}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #eceeea;padding:15px 8px;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#7c837d}td small{display:block;color:#8b918c;margin-top:4px}.pill{padding:5px 8px;border-radius:20px;font-size:10px}.pill.published{background:#e4f3e9;color:#28613c}.pill.draft{background:#f2ede1;color:#785f22}.danger{color:#a83a3a}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}label{display:block;font-size:11px;font-weight:600;margin:13px 0;color:#58605a}label small{float:right;font-weight:400}input,textarea,select{width:100%;border:1px solid #d9ddd8;border-radius:5px;padding:12px;margin-top:7px;font:inherit;background:#fff}textarea{min-height:100px;resize:vertical}.content{min-height:330px;font-family:monospace;font-size:12px}.check{display:flex;align-items:center;gap:8px;margin-top:38px}.check input{width:auto;margin:0}.success,.alert{padding:14px;background:#e2f2e7;border-radius:5px;margin-bottom:20px}.category-admin{display:grid;grid-template-columns:1fr 1fr;gap:18px}.login{min-height:100vh;display:grid;place-items:center;background:#17231d}.login-card{width:min(440px,90vw);background:white;padding:45px;border-radius:12px}.login-card img{width:180px}.login-card>span{display:block;margin-top:12px;color:#b18a2d;font-size:10px;letter-spacing:.2em}.login-card h1{font-size:38px;margin-bottom:8px}.login-card p{color:#727972;line-height:1.5}.login-card button{width:100%;margin-top:15px}.login-card>small{display:block;text-align:center;margin-top:18px;color:#999}@media(max-width:900px){aside{position:static;width:auto}aside nav{flex-direction:row;overflow:auto;margin-top:20px}.admin{margin:0;padding:25px}.stats{grid-template-columns:1fr 1fr}.two,.three,.category-admin{grid-template-columns:1fr}table{display:block;overflow:auto}}.image-preview{margin:12px 0 22px;display:flex;align-items:center;gap:14px}.image-preview img{width:180px;height:110px;object-fit:cover;border-radius:10px;border:1px solid #ddd}.image-preview small{opacity:.65}.error{padding:14px 16px;margin:0 0 18px;background:#fff0f0;border:1px solid #e8b3b3;border-radius:8px;color:#8a2020}
input[type=file]{padding:13px;background:#fafafa;border:1px dashed #bbb;border-radius:8px}

/* Friendly visual article editor */
.rich-editor{border:1px solid #d8d4cb;border-radius:14px;overflow:hidden;background:#fff;margin-top:8px}.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:9px;background:#f7f5ef;border-bottom:1px solid #e3dfd5;position:sticky;top:0;z-index:2}.rich-toolbar button{border:1px solid #d9d4c8;background:#fff;border-radius:8px;padding:7px 10px;min-width:36px;cursor:pointer;font:inherit;color:#1c2924}.rich-toolbar button:hover{background:#efe9dc}.rich-surface{min-height:330px;padding:22px 24px;outline:none;font-family:Arial,sans-serif;font-size:16px;line-height:1.75;color:#26332e}.rich-surface:empty:before{content:attr(data-placeholder);color:#999}.rich-surface h2{font-family:Georgia,serif;font-size:28px;margin:26px 0 10px}.rich-surface p{margin:0 0 16px}.rich-surface blockquote{margin:20px 0;padding:14px 18px;border-left:4px solid #e7a324;background:#faf6ec}.rich-surface ul,.rich-surface ol{padding-left:28px}.editor-help{display:block;color:#777;margin-top:6px;font-size:12px}.article-field{display:block}.article-field>span{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.lang-badge{font-size:11px;border-radius:999px;padding:4px 8px;background:#f1ede4;color:#555}.native-hidden{display:none!important}
/* Admin guide */
.guide-lead{margin:8px 0 0;color:#6f7771;max-width:680px;line-height:1.65}.guide-hero{background:#1d2b24;color:#fff;border-radius:16px;padding:34px;display:grid;grid-template-columns:.8fr 1.2fr;gap:45px;margin-bottom:22px}.guide-hero h2,.guide-section h2,.guide-help h2{font-size:28px;margin:8px 0 10px}.guide-hero p{color:#cbd3ce;line-height:1.7}.guide-kicker{font-size:10px;letter-spacing:.18em;color:#e5b84a;font-weight:700}.quick-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}.quick-steps li{display:flex;gap:14px;align-items:center;background:rgba(255,255,255,.06);padding:12px 14px;border-radius:10px}.quick-steps b{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:#e5b84a;color:#18231d}.quick-steps span{font-size:13px;line-height:1.5}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}.guide-card{background:#fff;border:1px solid #e3e5e1;border-radius:13px;padding:24px;position:relative}.guide-card h3{font-size:20px;margin:8px 0}.guide-card>p{color:#687069;line-height:1.65;font-size:13px}.guide-card>a{display:inline-block;margin-top:14px;font-size:12px;font-weight:700;color:#805f14}.guide-icon{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:9px;background:#f4eddc;color:#72591f;font-size:13px;font-weight:700}.guide-note{margin-top:14px;padding:12px 13px;background:#f6f7f4;border-radius:8px;color:#626963;font-size:12px;line-height:1.55}.guide-section{background:#fff;border:1px solid #e3e5e1;border-radius:13px;padding:28px;margin-bottom:22px}.format-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.format-guide div{padding:15px;background:#f6f7f4;border-radius:9px}.format-guide b{display:block;margin-bottom:6px}.format-guide span{font-size:12px;color:#69706b;line-height:1.5}.warning-guide{border-left:4px solid #e5b84a}.checklist{display:grid;grid-template-columns:1fr 1fr;gap:10px 25px;margin-top:18px}.checklist label{display:flex;align-items:center;gap:10px;margin:0;padding:11px 0;font-size:13px;font-weight:500}.checklist input{width:17px;height:17px;margin:0}.guide-help{background:#eee7d7;border-radius:14px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:30px}.guide-help p{margin:0;color:#5f625e}.guide-help .primary{white-space:nowrap}@media(max-width:900px){.guide-hero{grid-template-columns:1fr}.guide-grid{grid-template-columns:1fr}.format-guide{grid-template-columns:1fr}.checklist{grid-template-columns:1fr}.guide-help{align-items:flex-start;flex-direction:column}}
.guide-lang{display:flex;gap:8px;align-items:center}.guide-lang a{padding:9px 13px;border:1px solid rgba(255,255,255,.16);border-radius:999px;text-decoration:none}.guide-lang a.active{background:#fff;color:#13251d}.guide-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.visual-tools{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.visual-canvas{position:relative;min-height:350px;background:repeating-linear-gradient(0deg,#f6f8fb 0,#f6f8fb 23px,#e8edf3 24px);border:2px dashed #b9c5d4;border-radius:12px;overflow:hidden}.visual-piece{position:absolute;background:white;border:1px solid #9aaabd;border-radius:8px;padding:9px;box-sizing:border-box;cursor:move;touch-action:none;overflow:hidden}.visual-piece.selected{outline:3px solid #1479dd}.visual-piece img{width:100%;height:100%;object-fit:contain;pointer-events:none}.visual-piece .visual-resize{position:absolute;bottom:0;right:0;width:18px;height:18px;background:#1479dd;cursor:nwse-resize;border-radius:4px}.visual-piece .visual-label{pointer-events:none;white-space:pre-wrap;overflow:hidden;height:100%}.visual-inspector{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.visual-inspector label{min-width:150px;flex:1}.visual-inspector input,.visual-inspector textarea{width:100%}.visual-canvas.mobile-preview{width:min(375px,100%);height:auto!important;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px}.visual-canvas.mobile-preview .visual-piece{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-height:80px}.visual-canvas.mobile-preview .visual-resize{display:none}

/* Live article editor: same editorial typography, palette and content width as public post.php */
.live-editor-shell{background:#f6f4ee;color:#1c211e;border:1px solid #dedbd1;border-radius:4px;overflow:hidden;margin-top:16px;font-family:'DM Sans',Arial,sans-serif}.live-site-header{height:78px;padding:12px 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dedbd1;gap:18px}.live-site-header img{width:135px;max-height:58px;object-fit:contain}.live-site-header nav{font-size:12px;color:#28372c;text-align:right}.live-article-head{text-align:center;max-width:820px;margin:0 auto;padding:60px 24px 38px}.live-eyebrow{font-size:10px;letter-spacing:.2em}.live-article-head h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(36px,5vw,68px);line-height:1.1;margin:20px 0}.live-article-head p{font-size:18px;line-height:1.65;color:#626a62}.live-article-head small{font-size:11px;letter-spacing:.12em}.live-hero{height:300px;background:#d7d6cf center/cover;display:flex;align-items:center;justify-content:center;color:#5c625d}.live-hero span{background:#f6f4eecf;padding:10px 16px;font-size:12px}.live-body{max-width:760px;margin:55px auto 70px;font:19px/1.9 Georgia,serif}.live-content-intro{overflow-wrap:anywhere}.live-content-intro img{max-width:100%}.live-content-intro h2{font-family:'Playfair Display',Georgia,serif;font-size:36px}.live-canvas-label{font:10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.1em;color:#667568;margin:30px 0 9px}.live-editor-shell .visual-canvas{background:#fff;border:1px dashed #aab8ad;border-radius:2px;min-height:240px}.live-editor-shell .visual-piece{border:1px dashed transparent;background:transparent;border-radius:0;padding:0;font:19px/1.9 Georgia,serif}.live-editor-shell .visual-piece:hover{border-color:#86a7a0}.live-editor-shell .visual-piece.selected{outline:2px solid #1479dd;background:#ffffff55}.live-editor-shell .visual-piece img{object-fit:cover;border-radius:10px}.live-editor-shell .visual-piece .visual-label{font:inherit;line-height:1.6}.live-editor-shell .visual-piece:has(.visual-label) .visual-label{padding:6px}.live-editor-shell .visual-piece:has(.visual-label) {overflow:hidden}.live-site-footer{padding:26px;text-align:center;background:#1d2b24;color:#fff;font-size:11px;letter-spacing:.15em}.live-editor-shell.is-mobile{max-width:390px;margin:16px auto}.live-editor-shell.is-mobile .live-site-header{height:65px}.live-editor-shell.is-mobile .live-site-header nav{display:none}.live-editor-shell.is-mobile .live-article-head{padding:35px 15px}.live-editor-shell.is-mobile .live-article-head h1{font-size:38px}.live-editor-shell.is-mobile .live-hero{height:210px}.live-editor-shell.is-mobile .live-body{padding:0 18px;margin:30px auto}.live-editor-shell.is-mobile .visual-canvas{width:100%}.live-editor-shell .visual-canvas.mobile-preview{background:#fff}@media(max-width:850px){.live-site-header nav{display:none}.live-body{margin:35px 20px}.live-hero{height:240px}}

/* Independent touch-enabled mobile layout */
.visual-canvas.mobile-edit{width:100%!important;display:block!important;position:relative!important;min-height:350px!important;padding:0!important;overflow:hidden!important}.visual-canvas.mobile-edit .visual-piece{position:absolute!important;min-height:0!important}.visual-canvas.mobile-edit .visual-resize{display:block!important}.live-editor-shell.is-mobile .live-body{max-width:100%;padding:0 12px}.live-editor-shell.is-mobile .visual-canvas{width:100%!important}.visual-piece{touch-action:none;user-select:none}.visual-piece .visual-resize{touch-action:none}

@import url('rok-upgrade.css');
