/* Ukpor News — shell additions for the CCA News theme (v5.9.0)
   The CCA theme was written for the CCMS plugin. This file adds the few pieces that lived in
   CCMS's own app shell, and colours for the Ukpor sections. */
body.uiu-news-body{margin:0;background:var(--nw-bg,#fff)}
.uiu-news .nw-clef .uiu-seal{width:100%;height:100%;object-fit:contain;border-radius:50%;position:relative;z-index:1;background:transparent}

/* Section colours: one of 8, chosen from the section name */
:root{--nw-c-x0:#2563eb;--nw-c-x1:#7c3aed;--nw-c-x2:#047857;--nw-c-x3:#b45309;--nw-c-x4:#b4232a;--nw-c-x5:#0e7490;--nw-c-x6:#be185d;--nw-c-x7:#4d7c0f}
html[data-nw-theme="dark"]{--nw-c-x0:#60a5fa;--nw-c-x1:#a78bfa;--nw-c-x2:#34d399;--nw-c-x3:#fbbf24;--nw-c-x4:#f87171;--nw-c-x5:#22d3ee;--nw-c-x6:#f472b6;--nw-c-x7:#a3e635}
.nw-cat-x0{color:var(--nw-c-x0)}.nw-cat-x1{color:var(--nw-c-x1)}.nw-cat-x2{color:var(--nw-c-x2)}.nw-cat-x3{color:var(--nw-c-x3)}
.nw-cat-x4{color:var(--nw-c-x4)}.nw-cat-x5{color:var(--nw-c-x5)}.nw-cat-x6{color:var(--nw-c-x6)}.nw-cat-x7{color:var(--nw-c-x7)}
.nw-navc-x0{--c:#2563eb}.nw-navc-x1{--c:#7c3aed}.nw-navc-x2{--c:#059669}.nw-navc-x3{--c:#d97706}
.nw-navc-x4{--c:#be123c}.nw-navc-x5{--c:#0e7490}.nw-navc-x6{--c:#db2777}.nw-navc-x7{--c:#4d7c0f}

/* Post News desk — page frame */
.uiun-adminbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:linear-gradient(115deg,#061428,#17407a);color:#fff;border-bottom:3px solid #e0b75b}
.uiun-adminbrand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:700 18px/1.1 Georgia,serif}
.uiun-adminbrand img{border-radius:50%;background:#fff}
.uiun-adminbrand small{display:block;font:600 11px/1.2 -apple-system,Segoe UI,Roboto,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#e0b75b;margin-top:2px}
.uiun-adminbar .nw-theme-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.3)}
.uiun-adminmain{max-width:1240px;margin:0 auto;padding:18px 14px 96px;color:var(--nw-ink)}
.uiun-notice{margin:0 0 14px;padding:12px 14px;border-radius:8px;font-weight:600}
.uiun-notice.is-success{background:#e6f3e8;border:1px solid #9ccfa6;color:#1f4a28}
.uiun-notice.is-error{background:#f9e6e8;border:1px solid #e3a9ae;color:#6e1f26}
.uiun-inline{display:inline}
.nwa-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.nwa-tabs a{padding:9px 16px;border:1px solid var(--nw-line);border-radius:999px;background:var(--nw-bg);color:var(--nw-ink);text-decoration:none;font-weight:700;font-size:14px}
.nwa-tabs a.is-active{background:var(--nw-navy);border-color:var(--nw-navy);color:#fff}
.nwa-tabs a.nwa-tab-urgent{border-color:#dc2626;color:#dc2626}
.nwa-tabs a.nwa-tab-ext{margin-left:auto}

/* Components the CCA dashboard used from the CCMS shell */
.uiuf-panel{background:var(--nw-bg);border:1px solid var(--nw-line);border-radius:12px;box-shadow:var(--nw-shadow);overflow:hidden}
.uiuf-panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--nw-line)}
.uiuf-panel-head h2{margin:0;font:800 20px/1.2 Georgia,serif;color:var(--nw-ink)}
.uiuf-panel-body{padding:16px 0}
.uiuf-empty{padding:22px 20px;color:var(--nw-mute);text-align:center}
.uiuf-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 20px 16px}
.uiuf-stat{background:var(--nw-soft);border:1px solid var(--nw-line);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.uiuf-stat strong{font:800 26px/1 Georgia,serif;color:var(--nw-navy)}
html[data-nw-theme="dark"] .uiuf-stat strong{color:#e3b75a}
.uiuf-stat span{color:var(--nw-mute);font-size:13px;font-weight:600}
.uiuf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border:1px solid var(--nw-line);border-radius:8px;background:var(--nw-soft);color:var(--nw-ink);font:700 13px/1 inherit;font-family:inherit;text-decoration:none;cursor:pointer;white-space:nowrap}
.uiuf-btn.uiuf-blue{background:var(--nw-navy);border-color:var(--nw-navy);color:#fff}
.uiuf-btn.uiuf-green{background:#047857;border-color:#047857;color:#fff}
.uiuf-btn.uiuf-red{background:#b4232a;border-color:#b4232a;color:#fff}
.uiuf-btn.uiuf-del{color:#b4232a;border-color:#e3a9ae;background:transparent}
.uiuf-btn:hover{filter:brightness(1.08)}
.uiuf-table-wrap{overflow-x:auto}
.uiuf-table{width:100%;border-collapse:collapse;font-size:14px}
.uiuf-table th{padding:10px 12px;text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--nw-mute);border-bottom:1px solid var(--nw-line);white-space:nowrap}
.uiuf-table td{padding:12px;border-bottom:1px solid var(--nw-line);vertical-align:middle}
.uiuf-badge{display:inline-block;padding:3px 10px;border-radius:999px;font:700 12px/1.4 inherit;background:var(--nw-soft);color:var(--nw-ink2);border:1px solid var(--nw-line)}
.uiuf-badge.is-published{background:#e6f3e8;color:#1f4a28;border-color:#9ccfa6}
.uiuf-badge.is-draft{background:#fff7e0;color:#6b4e0a;border-color:#e6cf8a}
.uiuf-badge.is-scheduled{background:#e7eefc;color:#1e3a8a;border-color:#a9c0f1}
.uiuf-badge.is-unpublished{background:#f1f1f1;color:#555;border-color:#d0d0d0}

/* Buttons used by the AI News Writer and other panel pages */
.pr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border:2px solid #A9822F;border-radius:4px;background:#131F38;color:#F7F2E7;font:700 14px/1 inherit;font-family:inherit;text-decoration:none;cursor:pointer}
.pr-btn--ghost{background:transparent;color:#131F38;border-color:#A9822F}
html[data-nw-theme="dark"] .pr-btn--ghost{color:#F7F2E7}
.pr-btn:disabled{opacity:.6;cursor:wait}
.pr-empty{max-width:560px;margin:40px auto;padding:24px;text-align:center}
@media (max-width:640px){.uiun-adminmain{padding:14px 8px 96px}.uiuf-stats{margin:0 12px 14px}}
.pr-panelbox{max-width:560px;margin:40px auto;padding:26px 22px;border:1px solid var(--nw-line);border-radius:12px;background:var(--nw-bg);box-shadow:var(--nw-shadow);text-align:center}
.pr-panelbox h1{margin:0 0 10px;font:800 22px/1.25 Georgia,serif;color:var(--nw-ink)}
.pr-panelbox p{margin:0 0 16px;color:var(--nw-ink2)}

/* ===== v5.9.1 — Post News desk: classic navy, ivory and gold (no more bright white) ===== */
body.uiun-desk{
  --dk-page:#E6DABA;--dk-page2:#EFE5CB;--dk-card:#FBF5E6;--dk-card2:#F4EBD2;--dk-line:#C9AE74;--dk-ink:#241E14;--dk-mute:#6B5F48;
  --dk-navy:#131F38;--dk-navy2:#1E3159;--dk-gold:#A9822F;--dk-gold2:#E0C077;
  background:linear-gradient(180deg,var(--dk-page) 0,var(--dk-page2) 340px,var(--dk-page) 100%) fixed;color:var(--dk-ink)}
html[data-nw-theme="dark"] body.uiun-desk{
  --dk-page:#0B1220;--dk-page2:#0F1A2E;--dk-card:#142038;--dk-card2:#0F1A2E;--dk-line:#2E4068;--dk-ink:#E8EAF0;--dk-mute:#9AA6BC;background:var(--dk-page)}
body.uiun-desk .uiun-adminmain{color:var(--dk-ink)}
body.uiun-desk .uiun-adminbar{background:linear-gradient(115deg,#080E1B,#1E3159);border-bottom:3px solid var(--dk-gold2);box-shadow:0 4px 14px rgba(8,14,27,.35)}

/* Tabs */
body.uiun-desk .nwa-tabs{border-bottom:2px solid var(--dk-navy);gap:6px}
body.uiun-desk .nwa-tabs a{background:var(--dk-card2);border:1px solid var(--dk-line);border-bottom:0;border-radius:6px 6px 0 0;color:var(--dk-navy);font-weight:800}
body.uiun-desk .nwa-tabs a:hover{background:#EBDDB5;color:var(--dk-navy)}
body.uiun-desk .nwa-tabs a.is-active{background:var(--dk-navy);color:var(--dk-gold2);border-color:var(--dk-navy)}
body.uiun-desk .nwa-tabs a.nwa-tab-urgent{color:#8F1D22;border-color:#C9AE74}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs a{background:#142038;color:#E8EAF0;border-color:#2E4068}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs a.is-active{background:#E0C077;color:#131F38}

/* Panels, cards and boxes */
body.uiun-desk .uiuf-panel,body.uiun-desk .nwa-card,body.uiun-desk .nwa-box{background:var(--dk-card)!important;border:1px solid var(--dk-line)!important;border-radius:6px;box-shadow:0 3px 12px rgba(36,30,20,.12)}
body.uiun-desk .uiuf-panel-head{background:linear-gradient(115deg,var(--dk-navy),var(--dk-navy2));border-bottom:3px solid var(--dk-gold2);color:#F7F2E7}
body.uiun-desk .uiuf-panel-head h2{color:#F7F2E7}
body.uiun-desk .nwa-box-title{background:linear-gradient(115deg,var(--dk-navy),var(--dk-navy2))!important;color:var(--dk-gold2)!important;border-bottom:2px solid var(--dk-gold2)!important}
body.uiun-desk .nwa-box-title small{background:#F1E2B8;color:#5A4410}
body.uiun-desk .nwa-box-publish{border-top:3px solid var(--dk-gold)!important}
body.uiun-desk .nwa-wrap .nwa-lab{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-lab{color:#E0C077}
body.uiun-desk .nwa-hint,body.uiun-desk .nwa-line span{color:var(--dk-mute)}

/* Stats */
body.uiun-desk .uiuf-stat{background:var(--dk-card2);border:1px solid var(--dk-line);border-left:5px solid var(--dk-gold);box-shadow:0 2px 6px rgba(36,30,20,.08)}
body.uiun-desk .uiuf-stat strong{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-stat strong{color:#E0C077}
body.uiun-desk .uiuf-stat span{color:var(--dk-mute)}

/* Story list / filters / table */
body.uiun-desk .nwa-views a{color:var(--dk-navy2);font-weight:700}
body.uiun-desk .nwa-views a.is-current{color:var(--dk-navy);border-bottom-color:var(--dk-gold)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a{color:#C8D3EA}
body.uiun-desk .nwa-filters{border-bottom:1px solid var(--dk-line)}
body.uiun-desk .nwa-filters input,body.uiun-desk .nwa-filters select{background:#FFFBEF;border:1px solid var(--dk-line);color:var(--dk-ink)}
body.uiun-desk .uiuf-table th{background:var(--dk-card2);color:var(--dk-navy);border-bottom:2px solid var(--dk-line)}
body.uiun-desk .uiuf-table td{border-bottom:1px solid #DCC999}
body.uiun-desk .uiuf-table tbody tr:nth-child(even){background:rgba(201,174,116,.12)}
body.uiun-desk .uiuf-table tbody tr:hover{background:rgba(224,192,119,.28)}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-table th{color:#E0C077}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-table td{border-bottom-color:#2E4068}
body.uiun-desk .uiuf-btn{background:var(--dk-card2);border-color:var(--dk-line);color:var(--dk-navy)}
body.uiun-desk .uiuf-btn.uiuf-blue{background:var(--dk-navy);border-color:var(--dk-navy);color:var(--dk-gold2)}
body.uiun-desk .uiuf-btn.uiuf-green{background:#1F6B44;border-color:#1F6B44;color:#fff}
body.uiun-desk .uiuf-btn.uiuf-red{background:#8F1D22;border-color:#8F1D22;color:#fff}
body.uiun-desk .uiuf-btn.uiuf-del{background:transparent;color:#8F1D22;border-color:#C98B8E}

/* Editor */
body.uiun-desk .nwa-wrap .nwa-btn{background:var(--dk-card2);border-color:var(--dk-line);color:var(--dk-navy)}
body.uiun-desk .nwa-wrap .nwa-btn:hover{background:#EBDDB5;border-color:var(--dk-navy)}
body.uiun-desk .nwa-wrap .nwa-btn-primary{background:var(--dk-gold);border-color:#7A5B18;color:#fff}
body.uiun-desk .nwa-wrap .nwa-field input[type=text],body.uiun-desk .nwa-wrap .nwa-field input[type=datetime-local],body.uiun-desk .nwa-wrap .nwa-field input[type=url],body.uiun-desk .nwa-wrap .nwa-field select,body.uiun-desk .nwa-wrap .nwa-field textarea,body.uiun-desk .nwa-wrap .nwa-tagadd input{background:#FFFBEF;border:1px solid var(--dk-line);color:var(--dk-ink)}
body.uiun-desk .nwa-toolbar{background:var(--dk-card2)!important;border-bottom:1px solid var(--dk-line)!important}
body.uiun-desk .nwa-editor{background:#FFFBEF!important;color:var(--dk-ink)}
body.uiun-desk .nwa-source,body.uiun-desk .nwa-body-text{background:#FFFBEF}
body.uiun-desk .nwa-statusbar{background:var(--dk-card2)!important;color:var(--dk-mute);border-top:1px solid var(--dk-line)}
body.uiun-desk .nwa-cover{background:var(--dk-card2);border:1px dashed var(--dk-line)}
body.uiun-desk .nwa-checklist li{color:var(--dk-ink)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field input[type=text],html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field select,html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field textarea,html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field input[type=datetime-local],html[data-nw-theme="dark"] body.uiun-desk .nwa-filters input,html[data-nw-theme="dark"] body.uiun-desk .nwa-filters select,html[data-nw-theme="dark"] body.uiun-desk .nwa-editor{background:#0F1A2E!important;color:#E8EAF0;border-color:#2E4068}
html[data-nw-theme="dark"] body.uiun-desk .nwa-toolbar,html[data-nw-theme="dark"] body.uiun-desk .nwa-statusbar{background:#0F1A2E!important;border-color:#2E4068!important}

/* AI News Writer and other panel pages inside the desk */
body.uiun-desk .uaw-card{background:var(--dk-card)!important;border:1px solid var(--dk-line)!important;border-top:4px solid var(--dk-navy)!important}
body.uiun-desk .uaw-card h2{color:var(--dk-navy)}
body.uiun-desk .uaw input[type=text],body.uiun-desk .uaw textarea,body.uiun-desk .uaw select,body.uiun-desk .uaw .uaw-body{background:#FFFBEF;border-color:var(--dk-line);color:var(--dk-ink)}
body.uiun-desk .uaw h1{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .uaw h1,html[data-nw-theme="dark"] body.uiun-desk .uaw-card h2{color:#E0C077}
html[data-nw-theme="dark"] body.uiun-desk .uaw input[type=text],html[data-nw-theme="dark"] body.uiun-desk .uaw textarea,html[data-nw-theme="dark"] body.uiun-desk .uaw select,html[data-nw-theme="dark"] body.uiun-desk .uaw .uaw-body{background:#0F1A2E;color:#E8EAF0}
body.uiun-desk .pr-panelbox{background:var(--dk-card);border-color:var(--dk-line)}
body.uiun-desk .pr-panelbox h1{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .pr-panelbox h1{color:#E0C077}

/* Bottom bar and More menu: the full design (solid navy and gold) lives in ukpor-improvement-union.php.
   v5.13.1: the old overrides that painted the More header ivory (making its gold and white text faint) were removed. */
#uiu-more-backdrop{background:rgba(8,14,27,.6)}

/* =====================================================================================
   v5.9.3 — News sections: alignment and padding fixes
   (Loaded last, so these rules settle the clashes between the older layers above.)
   ===================================================================================== */

/* ---------- PUBLIC NEWSPAPER ---------- */

/* Top bar: the date was wrapping onto 3 lines and "Sign In" onto 2 on phones */
.uiu-news .nw-topbar-in{flex-wrap:nowrap;min-width:0}
.uiu-news .nw-date,.uiu-news .nw-live,.uiu-news .nw-top-link{white-space:nowrap}
.uiu-news .nw-top-actions{flex:none;gap:10px}
@media(max-width:600px){
  .uiu-news .nw-date{display:none}
  .uiu-news .nw-top-actions{margin-left:auto}
}

/* Section menu and Breaking bar line up with the page edge (the pills were 4px in, the red bar 16px out) */
@media(min-width:701px){
  .uiu-news .nw-nav-links{margin-left:-4px}
  .uiu-news .nw-breaking-in{padding-left:16px;padding-right:16px}
}

/* Breaking story rows: the red marker no longer pushes text and photo out of line */
.nw-row.is-urgent{border-left:0;padding-left:0;position:relative}
.nw-row.is-urgent::before{content:"";position:absolute;left:-10px;top:22px;bottom:22px;width:3px;border-radius:3px;background:var(--nw-accent)}
@media(max-width:760px){.nw-row.is-urgent::before{top:16px;bottom:16px;left:-9px}}

/* Top stories: the three small stories now fill the same height as the lead photo */
@media(min-width:761px){
  .nw-top-side{align-self:stretch}
  .nw-top-side .nw-mini{flex:1 1 0;align-items:center;padding:14px 0}
  .nw-top-side .nw-mini:first-child{padding-top:0}
  .nw-top-side .nw-mini:last-child{padding-bottom:0}
}

/* Footer: the divider line now starts and ends where the columns do */
.nw-copy{width:calc(100% - 32px);max-width:1168px;padding-left:0;padding-right:0}

/* Story page: the "note" box in a story used the same name as the floating music note in the
   old masthead, so it floated, tilted and animated. It is a normal box again. */
.nw-body .nw-note,.nwa-editor .nw-note,.nwa-pv .nw-note{position:static;inset:auto;z-index:auto;transform:none;animation:none;opacity:1;pointer-events:auto;font-size:inherit;text-shadow:none;color:#0f2a4d}
html[data-nw-theme="dark"] .nw-body .nw-note{color:#dbeafe}
.nw-cover figcaption{padding-top:10px}
.nw-article .nw-share{margin-bottom:24px}
@media(max-width:640px){
  .nw-art-head h1{margin:10px 0 12px}
  .nw-byline{margin:16px 0 12px;padding:12px 0}
  .nw-reactions{margin-top:26px;padding:16px 0}
  .nw-related{margin-top:36px;padding-top:24px}
}

/* ---------- POST NEWS DESK ---------- */

/* Tabs: five tabs wrapped onto a second row and stretched the first column */
body.uiun-desk .nwa-tabs{display:flex!important;flex-wrap:wrap;grid-template-columns:none!important;justify-content:flex-start;align-items:flex-end;gap:6px;margin:0 0 20px;padding:0;overflow:visible!important;border-bottom:2px solid var(--dk-navy)}
body.uiun-desk .nwa-tabs a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;height:42px;min-height:0;padding:0 18px;margin:0 0 -2px;border:1px solid var(--dk-line);border-bottom:0;border-radius:8px 8px 0 0;font-size:12px;line-height:1;white-space:nowrap;box-shadow:none}
body.uiun-desk .nwa-tabs a.is-active{box-shadow:inset 0 -3px 0 var(--dk-gold2)}
body.uiun-desk .nwa-tabs a.nwa-tab-ext{margin-left:auto;background:transparent;border-color:transparent;color:var(--dk-navy2);text-transform:none;letter-spacing:0;font-size:13px}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs{border-bottom-color:#2E4068}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs a.nwa-tab-ext{background:transparent;border-color:transparent;color:#C8D3EA}
@media(max-width:700px){
  body.uiun-desk .nwa-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;border-bottom:0}
  body.uiun-desk .nwa-tabs a{height:44px;margin:0;padding:0 8px;border:1px solid var(--dk-line);border-radius:8px;white-space:normal;text-align:center;line-height:1.15}
  body.uiun-desk .nwa-tabs a.nwa-tab-ext{grid-column:1/-1;margin:0;height:38px;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px}
}

/* Stories filter pills: the active "All" pill had navy text on a navy background */
body.uiun-desk .nwa-views a{background:var(--dk-card2);border-color:var(--dk-line)}
body.uiun-desk .nwa-views a.is-current{background:var(--dk-navy);border-color:var(--dk-navy);color:#fff}
body.uiun-desk .nwa-views a.is-current span{color:var(--dk-gold2)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a{background:#142038;border-color:#2E4068}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a.is-current{background:#E0C077;border-color:#E0C077;color:#131F38}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a.is-current span{color:#4a3a12}

/* Stat cards: they touched the panel edges; they now sit inside the same 20px gutter as everything else */
body.uiun-desk .uiuf-panel-body .nwa-dash>.nwa-stats{margin:6px 20px 20px!important}
@media(max-width:900px){
  body.uiun-desk .nwa-dash>.nwa-stats .uiuf-stat:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:700px){
  body.uiun-desk .uiuf-panel-body .nwa-dash>.nwa-stats{margin:4px 14px 16px!important}
}
body.uiun-desk .uiuf-panel-body{padding:16px 0 4px}

/* Stories table on phones: one clear card per story instead of a table that scrolls sideways */
@media(max-width:700px){
  .nwa-dash .uiuf-table-wrap{overflow:visible;margin:10px 14px 14px!important;padding:0}
  .nwa-dash table,.nwa-dash tbody,.nwa-dash tr,.nwa-dash td{display:block;width:100%}
  .nwa-dash thead{display:none}
  body.uiun-desk .nwa-dash tbody tr,body.uiun-desk .nwa-dash tbody tr:nth-child(even){margin:0 0 12px;padding:14px;border:1px solid var(--dk-line);border-radius:10px;background:var(--dk-card2)}
  body.uiun-desk .nwa-dash tbody tr:hover{background:var(--dk-card2)}
  .nwa-dash td,.nwa-dash td:first-child{min-width:0}
  body.uiun-desk .nwa-dash td{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border:0;font-size:13px}
  .nwa-dash td::before{flex:none;font:800 11px/1 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--dk-mute,#64748b)}
  .nwa-dash td:nth-child(2)::before{content:"Section"}
  .nwa-dash td:nth-child(3)::before{content:"Status"}
  .nwa-dash td:nth-child(4)::before{content:"Views"}
  .nwa-dash td:nth-child(5)::before{content:"Reactions"}
  .nwa-dash td:nth-child(6)::before{content:"Date"}
  body.uiun-desk .nwa-dash td:first-child{display:block;padding:0 0 12px;margin-bottom:6px;border-bottom:1px solid var(--dk-line)}
  body.uiun-desk .nwa-dash td:last-child{display:block;padding:12px 0 0;margin-top:6px;border-top:1px solid var(--dk-line)}
  body.uiun-desk .nwa-dash td.uiuf-empty{display:block;text-align:center}
  body.uiun-desk .nwa-dash td.uiuf-empty::before{content:none}
  .nwa-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .nwa-acts form,.nwa-acts .uiu-inline{display:block;width:100%}
  .nwa-acts .uiuf-btn,.nwa-acts button,.nwa-acts a{width:100%!important;height:38px!important;font-size:11.5px!important}
}

/* Editor: the article body card had 20px of padding that pushed the toolbar and the
   writing area away from the card border. Header, toolbar and writing area now go edge to edge. */
.nwa-card.nwa-bodycard{padding:0}
.nwa-bodycard .nwa-bodyhead{border-radius:8px 8px 0 0;padding:14px 20px}
.nwa-bodycard .nwa-statusbar{border-radius:0 0 8px 8px}
.nwa-bodycard .nwa-toolbar{padding:6px 12px}
.nwa-bodycard .nwa-body-text{padding:16px 20px}
body.uiun-desk .nwa-bodycard .nwa-bodyhead{background:var(--dk-card2);border-bottom:1px solid var(--dk-line)}
body.uiun-desk .nwa-bodycard .nwa-bodyhead .nwa-lab{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-bodycard .nwa-bodyhead .nwa-lab{color:#E0C077}
@media(max-width:700px){
  .nwa-bodycard .nwa-bodyhead{padding:12px 14px}
  .nwa-bodycard .nwa-toolbar{padding:4px 8px}
  .nwa-bodycard .nwa-body-text{padding:14px}
}

/* Stories table: dates stay on one line, action buttons stay in one row on wide screens, filter bar matches the desk colours */
.nwa-dash td:nth-child(6){white-space:nowrap}
@media(min-width:1100px){.nwa-dash .nwa-acts{flex-wrap:nowrap}.nwa-dash td:last-child{white-space:nowrap}}
body.uiun-desk .nwa-filters{background:var(--dk-card2);border-top:1px solid var(--dk-line);border-bottom:1px solid var(--dk-line)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-filters{background:#0F1A2E}

/* =====================================================================================
   v5.9.5 — Post News desk: classic newsroom look
   Deep navy backdrop, ivory cards with a gold hairline and a double rule, serif headings,
   big numerals on the stat cards, a navy table header, gold ornaments.
   (Only colours and finish. Layout rules above are kept.)
   ===================================================================================== */
body.uiun-desk{
  --dk-page:#0B1630;--dk-page2:#13254A;--dk-card:#FFFDF8;--dk-card2:#F6F0E0;--dk-line:#D9C58F;
  --dk-ink:#1B1A17;--dk-mute:#6A624F;--dk-navy:#12213F;--dk-navy2:#1F3768;--dk-gold:#B58A2C;--dk-gold2:#E7C877;
  --dk-burg:#7A1F2B;--dk-green:#1F6B44;--dk-blue:#1E4FA3;--dk-amber:#B7791F;
  background:
    radial-gradient(900px 360px at 50% -60px,rgba(231,200,119,.20),transparent 70%),
    linear-gradient(180deg,var(--dk-page) 0,var(--dk-page2) 100%) fixed;
  color:var(--dk-ink);
  font-family:"Barlow",-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
html[data-nw-theme="dark"] body.uiun-desk{
  --dk-page:#060C1A;--dk-page2:#0C1730;--dk-card:#13203A;--dk-card2:#0F1A31;--dk-line:#2C416B;
  --dk-ink:#E9ECF3;--dk-mute:#9FABC2;--dk-navy:#E7C877;--dk-navy2:#C9D5F0;--dk-gold:#E7C877;--dk-gold2:#E7C877}

/* Top bar */
body.uiun-desk .uiun-adminbar{padding:12px 20px;background:linear-gradient(115deg,#060D1F,#14284F 70%,#1C376B);border-bottom:0;box-shadow:0 1px 0 #E7C877,0 6px 18px rgba(0,0,0,.45)}
body.uiun-desk .uiun-adminbrand{font:800 22px/1.05 "Playfair Display",Georgia,serif;letter-spacing:.01em;color:#fff}
body.uiun-desk .uiun-adminbrand b{color:#E7C877;font-weight:800}
body.uiun-desk .uiun-adminbrand small{font:700 10.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.22em;color:#E7C877;margin-top:5px}
body.uiun-desk .uiun-adminbrand img{border:2px solid #E7C877;box-shadow:0 0 0 3px rgba(231,200,119,.25)}
body.uiun-desk .uiun-adminmain{padding-top:26px}

/* Tabs: classic folder tabs sitting on the navy page */
body.uiun-desk .nwa-tabs{border-bottom:2px solid var(--dk-gold2)}
body.uiun-desk .nwa-tabs a{background:rgba(255,255,255,.07);border:1px solid rgba(231,200,119,.35);border-bottom:0;color:#F1E2B8;font:700 12.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;transition:background .15s,color .15s}
body.uiun-desk .nwa-tabs a:hover{background:rgba(231,200,119,.18);color:#fff}
body.uiun-desk .nwa-tabs a.is-active{background:var(--dk-card);color:var(--dk-navy);border-color:var(--dk-gold2);box-shadow:inset 0 3px 0 var(--dk-gold)}
body.uiun-desk .nwa-tabs a.nwa-tab-urgent{background:rgba(122,31,43,.55);border-color:#D98A93;color:#FFE3E6}
body.uiun-desk .nwa-tabs a.nwa-tab-ext{background:transparent;border-color:transparent;color:#E7C877;text-transform:none;letter-spacing:.02em;font-size:13px}
@media(max-width:700px){body.uiun-desk .nwa-tabs{border-bottom:0}body.uiun-desk .nwa-tabs a{border:1px solid rgba(231,200,119,.4);border-radius:8px}}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs a.is-active{color:#E7C877}

/* Panels, cards and boxes: ivory, gold hairline, double rule on top */
body.uiun-desk .uiuf-panel,body.uiun-desk .nwa-card,body.uiun-desk .nwa-box{background:var(--dk-card)!important;border:1px solid var(--dk-line)!important;border-top:4px double var(--dk-navy)!important;border-radius:4px;box-shadow:0 10px 28px rgba(2,8,24,.45),0 1px 0 rgba(255,255,255,.6) inset}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-panel,html[data-nw-theme="dark"] body.uiun-desk .nwa-card,html[data-nw-theme="dark"] body.uiun-desk .nwa-box{border-top-color:#E7C877!important}
body.uiun-desk .uiuf-panel-head{background:linear-gradient(180deg,#FFFDF8,#F7F0DD);border-bottom:2px solid var(--dk-gold);padding:18px 22px}
body.uiun-desk .uiuf-panel-head h2{font:800 26px/1.1 "Playfair Display",Georgia,serif;color:var(--dk-navy);letter-spacing:.005em}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-panel-head{background:linear-gradient(180deg,#16264A,#101D38)}
body.uiun-desk .nwa-box-title{display:flex;align-items:center;gap:10px;padding:11px 16px!important;font:800 12.5px/1 "Barlow",Arial,sans-serif!important;letter-spacing:.16em;text-transform:uppercase;background:linear-gradient(115deg,#0E1B38,#1F3768)!important;color:#E7C877!important;border-bottom:2px solid #E7C877!important}
body.uiun-desk .nwa-box-title::before{content:"";width:8px;height:8px;background:#E7C877;transform:rotate(45deg);flex:none}
body.uiun-desk .nwa-box-title small{margin-left:auto;background:#E7C877;color:#12213F;border-radius:999px;padding:3px 9px;font-size:10px;letter-spacing:.08em}

/* Stat cards: big serif figures, coloured top rule */
body.uiun-desk .uiuf-stats{gap:14px}
body.uiun-desk .uiuf-stat{position:relative;background:linear-gradient(180deg,#FFFFFF,#F7F1DF);border:1px solid var(--dk-line);border-top:4px solid var(--dk-navy);border-left:1px solid var(--dk-line);border-radius:4px;padding:16px 16px 14px;box-shadow:0 4px 12px rgba(18,33,63,.10);text-align:left}
body.uiun-desk .uiuf-stat strong{font:800 38px/1 "Playfair Display",Georgia,serif;color:var(--dk-navy);letter-spacing:-.01em}
body.uiun-desk .uiuf-stat span{display:block;margin-top:8px;font:700 11.5px/1.2 "Barlow",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--dk-mute)}
body.uiun-desk .uiuf-stat:nth-child(1){border-top-color:var(--dk-green)}
body.uiun-desk .uiuf-stat:nth-child(2){border-top-color:var(--dk-amber)}
body.uiun-desk .uiuf-stat:nth-child(3){border-top-color:var(--dk-blue)}
body.uiun-desk .uiuf-stat:nth-child(4){border-top-color:var(--dk-navy)}
body.uiun-desk .uiuf-stat:nth-child(5){border-top-color:var(--dk-burg)}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-stat{background:linear-gradient(180deg,#18284A,#122040);border-color:#2C416B}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-stat strong{color:#fff}

/* Status pills and filters */
body.uiun-desk .nwa-views{gap:8px;padding:0 22px 14px}
body.uiun-desk .nwa-views a{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;background:#fff;border:1px solid var(--dk-line);color:var(--dk-navy2);font:700 13px/1 "Barlow",Arial,sans-serif;transition:all .15s}
body.uiun-desk .nwa-views a span{display:inline-block;min-width:22px;padding:2px 7px;border-radius:999px;background:#EFE6CC;color:var(--dk-navy);font-size:11.5px;text-align:center}
body.uiun-desk .nwa-views a:hover{border-color:var(--dk-navy)}
body.uiun-desk .nwa-views a.is-current{background:linear-gradient(115deg,#0E1B38,#1F3768);border-color:#0E1B38;color:#fff;box-shadow:0 3px 8px rgba(18,33,63,.35)}
body.uiun-desk .nwa-views a.is-current span{background:#E7C877;color:#12213F}
body.uiun-desk .nwa-filters{padding:14px 22px;gap:10px;background:#F6F0E0}
body.uiun-desk .nwa-filters input,body.uiun-desk .nwa-filters select{height:42px;border-radius:4px;border:1px solid var(--dk-line);background:#fff;font:500 14px "Barlow",Arial,sans-serif}
body.uiun-desk .nwa-filters input:focus,body.uiun-desk .nwa-filters select:focus{outline:2px solid var(--dk-gold2);border-color:var(--dk-gold)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a{background:#13203A;border-color:#2C416B;color:#C9D5F0}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a span{background:#1D2F57;color:#E7C877}
html[data-nw-theme="dark"] body.uiun-desk .nwa-filters{background:#0F1A31}

/* Buttons */
body.uiun-desk .uiuf-btn{height:36px;min-height:0;padding:0 15px;border-radius:4px;border:1px solid var(--dk-line);background:#fff;color:var(--dk-navy);font:700 12.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.04em;transition:transform .12s,box-shadow .12s,filter .12s}
body.uiun-desk .uiuf-btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(18,33,63,.22);filter:none}
body.uiun-desk .uiuf-btn.uiuf-blue{background:linear-gradient(180deg,#24427F,#12213F);border-color:#0C1730;color:#fff}
body.uiun-desk .uiuf-btn.uiuf-green{background:linear-gradient(180deg,#2A8A5A,#1F6B44);border-color:#154E31;color:#fff}
body.uiun-desk .uiuf-btn.uiuf-red{background:linear-gradient(180deg,#A12A38,#7A1F2B);border-color:#5A141E;color:#fff}
body.uiun-desk .uiuf-btn.uiuf-del{background:#fff;color:#7A1F2B;border-color:#D9A3AA}
body.uiun-desk .uiuf-btn.uiuf-del:hover{background:#7A1F2B;color:#fff}
body.uiun-desk .nwa-head-actions{display:flex;flex-wrap:wrap;gap:10px}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn{background:#16264A;color:#E7C877;border-color:#2C416B}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn.uiuf-blue{background:#E7C877;color:#12213F;border-color:#E7C877}

/* Stories table */
body.uiun-desk .uiuf-table th{background:linear-gradient(115deg,#0E1B38,#1F3768);color:#E7C877;font:800 11.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.14em;padding:13px 14px;border-bottom:2px solid #E7C877}
body.uiun-desk .uiuf-table td{padding:14px;border-bottom:1px solid #E6D9B3;vertical-align:middle;font-size:14px;color:var(--dk-ink)}
body.uiun-desk .uiuf-table tbody tr:nth-child(even){background:#FBF6E8}
body.uiun-desk .uiuf-table tbody tr:hover{background:#F4EACB}
body.uiun-desk .nwa-story strong{font:700 17px/1.25 "Playfair Display",Georgia,serif;color:var(--dk-navy)}
body.uiun-desk .nwa-story small{display:block;margin-top:4px;font:600 12px "Barlow",Arial,sans-serif;color:var(--dk-mute)}
body.uiun-desk .nwa-thumb{border:2px solid var(--dk-gold2);border-radius:4px;box-shadow:0 2px 6px rgba(18,33,63,.25)}
body.uiun-desk .nwa-thumb-ph{background:linear-gradient(135deg,#12213F,#1F3768);color:#E7C877;font:800 20px "Playfair Display",Georgia,serif;display:inline-flex;align-items:center;justify-content:center}
body.uiun-desk .uiuf-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font:800 11px/1.3 "Barlow",Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
body.uiun-desk .uiuf-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-table td{border-bottom-color:#22365E;color:#E9ECF3}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-table tbody tr:nth-child(even){background:#101C36}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-table tbody tr:hover{background:#18284A}
html[data-nw-theme="dark"] body.uiun-desk .nwa-story strong{color:#fff}
@media(max-width:700px){
  body.uiun-desk .nwa-dash tbody tr,body.uiun-desk .nwa-dash tbody tr:nth-child(even){background:#FFFDF8;border:1px solid var(--dk-line);border-left:5px solid var(--dk-gold);box-shadow:0 4px 12px rgba(18,33,63,.12)}
  body.uiun-desk .nwa-views{padding:0 14px 12px}
  body.uiun-desk .nwa-filters{padding:12px 14px}
  html[data-nw-theme="dark"] body.uiun-desk .nwa-dash tbody tr,html[data-nw-theme="dark"] body.uiun-desk .nwa-dash tbody tr:nth-child(even){background:#13203A}
}

/* Notices */
body.uiun-desk .uiun-notice{border-radius:4px;border-left-width:5px;font-weight:700;box-shadow:0 4px 12px rgba(2,8,24,.25)}

/* Editor */
body.uiun-desk .nwa-topbar{background:linear-gradient(115deg,#0A1530,#1B3262)!important;border-bottom:3px solid #E7C877!important;border-radius:4px;box-shadow:0 8px 22px rgba(2,8,24,.5)}
body.uiun-desk .nwa-wrap .nwa-btn{height:38px;border-radius:4px;background:#FFFDF8;border:1px solid var(--dk-line);color:var(--dk-navy);font:700 12.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase}
body.uiun-desk .nwa-wrap .nwa-btn-primary{background:linear-gradient(180deg,#D3A545,#A8791F);border-color:#7A5612;color:#fff;box-shadow:0 3px 10px rgba(168,121,31,.45)}
body.uiun-desk .nwa-wrap .nwa-title{font:800 28px/1.2 "Playfair Display",Georgia,serif;color:var(--dk-navy);padding:14px 16px;min-height:62px}
body.uiun-desk .nwa-wrap .nwa-standfirst{font:italic 500 17px/1.5 "Playfair Display",Georgia,serif;color:var(--dk-ink)}
body.uiun-desk .nwa-wrap .nwa-lab{font:800 11.5px/1 "Barlow",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--dk-navy2)}
body.uiun-desk .nwa-wrap .nwa-field input[type=text],body.uiun-desk .nwa-wrap .nwa-field textarea,body.uiun-desk .nwa-wrap .nwa-field select,body.uiun-desk .nwa-wrap .nwa-field input[type=datetime-local]{background:#fff;border:1px solid var(--dk-line);border-radius:4px}
body.uiun-desk .nwa-wrap .nwa-field input:focus,body.uiun-desk .nwa-wrap .nwa-field textarea:focus,body.uiun-desk .nwa-wrap .nwa-field select:focus{outline:2px solid var(--dk-gold2);border-color:var(--dk-gold)}
body.uiun-desk .nwa-editor{background:#fff!important;font-family:"Playfair Display",Georgia,serif;font-size:17px;line-height:1.75}
body.uiun-desk .nwa-checklist li{position:relative;padding:9px 14px 9px 40px;border-bottom:1px solid #EADFBD;font:600 13.5px "Barlow",Arial,sans-serif}
body.uiun-desk .nwa-checklist li::before{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;border:2px solid #C9B27A;background:#fff}
body.uiun-desk .nwa-checklist li.is-ok::before{background:#1F6B44;border-color:#1F6B44;content:"\2713";color:#fff;font:800 11px/12px Arial,sans-serif;text-align:center}
body.uiun-desk .nwa-line strong{color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .nwa-editor,html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field input[type=text],html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field textarea,html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-field select{background:#0C1730!important;color:#E9ECF3}
html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-title{color:#fff}
html[data-nw-theme="dark"] body.uiun-desk .nwa-wrap .nwa-btn{background:#16264A;color:#E7C877;border-color:#2C416B}

/* v5.9.5 fixes found while testing the new look */
body.uiun-desk .uiu-news,body.uiun-desk .uiu-news.nwa-app,body.uiun-desk .uiun-adminmain{background:transparent!important;color:var(--dk-ink)}
body.uiun-desk .uiuf-table thead tr{background:linear-gradient(115deg,#0E1B38,#1F3768)}
body.uiun-desk .uiuf-table th{background:transparent!important}
body.uiun-desk .uiuf-table{table-layout:auto}
body.uiun-desk .uiuf-table th:first-child,body.uiun-desk .uiuf-table td:first-child{min-width:300px}
body.uiun-desk .nwa-thumb,body.uiun-desk .nwa-thumb-ph{width:62px;height:44px;flex:none}
body.uiun-desk .nwa-story{gap:14px;align-items:center}
@media(min-width:1100px){
  .nwa-dash .nwa-acts{flex-wrap:wrap!important;gap:6px;max-width:330px}
  .nwa-dash td:last-child{white-space:normal!important}
}
body.uiun-desk .uiuf-btn.uiuf-ghost{background:#fff;border-color:var(--dk-line);color:var(--dk-navy)}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn.uiuf-ghost{background:#16264A;color:#E7C877}
body.uiun-desk .nwa-tabs a.nwa-tab-urgent{color:#FFE3E6}
body.uiun-desk .nwa-box-title{justify-content:flex-start!important;text-align:left}
body.uiun-desk .nwa-topbar{top:66px!important;z-index:20}
@media(max-width:700px){body.uiun-desk .nwa-topbar{top:62px!important}}
html[data-nw-theme="dark"] body.uiun-desk .nwa-tabs a.is-active{background:#E7C877!important;color:#0B1630!important;box-shadow:none}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a.is-current{background:#E7C877;border-color:#E7C877;color:#0B1630}
html[data-nw-theme="dark"] body.uiun-desk .nwa-views a.is-current span{background:#0B1630;color:#E7C877}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn.uiuf-red{background:linear-gradient(180deg,#A12A38,#7A1F2B);border-color:#5A141E;color:#fff}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn.uiuf-green{background:linear-gradient(180deg,#2A8A5A,#1F6B44);border-color:#154E31;color:#fff}
html[data-nw-theme="dark"] body.uiun-desk .uiuf-btn.uiuf-del{background:transparent;color:#F0A3AB;border-color:#7A3A44}
body.uiun-desk .nwa-checklist li.is-ok::before{content:"\2713"!important;background:#1F6B44!important;border-color:#1F6B44!important;color:#fff!important;font:800 11px/12px Arial,sans-serif!important;text-align:center;display:block}
