:root{--orange:#FF7A00;--off-white:#F7F7F7;--white:#fff;--dark-text:#111827;--gray:#6B7280;--dark-gray:#374151;--footer-bg:#0B1120;--light-orange-bg:#FFF7ED;--border:#E5E7EB;--gradient-bg:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;background:var(--gradient-bg);color:var(--dark-text);line-height:1.6}a{text-decoration:none;color:inherit}.container{max-width:1200px;margin:0 auto;padding:0 24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 25px;border-radius:999px;font-weight:700;border:2px solid transparent;cursor:pointer;font-size:15px}.btn-primary{background:var(--orange);color:white;border-color:var(--orange)}.btn-primary:hover{background:#e06a00}.btn-secondary{background:white;color:var(--dark-text);border-color:var(--border)}.btn-danger{background:#fee2e2;color:#991b1b}.btn-small{padding:8px 14px;font-size:13px}header{position:sticky;top:0;z-index:1000;background:#fbfbfc;box-shadow:0 2px 20px rgba(0,0,0,.08)}.navbar{display:flex;justify-content:space-between;align-items:center;padding:20px 24px}.logo-container{display:flex;flex-direction:column}.logo{font-size:1.75rem;font-weight:800}.logo .orange{color:var(--orange)}.tagline{font-size:.8125rem;color:var(--orange);font-weight:600}.nav-links{display:flex;align-items:center;gap:32px}.nav-links a{font-weight:700;font-size:14px}.nav-links a:hover,.nav-links a.active{color:var(--orange)}.contact-sales-btn{display:inline-flex;align-items:center;gap:12px;background:var(--orange);color:white!important;padding:12px 24px;border-radius:24px}.hamburger{display:none}.hero{background:white;padding:80px 0;text-align:center}.hero-tag{color:var(--orange);font-weight:800;text-transform:uppercase;letter-spacing:1px;font-size:.875rem}.hero h1{font-size:3.1rem;line-height:1.15;margin:18px auto;max-width:850px}.hero p{font-size:1.18rem;color:var(--gray);max-width:760px;margin:0 auto 28px}.section{padding:70px 0}.section-title{text-align:center;font-size:2.4rem;margin-bottom:14px}.section-subtitle{text-align:center;color:var(--gray);font-size:1.1rem;max-width:700px;margin:0 auto 38px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:26px}.card{background:white;border:1px solid var(--border);border-radius:20px;padding:26px;box-shadow:0 4px 20px rgba(0,0,0,.05)}.article-card{transition:.2s}.article-card:hover{transform:translateY(-4px);border-color:var(--orange);box-shadow:0 10px 30px rgba(0,0,0,.09)}.pill{display:inline-flex;padding:6px 12px;background:var(--light-orange-bg);color:var(--orange);border-radius:999px;font-weight:800;font-size:12px;margin-bottom:12px}.meta{color:var(--gray);font-size:14px}.article-card h3{font-size:1.35rem;margin:5px 0 10px}.article-card p{color:var(--gray);margin-bottom:18px}.article-shell{max-width:900px;margin:50px auto;background:white;border-radius:24px;padding:44px;box-shadow:0 10px 35px rgba(0,0,0,.07)}.article-shell h1{font-size:2.6rem;line-height:1.15;margin-bottom:14px}.article-content{margin-top:28px}.article-content h2{margin:26px 0 10px}.article-content p{margin:12px 0}.article-content img{max-width:100%;border-radius:16px;margin:18px 0}.gate{background:#fff7ed;border:1px solid #fed7aa;border-radius:20px;padding:28px;margin-top:30px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;border:1px solid var(--border);border-bottom:0;border-radius:14px 14px 0 0;background:#f9fafb;padding:10px}.toolbar button,.toolbar select{border:1px solid var(--border);background:white;border-radius:8px;padding:8px 10px;font-weight:700;cursor:pointer}.editor{min-height:360px;background:white;border:1px solid var(--border);border-radius:0 0 14px 14px;padding:18px;outline:none}.form-row{display:grid;gap:8px;margin-bottom:18px}.form-row label{font-weight:800}.input,select,textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:13px;font:inherit}.admin-layout{display:grid;grid-template-columns:250px 1fr;gap:24px}.sidebar{background:white;border-radius:20px;padding:18px;border:1px solid var(--border);height:max-content}.sidebar a{display:block;padding:11px 12px;border-radius:12px;font-weight:800;margin-bottom:6px}.sidebar a.active,.sidebar a:hover{background:#fff7ed;color:var(--orange)}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:14px;border-bottom:1px solid var(--border)}.auth-box{max-width:480px;margin:70px auto;background:white;padding:34px;border-radius:24px;box-shadow:0 10px 35px rgba(0,0,0,.08)}footer{background:var(--footer-bg);color:white}.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;padding:24px 0;max-width:1000px;margin:0 auto}.footer-col h3{font-size:1.125rem;margin-bottom:16px;position:relative}.footer-col h3:after{content:"";position:absolute;bottom:-5px;left:0;width:24px;height:2px;background:var(--orange)}.footer-logo{font-size:1.375rem;font-weight:800;margin-bottom:10px;display:inline-block}.footer-logo .orange{color:var(--orange)}.footer-col p,.footer-links a,.footer-contact p{color:#9CA3AF;font-size:.9rem}.footer-links{list-style:none}.footer-links li{margin-bottom:8px}.footer-links a:hover{color:var(--orange)}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:10px 0;text-align:center;color:#9CA3AF;font-size:.8125rem}.hidden{display:none!important}.status{margin-top:12px;color:var(--gray);font-weight:700}@media(max-width:800px){.nav-links{display:none}.admin-layout{grid-template-columns:1fr}.hero h1{font-size:2.2rem}.article-shell{margin:20px 12px;padding:24px}.navbar{padding:16px}}
.profile-menu{position:relative;display:inline-flex;align-items:center}.profile-trigger{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:white;border-radius:999px;padding:7px 12px;cursor:pointer;font-weight:800;color:var(--dark-text)}.avatar{width:28px;height:28px;border-radius:50%;background:var(--orange);color:white;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.profile-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-dropdown{display:none;position:absolute;right:0;top:42px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.12);min-width:190px;padding:8px;z-index:1200}.profile-dropdown.open{display:block}.profile-dropdown a{display:block;padding:10px 12px;border-radius:10px;font-weight:700;color:var(--dark-text)!important}.profile-dropdown a:hover{background:#fff7ed;color:var(--orange)!important}
.article-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:4px}.access-badge{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid transparent;white-space:nowrap}.access-badge.public{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.access-badge.locked{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.article-shell .access-badge{margin-bottom:14px}.gate .btn{margin-right:8px;margin-bottom:8px}
.simple-toolbar{gap:8px;align-items:center}.toolbar-file-btn{border:1px solid var(--border);background:white;border-radius:8px;padding:8px 10px;font-weight:700;cursor:pointer;font-size:14px}.editor pre{background:#0b1120;color:#e5e7eb;border-radius:14px;padding:16px;overflow:auto;margin:14px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;font-size:14px;line-height:1.55}.article-content pre{background:#0b1120;color:#e5e7eb;border-radius:14px;padding:16px;overflow:auto;margin:18px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;font-size:14px;line-height:1.55}.editor figure,.article-content figure{margin:18px 0}.editor figcaption,.article-content figcaption{color:var(--gray);font-size:13px;text-align:center}.status{min-height:24px}.table td,.table th{vertical-align:top}

.article-list{display:flex!important;flex-direction:column;gap:14px;max-width:900px;margin:0 auto}
.article-row{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px 26px;box-shadow:0 6px 22px rgba(0,0,0,.04);transition:all .2s ease}
.article-row:hover{transform:translateY(-2px);border-color:var(--orange);box-shadow:0 10px 28px rgba(255,122,0,.12)}
.article-row-main h3{font-size:1.2rem;margin-bottom:4px}
.article-row .access-badge{white-space:nowrap}
.table td .btn{margin-right:6px}
.article-image{text-align:center;margin:20px 0}
.article-image img{display:block;margin-left:auto;margin-right:auto}


/* Latest articles horizontal list polish */
.article-row{align-items:flex-start;min-height:128px}
.article-row-main{width:100%}
.article-row-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.category-badge{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid #fed7aa;background:#fff7ed;color:#c2410c;white-space:nowrap}
.article-summary{color:var(--gray);font-size:15px;line-height:1.55;margin:4px 0 8px;max-width:760px}
.article-arrow{color:var(--orange);font-weight:800;white-space:nowrap;margin-top:38px}
@media(max-width:700px){.article-row{flex-direction:column}.article-arrow{margin-top:0}}

/* Performance loading states */
.article-skeleton{pointer-events:none}
.skeleton-line{height:14px;border-radius:999px;background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 37%,#f3f4f6 63%);background-size:400% 100%;animation:skeletonLoading 1.2s ease-in-out infinite;margin:10px 0;max-width:100%}
.skeleton-line.short{width:180px;height:22px}.skeleton-line.title{width:70%;height:24px}.skeleton-line.tiny{width:120px}
@keyframes skeletonLoading{0%{background-position:100% 50%}100%{background-position:0 50%}}
.article-thumb{width:112px;height:86px;object-fit:cover;border-radius:14px;flex:0 0 auto;background:#f3f4f6}
@media(max-width:700px){.article-thumb{width:100%;height:180px}}

/* Knowledge Hub article page and auth nav refinements */
#authNav > a[href="/login/"]{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:999px;background:var(--orange);color:#fff!important;border:2px solid var(--orange);box-shadow:0 8px 18px rgba(255,122,0,.22);transition:all .2s ease;font-weight:800}
#authNav > a[href="/login/"]:hover{background:#e06a00;border-color:#e06a00;color:#fff!important;transform:translateY(-1px);box-shadow:0 10px 24px rgba(255,122,0,.3)}
.article-load-more{width:100%;text-align:center;color:var(--gray);font-weight:800;padding:18px 0 8px}
.article-load-more .btn{margin:0 auto}


/* Cover image upload and article tile image alignment */
.cover-image-field .meta{margin-bottom:10px}
.cover-upload-box{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.cover-preview{width:220px;height:124px;border:1px dashed var(--border);border-radius:16px;background:#f9fafb;display:flex;align-items:center;justify-content:center;color:var(--gray);font-size:13px;font-weight:700;text-align:center;overflow:hidden}
.cover-preview.has-image{border-style:solid;background:#fff}
.cover-preview img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.cover-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.article-row{align-items:center!important}
.article-thumb{display:block;object-position:center center;margin:0;align-self:center}
.article-arrow{align-self:center;margin-top:0!important}
@media(max-width:700px){.article-row{align-items:stretch!important}.article-thumb{align-self:stretch}.cover-upload-box{align-items:stretch}.cover-preview{width:100%;height:180px}}


/* Link styling fix */
article a { color: #ff6a00; text-decoration: underline; }
article a:hover { opacity: 0.8; }


/* Article editor flag/callout styling */
.article-flag,
.flag-callout,
.highlight-box {
  background: #fff7ed;
  border-left: 4px solid #ff6a00;
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
}

.article-flag p,
.flag-callout p,
.highlight-box p {
  margin: 0;
}

/* Keep cover image usage limited to article tiles only */
.article-cover-image,
.article-detail-cover,
.article-hero-image {
  display: none !important;
}

