/* Nightboard Thread V7 — compact editorial forum header + disciplined post stream.
   Loads last so it can intentionally resolve older component layers. */
body.page-thread{--v7-line:rgba(107,177,207,.23);--v7-line-strong:rgba(88,211,234,.42);--v7-cyan:#58d6eb;--v7-cream:#e7c99b;--v7-copy:#e8dfd1;--v7-muted:#8e9cad;--v7-panel:#071522;--v7-panel2:#091a29}
body.page-thread main.shell.page{width:min(1240px,calc(100% - 28px))!important;max-width:1240px!important}
body.page-thread .thread-content{width:100%!important;max-width:1180px!important;margin-inline:auto!important}

/* Breadcrumb + real thread search */
body.page-thread .thread-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 12px}
body.page-thread .thread-crumb{margin:0!important;padding:0!important;border:0!important;background:none!important;display:flex;gap:9px;align-items:center;color:var(--v7-muted)}
body.page-thread .thread-crumb a{color:#91a5b8;text-decoration:none}
body.page-thread .thread-crumb a:last-child{color:var(--v7-cyan)}
body.page-thread .thread-inline-search{display:flex;align-items:center;height:38px;min-width:285px;border:1px solid var(--v7-line);border-radius:7px;background:rgba(7,18,31,.72);overflow:hidden;color:#7890a3}
body.page-thread .thread-inline-search>span{padding-left:12px;font-size:16px}
body.page-thread .thread-inline-search input{flex:1;min-width:0;border:0!important;outline:0;background:transparent!important;color:#dbe6ed;padding:0 9px;font:500 12px var(--sans)}
body.page-thread .thread-inline-search button{height:100%;border:0;border-left:1px solid var(--v7-line);background:rgba(36,111,143,.12);color:var(--v7-cyan);padding:0 13px;text-transform:uppercase;font:700 9px var(--mono);letter-spacing:.08em;cursor:pointer}

/* Thread hero: headline owns the space, actions stay secondary. */
body.page-thread .thread-hero-v7{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:28px!important;overflow:hidden!important;margin:0 0 10px!important;padding:22px 24px 20px!important;min-height:188px!important;border-radius:10px!important;border:1px solid var(--v7-line)!important;background:radial-gradient(circle at 90% 24%,rgba(37,103,139,.18),transparent 28%),linear-gradient(125deg,#091727 0%,#071522 64%,#071321 100%)!important;box-shadow:0 12px 36px rgba(0,0,0,.18)!important}
body.page-thread .thread-hero-art{position:absolute;inset:0 0 0 60%;pointer-events:none;overflow:hidden;opacity:.62}
body.page-thread .thread-hero-art:before,body.page-thread .thread-hero-art:after,body.page-thread .thread-hero-art span,body.page-thread .thread-hero-art i{content:"";position:absolute;border:1px solid rgba(88,214,235,.09);border-radius:50%}
body.page-thread .thread-hero-art:before{width:330px;height:330px;right:-75px;top:-185px}
body.page-thread .thread-hero-art:after{width:230px;height:230px;right:-25px;top:-135px}
body.page-thread .thread-hero-art span{width:145px;height:145px;right:18px;top:-92px}
body.page-thread .thread-hero-art i{width:6px;height:6px;right:88px;top:55px;background:var(--v7-cyan);box-shadow:0 0 22px 7px rgba(88,214,235,.20)}
body.page-thread .thread-title-block{position:relative;z-index:2;max-width:850px;min-width:0}
body.page-thread .thread-context-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
body.page-thread .thread-forum-chip{display:inline-flex;align-items:center;min-height:25px;padding:0 10px;border:1px solid rgba(87,199,222,.18);border-radius:5px;background:rgba(43,117,142,.08);color:#62c5dc;text-decoration:none;font:700 10px var(--sans)}
body.page-thread .thread-hero-v7 h1{max-width:810px!important;margin:0!important;color:var(--v7-cream)!important;font:600 clamp(34px,4vw,52px)/1.02 var(--serif)!important;letter-spacing:-.035em!important;text-wrap:balance!important;text-shadow:0 1px 0 rgba(0,0,0,.25)}
body.page-thread .thread-title-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin-top:16px!important;color:#9aa8b5!important;font:500 12px var(--sans)!important}
body.page-thread .thread-starter{display:inline-flex;align-items:center;gap:7px;color:#76cfe2!important;text-decoration:none!important}
body.page-thread .thread-starter .mini-avatar{width:27px;height:27px;border-radius:50%;overflow:hidden;display:inline-flex;box-shadow:0 0 0 1px rgba(92,215,235,.25)}
body.page-thread .thread-starter .mini-avatar img{width:100%;height:100%;object-fit:cover}
body.page-thread .thread-meta-dot{color:#5f7081}
body.page-thread .thread-start-date{color:#aeb7c0}
body.page-thread .thread-primary-state{padding:5px 9px!important;border:1px solid rgba(92,214,235,.17)!important;border-radius:5px!important;color:#a9c5cf!important;text-transform:none!important;background:rgba(63,122,143,.07)!important}
body.page-thread .thread-hero-actions{position:relative;z-index:3;display:flex!important;align-items:center!important;gap:8px!important;align-self:end!important;margin:0 0 2px!important;white-space:nowrap}
body.page-thread .thread-hero-actions form{margin:0}
body.page-thread .thread-hero-btn,body.page-thread .thread-hero-bookmark .btn{min-height:39px!important;padding:0 14px!important;border:1px solid rgba(111,177,205,.31)!important;border-radius:6px!important;background:rgba(6,17,29,.60)!important;color:#d6dce1!important;font:600 12px var(--sans)!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
body.page-thread .thread-hero-btn:hover,body.page-thread .thread-hero-bookmark .btn:hover{border-color:rgba(88,214,235,.55)!important;color:var(--v7-cyan)!important;background:rgba(37,116,147,.12)!important}
body.page-thread .thread-more{width:44px!important;padding:0!important}

/* Secondary controls should read like forum chrome, not more hero cards. */
body.page-thread .thread-details-panel{max-width:1180px!important;margin:0 auto 8px!important;border-radius:6px!important;background:rgba(8,20,33,.62)!important;box-shadow:none!important}
body.page-thread .thread-details-panel>summary{min-height:37px!important;padding:0 14px!important;text-transform:none!important;letter-spacing:.01em!important;font-size:11px!important}
body.page-thread .live-thread-bar{max-width:1180px!important;margin:0 auto 10px!important;min-height:46px!important;padding:8px 13px!important;border-radius:6px!important;background:rgba(8,20,33,.58)!important;box-shadow:none!important}
body.page-thread .live-thread-switch b{font-size:12px!important}
body.page-thread .live-thread-switch small{font-size:10px!important}

/* Post geometry: mature forum dimensions, with the rich small identity card retained. */
body.page-thread #thread-posts{gap:16px!important}
body.page-thread .discussion-post{grid-template-columns:248px minmax(0,1fr)!important;border-radius:7px!important;box-shadow:0 8px 25px rgba(0,0,0,.13)!important}
body.page-thread .post-author-hero{height:82px!important;margin-bottom:52px!important}
body.page-thread .post-author-avatar.avatar{width:102px!important;height:102px!important;min-width:102px!important;bottom:-47px!important}
body.page-thread .post-author-card{padding-left:14px!important;padding-right:14px!important}
body.page-thread .post-author-identity h3{font-size:25px!important}
body.page-thread .post-author-role{font-size:14px!important}
body.page-thread .post-author-tagline{font-size:12px!important;max-width:210px!important}
body.page-thread .post-author-primary-badge{min-height:32px!important;margin-top:9px!important}
body.page-thread .post-author-presence{padding:7px 5px!important;margin-top:7px!important}
body.page-thread .post-author-stats div{min-height:55px!important}
body.page-thread .post-author-stats dd{font-size:15px!important}
body.page-thread .post-author-fact{min-height:30px!important}
body.page-thread .author-profile-button{min-height:34px!important}
body.page-thread .post-author-action-row>a,body.page-thread .post-author-action-row form button{min-height:31px!important;font-size:10px!important}
body.page-thread .post-header{min-height:48px!important;padding:0 14px 0 20px!important}
body.page-thread .post-reading-area{padding:22px 30px 19px!important}
body.page-thread .post-content{max-width:735px!important;font-size:16.5px!important;line-height:1.62!important}
body.page-thread .post-content p{margin-bottom:1.13em!important}
body.page-thread .post-actions{min-height:52px!important;padding:0 18px!important}
body.page-thread .post-primary-actions>a{min-width:68px!important;padding:9px 11px!important;font-size:12px!important}

@media(max-width:980px){
 body.page-thread .thread-hero-v7{grid-template-columns:1fr!important;gap:15px!important;min-height:auto!important}
 body.page-thread .thread-hero-actions{justify-self:start!important}
 body.page-thread .thread-hero-v7 h1{font-size:clamp(31px,5.3vw,45px)!important}
 body.page-thread .thread-inline-search{min-width:230px}
 body.page-thread .discussion-post{grid-template-columns:228px minmax(0,1fr)!important}
 body.page-thread .post-reading-area{padding-left:23px!important;padding-right:23px!important}
 body.page-thread .post-content{font-size:16px!important;max-width:680px!important}
}
@media(max-width:790px){
 body.page-thread .thread-topline{align-items:stretch;flex-direction:column;gap:8px}
 body.page-thread .thread-inline-search{width:100%;min-width:0}
 body.page-thread .thread-hero-v7{padding:17px 15px 15px!important;border-radius:8px!important}
 body.page-thread .thread-hero-art{opacity:.35;left:45%}
 body.page-thread .thread-hero-v7 h1{font-size:clamp(28px,9vw,38px)!important;line-height:1.04!important}
 body.page-thread .thread-title-meta{margin-top:12px!important;font-size:11px!important}
 body.page-thread .thread-hero-actions{width:100%;overflow:auto;padding-bottom:2px}
 body.page-thread .thread-hero-btn,body.page-thread .thread-hero-bookmark .btn{min-height:36px!important;padding:0 11px!important;font-size:11px!important}
 body.page-thread .discussion-post{grid-template-columns:1fr!important}
}
