/*
 * RESRGE for NexusForum
 * Theme version 1.0.1 - forum index grid compatibility correction.
 * Visual language adapted from the RESRGE 1.0 CMS public site.
 * Public-facing rules are scoped away from .acp-body so the Admin CP keeps
 * NexusForum's native administration styling.
 */

body:not(.acp-body){
  --bg:#dce6ef;
  --bg-deep:#b8c7d5;
  --panel:#ffffff;
  --panel-2:#edf3f8;
  --line:#a8b7c6;
  --line-2:#71889f;
  --text:#17202b;
  --text-2:#344454;
  --muted:#5f6975;
  --muted-2:#718096;
  --gold:#0a67c6;
  --red:#c84b45;
  --green:#58b61b;
  --blue:#0a67c6;
  --radius:5px;
  margin:0;
  min-height:100vh;
  background:linear-gradient(#d7e2ec 0,#f7f9fb 260px,#e3eaf1 100%);
  color:var(--text);
  font:14px/1.55 Verdana,Tahoma,Arial,sans-serif;
}
body:not(.acp-body) a{color:#003b91;text-decoration:underline;text-underline-offset:2px}
body:not(.acp-body) a:hover{color:#0070cf}
body:not(.acp-body) button,
body:not(.acp-body) input,
body:not(.acp-body) textarea,
body:not(.acp-body) select{font-family:Verdana,Tahoma,Arial,sans-serif}
body:not(.acp-body) .mono{font-family:"Courier New",Courier,monospace}
body:not(.acp-body) .wrap{width:100%;max-width:none;margin:0}
body:not(.acp-body) .page-shell{padding:16px}

.resrge-skip-link{position:absolute;left:-9999px}
.resrge-skip-link:focus{left:10px;top:10px;z-index:9999;background:#fff;padding:10px;color:#003f8e;border:1px solid #71889f}
.resrge-site-shell{width:min(1240px,calc(100% - 18px));margin:10px auto 24px;background:#fff;border:1px solid #6f8296;border-radius:8px;overflow:hidden;box-shadow:0 9px 32px rgba(0,31,74,.28)}
.resrge-brand-header{position:relative;padding:26px 34px 22px;min-height:164px;overflow:hidden;background:linear-gradient(120deg,#002b66 0,#075ab3 54%,#00377e 100%);color:#fff;border-bottom:1px solid #001d48}
.resrge-brand-header:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0,rgba(255,255,255,.035) 1px,transparent 1px,transparent 4px),radial-gradient(circle at 70% 35%,rgba(91,195,255,.5),transparent 28%);pointer-events:none}
.resrge-brand-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:1}
.resrge-brand-link{display:block!important;color:#fff!important;text-decoration:none!important;min-width:0}
.resrge-wordmark{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}
.resrge-wordmark strong{font-family:Arial Black,Arial,sans-serif;font-size:clamp(48px,7vw,82px);letter-spacing:-4px;font-style:italic;line-height:.9;color:#f7f9fb;text-shadow:0 3px 0 #7e8b9b,0 5px 8px rgba(0,0,0,.5)}
.resrge-pronounce{font:700 20px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#d9e8fb;padding-bottom:8px;text-shadow:0 1px 2px #001a40}
.resrge-tagline{display:block;margin:12px 0 0 2px;font:italic 700 25px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#fff;text-shadow:0 1px 2px #001a40}
.resrge-r-emblem{width:126px;height:108px;border-radius:18px;flex:0 0 auto;display:grid;place-items:center;font:italic 900 76px/1 Georgia,serif;color:#fff;background:linear-gradient(145deg,#2587dc,#003e88);border:4px solid #c8d6e5;box-shadow:0 4px 0 #001b42,0 8px 16px rgba(0,0,0,.42),inset 0 2px 2px rgba(255,255,255,.7);transform:rotate(-5deg);text-shadow:0 3px 0 #667583}

body:not(.acp-body) .resrge-topnav{display:flex!important;align-items:stretch;gap:0;margin:0;height:auto;background:linear-gradient(#fbfcfd,#dfe5eb);border-bottom:1px solid #75889a;box-shadow:0 2px 5px rgba(0,0,0,.18);position:relative;z-index:5;overflow-x:auto}
body:not(.acp-body) .resrge-topnav a{flex:1 0 auto;min-height:50px;height:auto;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;color:#073f8d;text-decoration:none;font-weight:700;font-size:13px;border-radius:0;border:0;border-right:1px solid #a8b4bf;border-bottom:0;text-shadow:0 1px #fff;white-space:nowrap;background:transparent}
body:not(.acp-body) .resrge-topnav a:last-child{border-right:0}
body:not(.acp-body) .resrge-topnav a:hover,
body:not(.acp-body) .resrge-topnav a.active{background:linear-gradient(#fff,#cbd9e6);color:#002d6b;border-bottom:0}
body:not(.acp-body) .resrge-topnav a.admin-link{color:#8e2c28;border-color:#a8b4bf}
body:not(.acp-body) .resrge-topnav a.admin-link:hover{background:linear-gradient(#fff4f3,#e8d5d4);color:#7a1713}
.resrge-nav-ico{font-size:16px;line-height:1;text-decoration:none}
body:not(.acp-body) .resrge-topnav a>b{margin-left:2px;min-width:18px;padding:2px 5px;border-radius:999px;background:#0a67c6;color:#fff;font-size:9px;text-shadow:none;text-align:center}

.resrge-memberbar{min-height:48px;display:flex;align-items:center;gap:12px;padding:6px 14px;background:linear-gradient(#f8fbfd,#e9eff4);border-bottom:1px solid #a4b2c0;color:#4c5966}
.resrge-memberbar-spacer{flex:1}
body:not(.acp-body) .online-count{display:flex;align-items:center;gap:6px;color:#51606e;font-size:11px}
body:not(.acp-body) .status-dot{width:10px;height:10px;background:#58b61b;border:1px solid #428c16;box-shadow:inset 0 1px 1px rgba(255,255,255,.7)}
body:not(.acp-body) .resrge-header-actions{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
body:not(.acp-body) .header-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid #97a9ba;border-radius:4px;background:linear-gradient(#fff,#dce6ef);color:#073f8d!important;text-decoration:none;font-size:17px;position:relative}
body:not(.acp-body) .header-icon:hover,
body:not(.acp-body) .header-icon.active{background:linear-gradient(#fff,#cbdbe9);color:#002f70!important}
body:not(.acp-body) .notification-button b{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#c84b45;color:#fff;font-size:9px;display:grid;place-items:center}
body:not(.acp-body) .header-login{font-weight:700;color:#073f8d;padding:7px 8px}
body:not(.acp-body) .header-register{min-height:34px}

body:not(.acp-body) .account-trigger{height:36px;padding:3px 8px 3px 4px;border:1px solid #93a6b8;border-radius:4px;background:linear-gradient(#fff,#dfe7ee);color:#243b53;cursor:pointer}
body:not(.acp-body) .account-trigger:hover{background:linear-gradient(#fff,#cfdeea)}
body:not(.acp-body) .avatar-mini{width:28px;height:28px;background:linear-gradient(135deg,var(--avatar-color,#0a67c6),#003e88);color:#fff;border:1px solid #fff;box-shadow:0 0 0 1px #879bad}
body:not(.acp-body) .avatar-mini:after{display:none}
body:not(.acp-body) .avatar-mini i{position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;border-radius:50%;background:#58b61b;border:2px solid #e8eef4}
body:not(.acp-body) .account-trigger-name{font-weight:700;font-size:11px}
body:not(.acp-body) .account-dropdown{right:0;top:42px;width:280px;border:1px solid #71889f;border-radius:5px;background:#fff;color:#17202b;box-shadow:0 10px 28px rgba(0,31,74,.28);overflow:hidden}
body:not(.acp-body) .account-summary{background:linear-gradient(#f9fbfd,#e9eff4);border-bottom:1px solid #a7b5c3}
body:not(.acp-body) .account-summary strong{color:#073f8d}
body:not(.acp-body) .account-summary small{color:#5f6975}
body:not(.acp-body) .account-avatar{background:linear-gradient(135deg,var(--avatar-color,#0a67c6),#003e88);color:#fff}
body:not(.acp-body) .account-links a{color:#344454;text-decoration:none;border-bottom:1px dotted #c0c9d1;border-radius:0}
body:not(.acp-body) .account-links a:hover{background:#edf3f8;color:#003b91}
body:not(.acp-body) .account-signout{border-top:1px solid #aeb9c4;background:#f4f7fa}
body:not(.acp-body) .account-signout button{color:#8b2d29}

body:not(.acp-body) .flash-stack,
body:not(.acp-body) .board-announcements{padding:12px 16px 0}
body:not(.acp-body) .flash{padding:11px 13px;border:1px solid #a9b8c5;border-radius:4px;background:#f0f6fb;color:#344454;margin:0 0 8px}
body:not(.acp-body) .flash-success{border-color:#7eb070;background:#eff9eb;color:#2b5d20}
body:not(.acp-body) .flash-warning{border-color:#d1ae4c;background:#fff9e7;color:#745d18}
body:not(.acp-body) .flash-error,
body:not(.acp-body) .form-error{border-color:#c97a76;background:#fff0ef;color:#812d29}
body:not(.acp-body) .board-announcement{border:1px solid #9badbd;border-radius:4px;background:#f2f7fb;color:#334454;box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* Main forum surfaces */
body:not(.acp-body) .breadcrumb{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin:0 0 12px;padding:7px 10px;border:1px solid #b2beca;border-radius:4px;background:#f5f8fa;color:#687482;font:11px/1.35 Verdana,Tahoma,Arial,sans-serif;text-transform:none}
body:not(.acp-body) .breadcrumb a{color:#174f93;font-weight:700;text-decoration:none}
body:not(.acp-body) .page-hero{padding:18px 20px 20px;background:linear-gradient(#fff,#eef3f8);border:1px solid #9badbd;border-radius:5px;margin-bottom:14px;box-shadow:0 1px 2px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.85)}
body:not(.acp-body) .page-hero h1{margin:0 0 6px;color:#063f8c;font:700 29px/1.15 Verdana,Tahoma,Arial,sans-serif;letter-spacing:-.5px}
body:not(.acp-body) .page-hero p{margin:0;line-height:1.55;color:#4e5964;font-size:12px}
body:not(.acp-body) .page-hero .eyebrow{margin-bottom:5px;color:#0a67c6;font:bold 10px/1.2 Verdana,Tahoma,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
body:not(.acp-body) .panel{border:1px solid #71889f;border-radius:5px;background:linear-gradient(#fff,#f4f7fa);box-shadow:0 1px 2px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.85);overflow:hidden;margin-bottom:14px}
body:not(.acp-body) .panel+.panel{margin-top:0}
body:not(.acp-body) .panel-head{min-height:38px;padding:8px 12px;background:linear-gradient(#f7fafc,#dce6ef);color:#073f8d;border-bottom:1px solid #8ea2b7;text-shadow:0 1px #fff}
body:not(.acp-body) .panel-head h2,
body:not(.acp-body) .panel-head h3{font:700 14px/1.2 Verdana,Tahoma,Arial,sans-serif;color:#073f8d}
body:not(.acp-body) .category-kicker{color:#0a67c6;font:bold 9px Verdana,Tahoma,Arial,sans-serif;letter-spacing:.08em}
body:not(.acp-body) .sidebar-card{padding:14px;background:transparent}
body:not(.acp-body) .forum-layout{grid-template-columns:minmax(0,1fr) 286px;gap:14px}

body:not(.acp-body) .forum-row,
body:not(.acp-body) .forum-row:has(.subforum-flyout){grid-template-columns:minmax(0,1fr) 150px minmax(190px,250px);gap:13px;padding:14px 15px;border-bottom:1px dotted #aeb9c3;background:rgba(255,255,255,.62)}
body:not(.acp-body) .forum-main-cell{min-width:0}
body:not(.acp-body) .forum-primary-link{width:100%;text-decoration:none!important;color:inherit}
body:not(.acp-body) .latest-link{text-decoration:none!important}
body:not(.acp-body) .forum-row.forum-read .forum-name,
body:not(.acp-body) .forum-row.forum-unread .forum-name{color:#073f8d}
body:not(.acp-body) .forum-row.forum-read .forum-icon{color:#607588;border-color:#a5b5c3;box-shadow:inset 3px 0 0 #8fa5b8}
body:not(.acp-body) .forum-row.forum-unread .forum-icon{color:#0754a1;border-color:#7fa2c2;box-shadow:inset 3px 0 0 #0a67c6}
body:not(.acp-body) .forum-read-label{display:inline-flex;margin-left:8px;padding:2px 6px;border-radius:3px;background:#eef3f7;border:1px solid #bdc8d2;color:#6c7782;font-size:8px;font-weight:700;line-height:1.25;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
body:not(.acp-body) .forum-row.forum-unread .forum-read-label{color:#0754a1;border-color:#9db9d1;background:#e8f3fb}
body:not(.acp-body) .forum-row:hover{background:linear-gradient(90deg,#f2f8fd,#fff)}
body:not(.acp-body) .forum-icon{width:42px;height:42px;border-radius:5px;background:linear-gradient(#edf7ff,#cfe3f3);border:1px solid #8ea6bb;color:#0754a1;box-shadow:inset 3px 0 0 #0a67c6;font-family:Verdana,Tahoma,Arial,sans-serif}
body:not(.acp-body) .forum-name{color:#073f8d;font:700 14px Verdana,Tahoma,Arial,sans-serif;text-decoration:none}
body:not(.acp-body) .forum-description{color:#5d6873;font-size:11px;line-height:1.5}
body:not(.acp-body) .forum-counts strong{font:700 12px "Courier New",monospace;color:#344454}
body:not(.acp-body) .forum-counts span{color:#697580;font-size:9px}
body:not(.acp-body) .latest-title{color:#073f8d;font-weight:700}
body:not(.acp-body) .latest-meta{color:#65707a}
body:not(.acp-body) .latest-link:hover{background:#eaf3fa}
body:not(.acp-body) .latest-link:hover .latest-title{color:#0070cf}
body:not(.acp-body) .forum-subrow{background:#f7fafc}
body:not(.acp-body) .forum-subrow:before{border-color:#afbdca}
body:not(.acp-body) .forum-type-badge{background:#e7f2fb;border-color:#9ab6d1;color:#0754a1}
body:not(.acp-body) .side-stat{border:1px solid #bac6d1;border-radius:4px;background:linear-gradient(#fff,#edf3f8)}
body:not(.acp-body) .side-stat strong{font-family:"Courier New",monospace;color:#073f8d}
body:not(.acp-body) .user-chip{background:#edf3f8;border:1px solid #b5c1cc;color:#344454}
body:not(.acp-body) .activity-item{border-color:#c8d1da}

body:not(.acp-body) .upcoming-strip{background:linear-gradient(90deg,#eef7fd,#fff 70%);border-color:#9badbd;border-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.12)}
body:not(.acp-body) .upcoming-title,
body:not(.acp-body) .upcoming-event,
body:not(.acp-body) .upcoming-all{border-color:#b7c3ce}
body:not(.acp-body) .upcoming-event time,
body:not(.acp-body) .event-card time{background:#e9f4fc;border-color:#9db7cf}
body:not(.acp-body) .upcoming-event time span,
body:not(.acp-body) .upcoming-all,
body:not(.acp-body) .calendar-glyph{color:#0754a1}

/* Topic list and posts */
body:not(.acp-body) .topic-list-head{padding:10px 14px;background:linear-gradient(#0f6ac5,#003f8d);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.35);font:700 9px Verdana,Tahoma,Arial,sans-serif}
body:not(.acp-body) .topic-row{border-top:1px dotted #aeb9c3;background:#fff}
body:not(.acp-body) .topic-row:hover{background:#f3f8fc}
body:not(.acp-body) .topic-main strong{color:#073f8d}
body:not(.acp-body) .topic-main small,
body:not(.acp-body) .topic-last small{color:#66727e}
body:not(.acp-body) .topic-status{background:#e8f3fb;border:1px solid #a1b9cf;color:#0a67c6;border-radius:5px}
body:not(.acp-body) .topic-row>b,
body:not(.acp-body) .topic-row-link>b{font-family:"Courier New",monospace;color:#3b4854}
body:not(.acp-body) .topic-state-pill,
body:not(.acp-body) .topic-prefix-badge{border-radius:3px}
body:not(.acp-body) .topic-state-pill.pinned{color:#7a5810;background:#fff6d8;border-color:#d9bd5b}
body:not(.acp-body) .topic-state-pill.locked{color:#7f312d;background:#fff0ef;border-color:#d59490}
body:not(.acp-body) .topic-state-pill.solved,
body:not(.acp-body) .solved-badge{color:#2f6d20;background:#edf8e9;border-color:#8db87e}
body:not(.acp-body) .topic-tag-list a{background:#e8f2f9;color:#0754a1;border:1px solid #b4c8d8;border-radius:3px;text-decoration:none}
body:not(.acp-body) .topic-legend{background:#f7fafc}
body:not(.acp-body) .moderator-strip,
body:not(.acp-body) .moderator-console{border-color:#d2ad47;background:linear-gradient(#fff9e9,#fffdf6);box-shadow:0 1px 2px rgba(0,0,0,.14)}
body:not(.acp-body) .moderator-strip small,
body:not(.acp-body) .moderator-console small{color:#6b6658}
body:not(.acp-body) .mod-shield{background:#fff1bf;color:#8a6511;box-shadow:inset 0 0 0 1px #d3b55a}

body:not(.acp-body) .post-stack{gap:14px}
body:not(.acp-body) .post-card{grid-template-columns:170px minmax(0,1fr);background:#fff;border:1px solid #71889f;border-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.15)}
body:not(.acp-body) .post-author{padding:18px;background:linear-gradient(#eef4f8,#e3ebf2);border-right:1px solid #a6b4c1;color:#344454}
body:not(.acp-body) .profile-avatar{background:linear-gradient(145deg,#2587dc,#003e88)!important;color:#fff;border:3px solid #c4d3df;box-shadow:0 2px 4px rgba(0,0,0,.28);border-radius:10px}
body:not(.acp-body) .post-author strong{color:#073f8d}
body:not(.acp-body) .post-author>span{color:#4a6076;font-size:9px}
body:not(.acp-body) .post-author dl div{border-color:#bbc6d0}
body:not(.acp-body) .post-author dt{color:#697580}
body:not(.acp-body) .post-content>header{height:42px;padding:0 14px;background:linear-gradient(#fbfcfd,#e8eef4);border-bottom:1px solid #aebbc7;color:#63707c}
body:not(.acp-body) .post-content>header a{color:#0754a1;text-decoration:none}
body:not(.acp-body) .post-copy{padding:20px;min-height:150px;color:#25313d;background:#fff}
body:not(.acp-body) .post-content>footer{background:#f4f7fa;border-top:1px solid #b4c0cb}
body:not(.acp-body) .post-content>footer button,
body:not(.acp-body) .post-action-link{color:#174f93;text-decoration:none}
body:not(.acp-body) .post-content>footer button:hover,
body:not(.acp-body) .post-action-link:hover{background:#e2edf5;color:#003b91}
body:not(.acp-body) .post-quote,
body:not(.acp-body) .post-body-rendered blockquote{background:#f3f8fc;border-left-color:#0a67c6;color:#344454}
body:not(.acp-body) .post-body-rendered .bbcode-spoiler{background:#f6f9fb;border-color:#aebdca}
body:not(.acp-body) .post-body-rendered .bbcode-spoiler summary{color:#0754a1}
body:not(.acp-body) .post-body-rendered .bbcode-code{background:#f5f7f9;border-color:#8fa1b2;color:#17202b}
body:not(.acp-body) .post-body-rendered .bbcode-code figcaption{background:#e8eef4;border-color:#aebac5;color:#52606d}
body:not(.acp-body) .post-body-rendered .bbcode-code code{color:#17202b}
body:not(.acp-body) .post-body-rendered .bbcode-code .code-line::before{color:#718096;border-color:#c5cdd5}
body:not(.acp-body) .post-image-gallery a{background:#f7fafc;border-color:#a7b7c5}
body:not(.acp-body) .post-reaction-summary span{background:#edf3f8;border-color:#b6c2cc;color:#344454}
body:not(.acp-body) .multi-quote-bar{background:#edf7fd;border-color:#9ebbd4;color:#27445e}

/* Controls and forms */
body:not(.acp-body) .btn{min-height:37px;padding:8px 13px;border:1px solid #003c83;border-radius:4px;background:linear-gradient(#1674cb,#00428e);color:#fff!important;text-decoration:none;font:700 11px Verdana,Tahoma,Arial,sans-serif;text-shadow:0 1px rgba(0,0,0,.3);box-shadow:inset 0 1px rgba(255,255,255,.25);cursor:pointer}
body:not(.acp-body) .btn:hover{background:linear-gradient(#2486df,#0050aa);color:#fff!important}
body:not(.acp-body) .btn.secondary,
body:not(.acp-body) .btn.subtle,
body:not(.acp-body) .topic-preview-btn{background:linear-gradient(#fff,#d8e3ed);border-color:#91a6b9;color:#073f8d!important;text-shadow:0 1px #fff}
body:not(.acp-body) .btn.secondary:hover,
body:not(.acp-body) .btn.subtle:hover{background:linear-gradient(#fff,#cbdbe9);color:#002f70!important}
body:not(.acp-body) .btn.danger{background:linear-gradient(#d96862,#a5322d);border-color:#842823;color:#fff!important;text-shadow:0 1px rgba(0,0,0,.3)}
body:not(.acp-body) .input,
body:not(.acp-body) .select,
body:not(.acp-body) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body:not(.acp-body) select,
body:not(.acp-body) textarea{border:1px solid #8da0b4;background:#fff;color:#17202b;border-radius:4px;outline:none}
body:not(.acp-body) .input:focus,
body:not(.acp-body) .select:focus,
body:not(.acp-body) input:focus,
body:not(.acp-body) select:focus,
body:not(.acp-body) textarea:focus{border-color:#0a67c6;box-shadow:0 0 0 2px rgba(10,103,198,.15)}
body:not(.acp-body) input[type="checkbox"],
body:not(.acp-body) input[type="radio"]{accent-color:#0a67c6}
body:not(.acp-body) .composer-shell{border-color:#71889f}
body:not(.acp-body) .composer-head{background:linear-gradient(#f8fbfd,#e9f0f6);border-color:#aebbc7}
body:not(.acp-body) .composer-head h1{color:#073f8d}
body:not(.acp-body) .composer-form input,
body:not(.acp-body) .composer-form textarea,
body:not(.acp-body) .quick-reply-form textarea{background:#fff;color:#17202b;border-color:#8da0b4;border-radius:4px}
body:not(.acp-body) .editor-toolbar,
body:not(.acp-body) .shell-editor-toolbar{background:linear-gradient(#f7fafc,#e3ebf2);border-color:#aab8c5}
body:not(.acp-body) .editor-toolbar button,
body:not(.acp-body) .shell-editor-toolbar button{color:#53667a}
body:not(.acp-body) .editor-toolbar button:hover,
body:not(.acp-body) .shell-editor-toolbar button:hover{background:#dce8f2;color:#0754a1}

/* Nexus editor */
body:not(.acp-body) .nexus-editor{border-color:#8ea2b6;border-radius:5px;background:#fff}
body:not(.acp-body) .nexus-editor-toolbar{top:0;background:linear-gradient(#f8fbfd,#e3ebf2);border-color:#aab8c5;border-radius:4px 4px 0 0;backdrop-filter:none;box-shadow:none}
body:not(.acp-body) .nexus-editor-toolbar button{color:#53667a;border-radius:4px}
body:not(.acp-body) .nexus-editor-toolbar button:hover,
body:not(.acp-body) .nexus-editor-toolbar button:focus-visible{background:#d8e6f1;color:#0754a1}
body:not(.acp-body) .nexus-editor-toolbar .nexus-editor-sep{background:#b6c2cd}
body:not(.acp-body) .nexus-editor-canvas,
body:not(.acp-body) .nexus-editor-source{background:#fff!important;color:#17202b}
body:not(.acp-body) .nexus-editor-canvas:focus{box-shadow:inset 0 0 0 2px rgba(10,103,198,.18)}
body:not(.acp-body) .nexus-editor-footer{background:#edf3f8;border-color:#aebbc7;color:#64717d;font-family:"Courier New",monospace}
body:not(.acp-body) .nexus-editor-canvas blockquote{background:#f0f6fb;border-left-color:#0a67c6}
body:not(.acp-body) .nexus-editor-canvas pre{background:#f2f5f7;border-color:#a9b6c2;color:#17202b}
body:not(.acp-body) .nexus-editor-canvas a{color:#003b91}
body:not(.acp-body) .nexus-editor-popover{background:#fff;border-color:#71889f;color:#17202b;box-shadow:0 16px 38px rgba(0,31,74,.28)}
body:not(.acp-body) .editor-popover-head b{color:#073f8d}
body:not(.acp-body) .emoji-grid button{background:#edf3f8;color:#17202b}
body:not(.acp-body) .emoji-grid button:hover,
body:not(.acp-body) .emoji-grid button.active{background:#dcebf6;border-color:#0a67c6}
body:not(.acp-body) .gif-search-form input{background:#fff;color:#17202b;border-color:#8da0b4}

/* Forum sub-components */
body:not(.acp-body) .subforum-card{background:#f8fafc;border-color:#b2c0cc;color:#344454}
body:not(.acp-body) .subforum-card:hover{background:#edf6fc;border-color:#82a7c7}
body:not(.acp-body) .subforum-card b{color:#073f8d}
body:not(.acp-body) .forum-structure-icon{background:#e4f1fb;border-color:#9db8cf;color:#0754a1}
body:not(.acp-body) .forum-moderators{background:#f7fafc}
body:not(.acp-body) .forum-moderator-list a{background:#e9f2f8;border-color:#b4c2cf;color:#174f93}
body:not(.acp-body) .bulk-topic-toolbar{background:#f7fafc;border-color:#8ea2b6}
body:not(.acp-body) .topic-select span{background:#fff;border-color:#8296a9}
body:not(.acp-body) .topic-select input:checked+span{background:#0a67c6;border-color:#0754a1}
body:not(.acp-body) .topic-select input:checked+span:after{color:#fff}
body:not(.acp-body) .topic-row:has(.topic-select input:checked){background:#eef7fd;box-shadow:inset 3px 0 #0a67c6}
body:not(.acp-body) .pagination span{color:#5f6975}
body:not(.acp-body) .pagination b{color:#073f8d}

/* Calendar */
body:not(.acp-body) .calendar-toolbar{background:linear-gradient(#f8fbfd,#e9eff4);border-color:#aebbc7}
body:not(.acp-body) .calendar-weekdays span{background:#edf3f8;color:#52606d;border-color:#b4c0ca}
body:not(.acp-body) .calendar-day{background:#fff;border-color:#c3ccd4}
body:not(.acp-body) .calendar-day.today>b{background:#0a67c6;color:#fff}
body:not(.acp-body) .calendar-event{background:#e4f1fb;border-color:#0a67c6;color:#0754a1}

/* User CP */
body:not(.acp-body) .ucp-banner{background:linear-gradient(120deg,#003f8d,#0f6ac5);color:#fff;border-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.2)}
body:not(.acp-body) .ucp-banner h1{color:#fff}
body:not(.acp-body) .ucp-banner p{color:#d8e8f8}
body:not(.acp-body) .ucp-banner-stats article{border-color:rgba(255,255,255,.25)}
body:not(.acp-body) .ucp-banner-stats strong{color:#fff;font-family:"Courier New",monospace}
body:not(.acp-body) .ucp-banner-stats span{color:#d8e8f8}
body:not(.acp-body) .ucp-sidebar{top:10px}
body:not(.acp-body) .ucp-sidebar-title,
body:not(.acp-body) .ucp-card-head{background:linear-gradient(#f7fafc,#dce6ef);border-color:#9cabb9}
body:not(.acp-body) .ucp-sidebar-title>span,
body:not(.acp-body) .ucp-card-icon{background:#e1eff9;border-color:#9db8cf;color:#0754a1}
body:not(.acp-body) .ucp-sidebar nav a{color:#4c5d6d;text-decoration:none;border-radius:4px}
body:not(.acp-body) .ucp-sidebar nav a:hover,
body:not(.acp-body) .ucp-sidebar nav a.active{background:#e4eef6;color:#073f8d}
body:not(.acp-body) .ucp-sidebar nav a.active:before{background:#0a67c6}
body:not(.acp-body) .ucp-sidebar nav a>i{background:#edf3f8;color:#617487}
body:not(.acp-body) .ucp-sidebar nav a.active>i{background:#dbeaf5;color:#0754a1}
body:not(.acp-body) .ucp-sidebar-foot,
body:not(.acp-body) .ucp-card-footer{border-color:#b5c0ca;background:#edf3f8}
body:not(.acp-body) .ucp-avatar-editor,
body:not(.acp-body) .ucp-info-tile{border-color:#b4c0ca;background:#f7fafc}
body:not(.acp-body) .ucp-sticky-actions{background:rgba(242,247,250,.97);border-color:#95a8ba;box-shadow:0 -6px 18px rgba(0,31,74,.12);backdrop-filter:none}
body:not(.acp-body) .ucp-sticky-actions b{color:#073f8d}

/* Profiles */
body:not(.acp-body) .profile-cover-art{background:linear-gradient(120deg,#002b66,#075ab3 54%,#00377e)}
body:not(.acp-body) .profile-cover-art:before{background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0,rgba(255,255,255,.035) 1px,transparent 1px,transparent 4px),radial-gradient(circle at 75% 35%,rgba(91,195,255,.45),transparent 28%)}
body:not(.acp-body) .profile-cover-art:after{display:none}
body:not(.acp-body) .profile-identity-bar{background:#fff;border-color:#a7b5c2}
body:not(.acp-body) .profile-avatar-shell{border-color:#fff;box-shadow:0 0 0 1px #8195a8,0 3px 8px rgba(0,0,0,.25);border-radius:14px}
body:not(.acp-body) .profile-name-line h1{color:#073f8d}
body:not(.acp-body) .profile-name-line span{background:#e7f2fb;border-color:#9db7ce;color:#0754a1}
body:not(.acp-body) .profile-person p,
body:not(.acp-body) .profile-stat-strip span{color:#66727e}
body:not(.acp-body) .profile-tabs{border-top:1px solid #c1cbd4}
body:not(.acp-body) .profile-tabs a{color:#596877;text-decoration:none}
body:not(.acp-body) .profile-tabs a.active,
body:not(.acp-body) .profile-tabs a:hover{color:#0754a1;border-bottom-color:#0a67c6}
body:not(.acp-body) .profile-tabs em{background:#e7eef4}
body:not(.acp-body) .profile-feed>header,
body:not(.acp-body) .profile-about-card>header,
body:not(.acp-body) .profile-section-title,
body:not(.acp-body) .social-card>header{background:linear-gradient(#f7fafc,#e6edf3);border-color:#aebbc7}
body:not(.acp-body) .profile-feed-item{border-color:#c4cdd5;text-decoration:none}
body:not(.acp-body) .profile-feed-item:hover{background:#f2f7fb}
body:not(.acp-body) .profile-feed-icon{background:#e4f1fb;border-color:#9db8cf;color:#0754a1}
body:not(.acp-body) .profile-feed-icon.reply{background:#eef3f7;border-color:#b4c1cb;color:#536d85}
body:not(.acp-body) .profile-about-copy{color:#344454}
body:not(.acp-body) .profile-about-copy blockquote{background:#f1f7fb;border-left-color:#0a67c6;color:#52606d}
body:not(.acp-body) .profile-side-card p,
body:not(.acp-body) .profile-side-action,
body:not(.acp-body) .profile-comment,
body:not(.acp-body) .mutual-list>a,
body:not(.acp-body) .reputation-list>div{border-color:#c6cfd7}
body:not(.acp-body) .profile-side-action{color:#174f93;text-decoration:none}
body:not(.acp-body) .profile-comment-form textarea,
body:not(.acp-body) .reputation-form input{background:#fff;border-color:#8da0b4;color:#17202b}
body:not(.acp-body) .profile-comment p{color:#344454}
body:not(.acp-body) .social-card>header h3{color:#073f8d}
body:not(.acp-body) .profile-section-title>span,
body:not(.acp-body) .social-card>header strong{background:#e4f1fb;color:#0754a1}

/* Authentication */
body:not(.acp-body) .auth-page{min-height:0;padding:28px 16px;background:transparent}
body:not(.acp-body) .auth-card{background:#fff;border:1px solid #71889f;border-radius:5px;box-shadow:0 5px 18px rgba(0,31,74,.18)}
body:not(.acp-body) .auth-mark{background:linear-gradient(#1674cb,#00428e);color:#fff;border-radius:6px}
body:not(.acp-body) .auth-card h1{color:#073f8d}
body:not(.acp-body) .auth-divider:before,
body:not(.acp-body) .auth-divider:after{background:#b9c4ce}

/* Downloads and generic cards */
body:not(.acp-body) .download-card,
body:not(.acp-body) .member-card,
body:not(.acp-body) .member-stat,
body:not(.acp-body) .member-stat-strip article{background:#fff;border-color:#a7b5c2;border-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.12)}
body:not(.acp-body) .member-card:hover{border-color:#7fa5c4;box-shadow:0 5px 14px rgba(0,31,74,.18)}
body:not(.acp-body) .member-accent{background:linear-gradient(90deg,#0a67c6,#dfeaf3)}
body:not(.acp-body) .member-title{color:#0754a1}
body:not(.acp-body) .role-pill{background:#e5f1fa;color:#0754a1}
body:not(.acp-body) .role-pill.admin{background:#fbe9e8;color:#9b342f}
body:not(.acp-body) .role-pill.moderator{background:#efe9fb;color:#67449d}

/* Plugin/public compatibility: prefer semantic Nexus surfaces over hard-coded dark blocks. */
body:not(.acp-body) .plugin-page,
body:not(.acp-body) .plugin-panel,
body:not(.acp-body) [class*="plugin-"] .panel{color:var(--text)}

/* Theme preview banner */
body:not(.acp-body) .theme-preview-banner{position:relative;z-index:100;background:#fff6cf;border-bottom:1px solid #d3b257;color:#624e14}
body:not(.acp-body) .theme-preview-banner a{color:#684f09;font-weight:700}

/* Footer */
body:not(.acp-body) .resrge-site-footer{margin:0;padding:15px 18px;background:linear-gradient(#0b61b4,#00377b);color:#e8f2fb;text-align:center;border-top:1px solid #00275a;font-size:11px}
body:not(.acp-body) .resrge-site-footer .resrge-footer-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-bottom:7px}
body:not(.acp-body) .resrge-site-footer a{color:#fff;text-decoration:underline}
body:not(.acp-body) .resrge-site-footer b{color:#fff}

/* Light treatment for hard-coded topic composer areas. */
body:not(.acp-body) .topic-meta-card input,
body:not(.acp-body) .poll-drawer input,
body:not(.acp-body) .poll-drawer select,
body:not(.acp-body) .topic-prefix-new input,
body:not(.acp-body) .topic-prefix-identity input:not([type=checkbox]),
body:not(.acp-body) .topic-template-field textarea{background:#fff;color:#17202b;border-color:#8da0b4}
body:not(.acp-body) .topic-editor-card .editor-heading,
body:not(.acp-body) .editor-status,
body:not(.acp-body) .poll-drawer>header{background:#edf3f8;border-color:#aebbc7;color:#52606d}
body:not(.acp-body) .topic-editor-card textarea{background:#fff;color:#17202b}
body:not(.acp-body) .topic-options-card h3,
body:not(.acp-body) .topic-label,
body:not(.acp-body) .field-label{color:#596877}
body:not(.acp-body) .topic-card-title strong,
body:not(.acp-body) .poll-title-wrap strong{color:#0754a1}
body:not(.acp-body) .prefix-picker span{background:#edf3f8;color:#53606d;border-color:#aebbc7;border-radius:4px}
body:not(.acp-body) .prefix-picker input:checked+span{background:#dcecf8;border-color:#0a67c6;color:#0754a1;box-shadow:none}
body:not(.acp-body) .shell-check>span{background:#fff;border-color:#8da0b4}
body:not(.acp-body) .shell-check input:checked+span{background:#0a67c6;border-color:#0754a1}
body:not(.acp-body) .shell-check input:checked+span:after{color:#fff}
body:not(.acp-body) .shell-switch>span,
body:not(.acp-body) .shell-switch>i{background:#aebbc7}
body:not(.acp-body) .shell-switch input:checked+span,
body:not(.acp-body) .shell-switch input:checked+i{background:#0a67c6}
body:not(.acp-body) .shell-switch input:checked+span:after,
body:not(.acp-body) .shell-switch input:checked+i:after{background:#fff}

/* Responsive adaptation keeps the RESRGE shell while respecting Nexus layouts. */
@media(max-width:1050px){
  body:not(.acp-body) .forum-layout{grid-template-columns:1fr}
  body:not(.acp-body) .forum-side{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
  body:not(.acp-body) .forum-row,
  body:not(.acp-body) .forum-row:has(.subforum-flyout){grid-template-columns:minmax(0,1fr) 130px}
  body:not(.acp-body) .forum-row .latest{display:none}
}
@media(max-width:820px){
  .resrge-brand-header{min-height:auto;padding:20px 22px}
  .resrge-wordmark strong{font-size:54px}
  .resrge-pronounce{font-size:16px}
  .resrge-tagline{font-size:20px}
  .resrge-r-emblem{width:88px;height:78px;font-size:52px}
  body:not(.acp-body) .resrge-topnav{flex-wrap:wrap;overflow:visible}
  body:not(.acp-body) .resrge-topnav a{flex:1 1 25%;min-width:130px;border-bottom:1px solid #a8b4bf}
  body:not(.acp-body) .resrge-memberbar{flex-wrap:wrap}
  body:not(.acp-body) .profile-content-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  body:not(.acp-body){font-size:13px}
  .resrge-site-shell{width:100%;margin:0;border:0;border-radius:0}
  .resrge-brand-header{padding:18px}
  .resrge-wordmark{display:block}
  .resrge-wordmark strong{font-size:46px;letter-spacing:-2px}
  .resrge-pronounce{display:block;padding:4px 0 0}
  .resrge-tagline{font-size:18px}
  .resrge-r-emblem{width:78px;height:68px;font-size:46px}
  body:not(.acp-body) .resrge-topnav a{flex:1 1 50%;justify-content:flex-start;min-width:0;min-height:43px;font-size:12px}
  body:not(.acp-body) .resrge-memberbar-status{display:none}
  body:not(.acp-body) .resrge-memberbar{justify-content:flex-end}
  body:not(.acp-body) .resrge-memberbar-spacer{display:none}
  body:not(.acp-body) .resrge-header-actions{width:100%;justify-content:flex-end}
  body:not(.acp-body) .page-shell{padding:10px}
  body:not(.acp-body) .page-hero{padding:15px}
  body:not(.acp-body) .page-hero h1{font-size:24px}
  body:not(.acp-body) .forum-row,
  body:not(.acp-body) .forum-row:has(.subforum-flyout){grid-template-columns:minmax(0,1fr);padding:12px}
  body:not(.acp-body) .forum-counts,
  body:not(.acp-body) .forum-row .latest{display:none}
  body:not(.acp-body) .forum-side{grid-template-columns:1fr}
  body:not(.acp-body) .topic-list-head{display:none}
  body:not(.acp-body) .topic-row{grid-template-columns:1fr 50px}
  body:not(.acp-body) .topic-row>b:nth-of-type(2),
  body:not(.acp-body) .topic-last{display:none}
  body:not(.acp-body) .post-card{grid-template-columns:1fr}
  body:not(.acp-body) .post-author{border-right:0;border-bottom:1px solid #a6b4c1;display:flex;align-items:center;gap:10px;text-align:left}
  body:not(.acp-body) .post-author dl{display:none}
  body:not(.acp-body) .profile-avatar{margin:0;width:48px;height:48px;border-radius:8px}
  body:not(.acp-body) .ucp-grid{grid-template-columns:1fr}
  body:not(.acp-body) .ucp-sidebar{position:static}
  body:not(.acp-body) .ucp-banner{align-items:flex-start;flex-direction:column}
}
@media(max-width:480px){
  .resrge-r-emblem{display:none}
  .resrge-wordmark strong{font-size:43px}
  body:not(.acp-body) .resrge-topnav a{flex-basis:100%;border-right:0}
  body:not(.acp-body) .account-trigger-name{display:none}
  body:not(.acp-body) .account-dropdown{position:fixed;left:10px;right:10px;top:auto;width:auto}
  body:not(.acp-body) .page-hero h1{font-size:22px}
  body:not(.acp-body) .profile-stat-strip{gap:15px}
}
