/* NightBoard Thread Identity V10
   Final post-author composition. Loaded last intentionally.
   Fixes imported XenForo staff identities and restores role hierarchy. */

body.page-thread{
  --nb-gold:#f1b949;
  --nb-gold-soft:#ffe0a0;
  --nb-cyan:#57d9ee;
  --nb-blue:#7fb7ff;
  --nb-violet:#bc91ff;
  --nb-green:#7fe0a1;
  --nb-rail:#071522;
  --nb-rail-deep:#05101b;
  --nb-line:rgba(100,169,205,.25);
}

/* Keep this a forum userbox, not a profile landing page. */
body.page-thread .discussion-post{
  grid-template-columns:248px minmax(0,1fr)!important;
}
body.page-thread .post-author{
  border-right:1px solid rgba(89,160,197,.26)!important;
  background:
    radial-gradient(circle at 50% 4%,rgba(35,138,179,.14),transparent 30%),
    linear-gradient(180deg,#081a2a 0,#071522 46%,#06121e 100%)!important;
}
body.page-thread .post-author-card{
  padding:0 13px 13px!important;
}

/* Small banner that flows into the avatar. Uses post_banner when supplied. */
body.page-thread .post-author-hero{
  height:86px!important;
  margin:0 -13px 49px!important;
  border-bottom:1px solid rgba(72,183,216,.28)!important;
  background:#071522!important;
}
body.page-thread .post-author-atmosphere{
  overflow:hidden!important;
  background:
    radial-gradient(circle at 73% 24%,rgba(211,231,241,.8) 0 1.5px,transparent 2px),
    radial-gradient(circle at 24% 30%,rgba(156,221,244,.62) 0 1px,transparent 1.8px),
    linear-gradient(180deg,rgba(9,50,75,.72),rgba(6,25,40,.94))!important;
}
body.page-thread .post-author-atmosphere:after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(1,9,17,.08),rgba(1,8,14,.46));
  pointer-events:none;
}
body.page-thread .post-author-atmosphere img{
  width:100%!important;height:100%!important;object-fit:cover!important;
  opacity:.66!important;filter:saturate(.82) brightness(.72)!important;
}
body.page-thread .post-author-avatar.avatar{
  width:104px!important;height:104px!important;min-width:104px!important;
  bottom:-48px!important;
  border:3px solid #061522!important;
  outline:1px solid rgba(70,219,241,.82)!important;
  box-shadow:0 0 0 5px rgba(15,52,70,.88),0 7px 20px rgba(0,0,0,.38)!important;
}
body.page-thread .post-author-avatar .author-presence-dot{
  width:17px!important;height:17px!important;right:2px!important;bottom:7px!important;
  border:3px solid #071522!important;
}
body.page-thread .post-author-avatar .author-presence-dot.is-online{background:#3dd777!important;box-shadow:0 0 0 1px rgba(100,242,153,.66),0 0 11px rgba(61,215,119,.46)!important}

/* Identity stack. */
body.page-thread .post-author-identity{padding-top:1px!important;text-align:center!important}
body.page-thread .post-author-identity h3{margin:0!important;font-size:24px!important;line-height:1.02!important;letter-spacing:-.015em!important}
body.page-thread .post-author-identity h3 a{color:#f3dec0!important;text-decoration:none!important;text-shadow:0 1px 12px rgba(246,194,113,.08)!important}
body.page-thread .post-author-role{margin-top:4px!important;font-size:12px!important;line-height:1.1!important;text-decoration:none!important}
body.page-thread .post-author.role-admin .post-author-role{color:#77dff0!important}
body.page-thread .post-author.role-moderator .post-author-role{color:#77e1d9!important}
body.page-thread .post-author-tagline{margin:4px auto 0!important;font:italic 10.5px/1.35 Georgia,serif!important;color:#c9c1b6!important;max-width:195px!important}
body.page-thread .post-author-flourish{margin:8px auto 9px!important;width:145px!important}
body.page-thread .post-author-flourish span{background:linear-gradient(90deg,transparent,rgba(235,178,70,.52))!important}
body.page-thread .post-author-flourish span:last-child{background:linear-gradient(90deg,rgba(235,178,70,.52),transparent)!important}
body.page-thread .post-author-flourish i{color:#f0b64c!important;font-style:normal!important;font-size:9px!important}

/* The large banner is determined by derived identity tier, not merely users.role. */
body.page-thread .post-author-primary-badge{
  margin:0 2px 8px!important;
  min-height:34px!important;
  border-radius:6px!important;
  gap:8px!important;
  font-size:9.5px!important;
  letter-spacing:.09em!important;
}
body.page-thread .post-author.role-admin .post-author-primary-badge{
  color:#ffe3a4!important;
  border:1px solid rgba(240,178,55,.78)!important;
  background:linear-gradient(90deg,rgba(77,45,5,.72),rgba(121,75,11,.44),rgba(68,39,6,.70))!important;
  box-shadow:inset 0 1px rgba(255,236,180,.12),0 0 0 1px rgba(255,181,46,.05),0 0 14px rgba(224,151,28,.12)!important;
}
body.page-thread .post-author.role-admin .post-author-primary-badge span{color:#ffc74d!important}
body.page-thread .post-author.role-moderator .post-author-primary-badge{
  color:#9cf1ed!important;
  border:1px solid rgba(55,196,194,.61)!important;
  background:linear-gradient(90deg,rgba(9,67,70,.65),rgba(18,93,97,.38),rgba(8,58,61,.65))!important;
}
body.page-thread .post-author.is-founder .post-author-primary-badge:after{
  content:"Founder";
  position:absolute;right:7px;top:50%;transform:translateY(-50%);
  padding:2px 5px;border-radius:3px;
  font:700 6.5px/1 var(--mono);letter-spacing:.08em;
  color:#ffda82;background:rgba(13,23,31,.72);border:1px solid rgba(231,176,66,.34);
}

/* Secondary groups are real identity bars, not tiny generic pills. */
body.page-thread .post-author-groups{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
  margin:0 10px 9px!important;
}
body.page-thread .post-author-groups .post-author-group{
  width:100%!important;
  min-height:28px!important;
  padding:0 10px 0 28px!important;
  position:relative!important;
  justify-content:flex-start!important;
  border-radius:5px!important;
  font-size:8px!important;
  letter-spacing:.065em!important;
}
body.page-thread .post-author-groups .post-author-group:before{
  position:absolute;left:9px;top:50%;transform:translateY(-50%);
  font-size:11px;line-height:1;
}
body.page-thread .post-author-groups .tone-founder:before{content:"★";color:#f4bc52}
body.page-thread .post-author-groups .tone-admin:before{content:"◆";color:#f4bc52}
body.page-thread .post-author-groups .tone-staff:before{content:"♟";color:#67dce2}
body.page-thread .post-author-groups .tone-member:before{content:"●";color:#7fb7ff}
body.page-thread .post-author-groups .tone-supporter:before{content:"✦";color:#bc91ff}
body.page-thread .post-author-groups .tone-trusted:before{content:"✓";color:#7fe0a1}
body.page-thread .post-author-groups .tone-historical:before{content:"◷";color:#aab4c0}
body.page-thread .post-author-groups .tone-restricted:before{content:"!";color:#ff9894}
body.page-thread .post-author-groups .tone-admin{
  color:#ffd88d!important;border-color:rgba(225,166,57,.46)!important;background:linear-gradient(90deg,rgba(91,55,9,.45),rgba(44,34,23,.26))!important
}
body.page-thread .post-author-groups .tone-staff{
  color:#89e9ec!important;border-color:rgba(62,198,203,.45)!important;background:linear-gradient(90deg,rgba(12,79,85,.43),rgba(20,48,59,.24))!important
}
body.page-thread .post-author-groups .tone-member{
  color:#9fc9ef!important;border-color:rgba(91,145,196,.39)!important;background:linear-gradient(90deg,rgba(31,69,108,.43),rgba(23,45,67,.24))!important
}

/* Presence and join date should be a quiet identity row. */
body.page-thread .post-author-presence{
  margin:0 0 8px!important;padding:7px 8px!important;
  border-top:1px solid rgba(104,162,190,.19)!important;
  border-bottom:1px solid rgba(104,162,190,.19)!important;
}
body.page-thread .post-author-presence>span{width:9px!important;height:9px!important}
body.page-thread .post-author-presence b{font-size:10px!important;color:#dfe9ef!important}
body.page-thread .post-author-presence.is-online b{color:#6dde9b!important}
body.page-thread .post-author-presence small{font-size:8px!important;color:#8fa2b3!important}

/* Stats get hierarchy and color but stay compact. */
body.page-thread .post-author-stats{
  margin:0 0 8px!important;
  border-color:rgba(90,153,184,.27)!important;
  border-radius:5px!important;overflow:hidden!important;
}
body.page-thread .post-author-stats div{min-height:55px!important;position:relative!important;padding-top:6px!important}
body.page-thread .post-author-stats div:nth-child(1) dd{color:#edf6f8!important}
body.page-thread .post-author-stats div:nth-child(2) dd{color:#ffe0a1!important}
body.page-thread .post-author-stats div:nth-child(3) dd{color:#75dff0!important}
body.page-thread .post-author-stats div:nth-child(4) dd{color:#f2d4a6!important}
body.page-thread .post-author-stats dd{font-size:14px!important;line-height:1.05!important}
body.page-thread .post-author-stats dt{font-size:7px!important;letter-spacing:.08em!important;color:#8fa3b6!important}

body.page-thread .post-author-fact{
  display:grid!important;grid-template-columns:15px 50px minmax(0,1fr)!important;
  align-items:center!important;gap:5px!important;
  min-height:29px!important;padding:4px 3px!important;
  border-top:1px solid rgba(97,154,183,.16)!important;
}
body.page-thread .post-author-fact small{font-size:7px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#8ea0af!important}
body.page-thread .post-author-fact b{font:400 9px/1.25 Georgia,serif!important;color:#d9d0c4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}

body.page-thread .post-author-actions{margin-top:8px!important}
body.page-thread .author-profile-button{
  min-height:36px!important;border-color:rgba(55,206,231,.75)!important;
  background:linear-gradient(90deg,rgba(8,80,102,.58),rgba(7,37,55,.45))!important;
  color:#89ecfb!important;font-size:10px!important;
}
body.page-thread .post-author-action-row{gap:5px!important;margin-top:5px!important}
body.page-thread .post-author-action-row>a,
body.page-thread .post-author-action-row form button{
  min-height:30px!important;border-color:rgba(111,150,171,.26)!important;background:rgba(7,20,31,.65)!important;color:#c7d0d7!important;font-size:8.5px!important
}
body.page-thread .post-author-more{margin-top:8px!important;border-top:1px solid rgba(100,157,186,.17)!important}

/* Message panel: keep the target's clean framing and true forum density. */
body.page-thread .post-main{background:linear-gradient(180deg,#081a29,#071725)!important}
body.page-thread .post-header{background:rgba(5,17,28,.28)!important}
body.page-thread .post-reading-area{padding:22px 30px 18px!important}
body.page-thread .post-content{max-width:760px!important;font-size:16px!important;line-height:1.58!important;color:#e5ded5!important}
body.page-thread .post-actions{background:rgba(4,15,24,.33)!important}

@media(max-width:1050px){
  body.page-thread .discussion-post{grid-template-columns:232px minmax(0,1fr)!important}
  body.page-thread .post-author-avatar.avatar{width:98px!important;height:98px!important;min-width:98px!important}
}
@media(max-width:790px){
  body.page-thread .discussion-post{grid-template-columns:1fr!important}
  body.page-thread .post-author-hero{height:70px!important;margin-bottom:0!important}
  body.page-thread .post-author-avatar.avatar{position:absolute!important;width:62px!important;height:62px!important;min-width:62px!important;left:14px!important;bottom:-31px!important}
  body.page-thread .post-author-identity{padding:37px 8px 4px!important;text-align:left!important}
  body.page-thread .post-author-identity h3{font-size:19px!important}
  body.page-thread .post-author-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-left:0!important;margin-right:0!important}
  body.page-thread .post-author-primary-badge{margin-left:0!important;margin-right:0!important}
}
