/* NightBoard Thread Identity V11
   Refines the post userbox into a compact forum identity card.
   Loaded after V10 so role/group presentation cannot be flattened. */
body.page-thread{
  --nb11-gold:#f0b94f;
  --nb11-gold-hi:#ffe5a8;
  --nb11-cyan:#5adcf0;
  --nb11-blue:#82b9ff;
  --nb11-green:#55dc83;
}

/* The rail should feel complete even when a member has no custom banner. */
body.page-thread .post-author-card{
  border-radius:0;
}
body.page-thread .post-author-hero{
  height:94px!important;
  margin-bottom:52px!important;
}
body.page-thread .post-author-atmosphere{
  background:
    radial-gradient(circle at 77% 24%,rgba(231,241,246,.92) 0 1.8px,transparent 2.2px),
    radial-gradient(circle at 27% 18%,rgba(139,216,243,.70) 0 1px,transparent 1.6px),
    radial-gradient(circle at 55% 35%,rgba(119,193,224,.48) 0 1px,transparent 1.5px),
    linear-gradient(180deg,#0b3852 0%,#0a2b42 52%,#071725 100%)!important;
}
body.page-thread .post-author-atmosphere:before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:48px;opacity:.9;
  background:
    linear-gradient(155deg,transparent 0 20%,#0a2030 20.5% 35%,transparent 35.5%),
    linear-gradient(205deg,transparent 0 28%,#081c2b 28.5% 48%,transparent 48.5%),
    linear-gradient(180deg,transparent 0 52%,rgba(3,13,22,.86) 53% 100%);
}
body.page-thread .post-author-avatar.avatar{
  width:108px!important;height:108px!important;min-width:108px!important;
  bottom:-50px!important;
}

/* Identity has one clear title. Avoid the old double Admin/Admin feel. */
body.page-thread .post-author-identity h3{font-size:25px!important;margin-top:1px!important}
body.page-thread .post-author-role{font:500 12.5px/1.15 Georgia,serif!important;letter-spacing:0!important;text-transform:none!important}
body.page-thread .post-author-tagline{font-size:11px!important;max-width:205px!important}
body.page-thread .post-author-flourish{margin-top:9px!important;margin-bottom:11px!important}

/* Primary role is a real banner. */
body.page-thread .post-author-primary-badge{
  min-height:37px!important;margin:0 1px 10px!important;border-radius:6px!important;
  font-size:10.5px!important;letter-spacing:.08em!important;font-weight:800!important;
}
body.page-thread .post-author.role-admin .post-author-primary-badge{
  color:var(--nb11-gold-hi)!important;
  background:linear-gradient(180deg,rgba(103,61,7,.96),rgba(58,34,5,.96))!important;
  border-color:rgba(244,181,55,.92)!important;
  box-shadow:inset 0 1px rgba(255,240,195,.16),0 0 14px rgba(235,158,31,.12)!important;
}

/* Secondary groups read as badges/bars, not tiny tag pills. */
body.page-thread .post-author-groups{gap:6px!important;margin:0 10px 11px!important}
body.page-thread .post-author-groups .post-author-group{
  min-height:30px!important;padding-left:30px!important;font-size:8.5px!important;font-weight:800!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
body.page-thread .post-author-groups .tone-admin{
  color:#ffd98d!important;border-color:rgba(230,170,54,.62)!important;
  background:linear-gradient(90deg,rgba(93,55,7,.62),rgba(34,28,22,.38))!important;
}
body.page-thread .post-author-groups .tone-staff{
  color:#8feef3!important;border-color:rgba(67,209,216,.55)!important;
  background:linear-gradient(90deg,rgba(8,78,86,.60),rgba(12,39,51,.38))!important;
}
body.page-thread .post-author-groups .tone-member{
  color:#aed2f8!important;border-color:rgba(99,157,215,.50)!important;
  background:linear-gradient(90deg,rgba(28,69,111,.56),rgba(17,40,64,.34))!important;
}
body.page-thread .post-author-groups .tone-founder{
  color:#ffe09c!important;border-color:rgba(242,187,73,.64)!important;
  background:linear-gradient(90deg,rgba(91,59,13,.60),rgba(48,34,19,.34))!important;
}
body.page-thread .post-author-groups .tone-supporter{color:#d0b1ff!important;border-color:rgba(173,126,239,.5)!important;background:rgba(75,46,111,.34)!important}
body.page-thread .post-author-groups .tone-trusted{color:#9bedb6!important;border-color:rgba(89,210,129,.48)!important;background:rgba(21,85,48,.34)!important}

/* Presence is a purposeful row even while offline. */
body.page-thread .post-author-presence{padding:8px 6px!important;margin-bottom:9px!important}
body.page-thread .post-author-presence b{font-size:10.5px!important}
body.page-thread .post-author-presence small{font-size:8.5px!important;margin-top:2px!important}

/* Stats/details/actions should fill the card instead of leaving visual holes. */
body.page-thread .post-author-stats div{min-height:58px!important}
body.page-thread .post-author-stats dd{font-size:15px!important}
body.page-thread .post-author-fact{min-height:31px!important}
body.page-thread .post-author-fact b{font-size:9.5px!important}
body.page-thread .author-profile-button{min-height:39px!important;font-size:10.5px!important}
body.page-thread .post-author-action-row>a,
body.page-thread .post-author-action-row form button{min-height:32px!important;font-size:9px!important}
body.page-thread .post-author-more summary{min-height:32px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}

/* Do not let a one-line/link-only post become a giant empty card. */
body.page-thread .discussion-post.is-short .post-main{min-height:360px!important}
body.page-thread .discussion-post:not(.is-long) .post-main{min-height:0!important}
body.page-thread .post-reading-area{min-height:0!important}

/* Legacy link-only XenForo body after Link Storyteller processing. */
.nb-link-story{
  max-width:735px;margin:0;padding:0;
}
.nb-link-story .nb-link-story-kicker{font:700 9px/1.2 var(--mono);text-transform:uppercase;letter-spacing:.12em;color:var(--nb11-cyan);margin-bottom:12px}
.nb-link-story h2{font:700 23px/1.2 Georgia,serif;color:#f1dfc6;margin:0 0 14px}
.nb-link-story p{margin:0 0 15px}
.nb-link-story-source{margin-top:20px;padding:12px 14px;border:1px solid rgba(78,173,207,.28);border-radius:7px;background:rgba(5,18,29,.56);font-size:13px!important}
.nb-link-story-source a{color:#79e5f5!important;overflow-wrap:anywhere}

@media(max-width:1050px){
  body.page-thread .post-author-hero{height:88px!important}
  body.page-thread .post-author-avatar.avatar{width:100px!important;height:100px!important;min-width:100px!important;bottom:-47px!important}
}
