/* Topic composition from the approved PNG. All common visual values come
   from forum-home-master-20261028.css, the accepted homepage's stylesheet. */
body:has(#forum-topic.t31-format){background:#001322!important;background-image:none!important}
#forum-topic.t31-format {
 --tu:clamp(1px,calc(100cqw / 804),1.25px);
 --fu:min(calc(100vw / 806),2.12px);
 --forum-font:var(--forum-shared-font);
 color:var(--forum-shared-copy);font-family:var(--forum-shared-font);
}
#forum-topic.t31-format :is(h1,h2,h3){color:var(--forum-shared-ink)}
#forum-topic.t31-format .t28-main{min-width:0}
#forum-topic.t31-format .t28-topic{background:var(--forum-shared-panel);border-color:var(--forum-shared-edge)}
#forum-topic.t31-format .t28-topic-symbol{background:url("images/forum/topic-format/discussion.webp") center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:5px}
#forum-topic.t31-format .t28-topic-symbol svg{visibility:hidden}
#forum-topic.t31-format .t28-topic-heading h1{font-weight:700;letter-spacing:0;line-height:1.23}
#forum-topic.t31-format .t28-topic-author{color:var(--forum-shared-copy)}
#forum-topic.t31-format .t28-topic-author a{color:var(--forum-shared-cyan)}
#forum-topic.t31-format .t28-metrics>div:nth-child(3){order:4}
#forum-topic.t31-format .t28-metrics>div:nth-child(4){order:3}
#forum-topic.t31-format .t28-last-post{order:5}
#forum-topic.t31-format .t28-metric-icon{width:calc(29 * var(--tu));height:calc(30 * var(--tu));flex:none;background:url("images/forum/topic-format/metric-symbols.webp") 0 center/400% 100% no-repeat}
#forum-topic.t31-format .t28-metrics>div:nth-child(2) .t28-metric-icon{background-position-x:33.333%}
#forum-topic.t31-format .t28-metrics>div:nth-child(3) .t28-metric-icon{background-position-x:100%}
#forum-topic.t31-format .t28-metrics>div:nth-child(4) .t28-metric-icon{background-position-x:66.667%}
#forum-topic.t31-format .t28-metric-icon svg{visibility:hidden}
#forum-topic.t31-format .btn{background:var(--forum-shared-control);border-color:var(--forum-shared-control-edge);font-family:var(--forum-shared-font)}
#forum-topic.t31-format .t28-actions>.btn.primary{background:var(--forum-shared-primary);border-color:var(--forum-shared-primary-edge);box-shadow:var(--forum-shared-primary-shadow);font-weight:750}
#forum-topic.t31-format .t28-post{position:relative;background:var(--forum-shared-panel);border-color:var(--forum-shared-edge);box-shadow:var(--forum-shared-panel-shadow)}
#forum-topic.t31-format .t28-post::before{content:"";position:absolute;inset:-1px;pointer-events:none;border:3px solid transparent;border-image:url("images/forum/topic-format/post-frame.webp") 4 / 4px stretch}
#forum-topic.t31-format .post-profile{min-width:0;border-right:1px solid #07344a;background:transparent}
#forum-topic.t31-format .post-profile .person-face{box-shadow:none;border:0}
#forum-topic.t31-format .post-profile dt{color:var(--forum-shared-muted)}
#forum-topic.t31-format .post-profile dd{color:var(--forum-shared-copy);font-weight:500}
#forum-topic.t31-format .t28-author-badge{background:linear-gradient(100deg,#6855ee,#6b36ff 62%,#4538cc);box-shadow:inset 0 1px 2px #b59cff66}
#forum-topic.t31-format .t28-post-main{position:relative;min-width:0;display:flex;flex-direction:column;padding:8px 11px}
#forum-topic.t31-format .t28-post-main>header{min-height:19px;margin-bottom:5px;color:var(--forum-shared-muted)}
#forum-topic.t31-format .t28-post-links{display:flex;align-items:center;gap:9px}
#forum-topic.t31-format .fv-post-content{flex:1 0 auto;font-weight:400;line-height:1.43;color:var(--forum-shared-copy);letter-spacing:normal}
#forum-topic.t31-format .fv-post-content p{margin:0 0 .58em;line-height:1.43}
#forum-topic.t31-format .fv-post-content p:last-child{margin-bottom:0}
#forum-topic.t31-format .fv-post-content blockquote{border:1px solid #063b58;border-left:3px solid #7255db;background:var(--forum-shared-control);padding:6px 12px;margin:0}
#forum-topic.t31-format blockquote :is(strong,span){display:block}
#forum-topic.t31-format blockquote strong{border-bottom:1px solid #053450;padding-bottom:4px;font-size:.92em;font-weight:500}
#forum-topic.t31-format .t31-quote-source{float:right;position:relative;z-index:1;margin:7px 5px 0 3px;color:var(--forum-shared-cyan);font-size:9px}
#forum-topic.t31-format .f04-tags{margin:6px 0}
#forum-topic.t31-format .t28-post-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 3px;margin-top:0;border-top:1px solid #04314b;padding:3px 0 2px}
#forum-topic.t31-format .t28-post-actions .t28-reply{margin-left:0;border-left:0!important;padding-left:0!important}
#forum-topic.t31-format .t28-action-break{display:none}
#forum-topic.t31-format .t28-post-actions>form button{padding:3px 5px;white-space:nowrap}
#forum-topic.t31-format .t28-post-actions>form button[aria-pressed=true]{border-color:#1698ee;background:#073753}
#forum-topic.t31-format .t28-post-actions>form:nth-child(2) button[aria-pressed=true]{border-color:#d870a2;background:#371d34}
#forum-topic.t31-format .t31-report{display:inline-flex;align-items:center;gap:3px}
#forum-topic.t31-format .t31-more{position:relative}
#forum-topic.t31-format .t31-more>summary{display:grid;place-items:center;min-width:18px;min-height:18px;list-style:none;cursor:pointer;color:var(--forum-shared-cyan)}
#forum-topic.t31-format .t31-more>summary::-webkit-details-marker{display:none}
#forum-topic.t31-format .t31-more>div{position:absolute;top:100%;right:0;min-width:220px;max-width:min(320px,75vw);z-index:20;background:var(--forum-shared-panel);border:1px solid var(--forum-shared-edge);border-radius:5px;padding:10px;box-shadow:0 8px 24px #0008}
#forum-topic.t31-format .t31-more .t28-reaction-menu>div{position:static;border:0;padding:8px 0 0;min-width:0;max-width:none;box-shadow:none;background:transparent}
#forum-topic.t31-format .topic-attachments{margin:5px 0 0}
#forum-topic.t31-format .topic-attachment{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 9px;align-items:center;min-height:49px;background:var(--forum-shared-control);border-color:#06466d;padding:5px 8px}
#forum-topic.t31-format .topic-attachment:has(>svg):before{content:"";width:37px;height:37px;flex:none;background:url("images/forum/topic-format/attachment.webp") center/contain no-repeat}
#forum-topic.t31-format .topic-attachment:has(>svg)>svg{display:none}
#forum-topic.t31-format .topic-attachment::after{content:"Открыть";grid-column:3;grid-row:1/3;margin-left:auto;color:var(--forum-shared-cyan);background:#002c49;padding:6px 9px;border-radius:4px}
#forum-topic.t31-format .topic-attachment::before,#forum-topic.t31-format .topic-attachment>img{grid-column:1;grid-row:1/3}
#forum-topic.t31-format .topic-attachment>span{grid-column:2;grid-row:1;align-self:end;overflow-wrap:anywhere}
#forum-topic.t31-format .topic-attachment>small{grid-column:2;grid-row:2;align-self:start;margin:0;font-size:9px;color:var(--forum-shared-muted)}
/* The sidebar is the homepage component and uses its own shared CSS{--fu:min(calc(100vw / 806),2.12px)}
#forum-topic.t31-format .t31-comments{font-size:9px}
#forum-topic.t31-format .t31-comments .question-comments:not([open]){border:0;padding:0;margin:0 0 3px;text-align:right;background:transparent}
#forum-topic.t31-format .t31-comments .question-comments:not([open]) summary{font-size:9px;padding:0}
#forum-topic.t31-format .t31-draft-help{font-size:9px;color:var(--forum-shared-muted)}
#forum-topic.t31-format .t31-draft-help summary{cursor:pointer}
@media(min-width:761px){
 #forum-topic.t31-format{width:min(85.45%,1360px);padding-bottom:12px}
 #forum-topic.t31-format .t28-layout{grid-template-columns:minmax(0,3.62fr) minmax(160px,1fr);gap:2.1%}
 #forum-topic.t31-format .t28-post{grid-template-columns:23.4% minmax(0,1fr)}
 #forum-topic.t31-format .t28-actions{gap:1.5%}
 #forum-topic.t31-format .t28-topic-heading{min-height:98px;padding:11px}
 #forum-topic.t31-format .t28-post-actions :is(button,a,summary){font-size:clamp(9px,calc(9 * var(--tu)),11px)}
 #forum-topic.t31-format .t28-post-actions>form button{font-size:clamp(8.6px,calc(8.6 * var(--tu)),11px)}
 #forum-topic.t31-format .post-profile dd{font-size:calc(9 * var(--tu))}
 #forum-topic.t31-format .t28-tools{margin-bottom:12px}
 #forum-topic.t31-format .reply-editor .advanced-editor{margin:0}
}
@media(min-width:761px) and (max-width:1099px){
 #forum-topic.t31-format{position:relative;left:3px}
 #forum-topic.t31-format .t28-breadcrumb{height:23px;padding:3px 0}
 #forum-topic.t31-format .t28-topic-heading{height:98px}
 #forum-topic.t31-format .t28-post{min-height:173px}
 #forum-topic.t31-format .t28-post[data-topic-starter="1"]{min-height:241px}
 #forum-topic.t31-format .t28-post:has(.topic-attachments){min-height:203px}
 #forum-topic.t31-format .t28-post:has(blockquote){min-height:193px}
}
@media(min-width:1100px){
 #forum-topic.t31-format{width:min(1360px,calc(100% - 40px))}
 #forum-topic.t31-format .t28-post{grid-template-columns:clamp(155px,14vw,180px) minmax(0,1fr)}
 #forum-topic.t31-format .fv-post-content{font-size:15px;line-height:1.5}
 #forum-topic.t31-format .t28-post-main{padding:11px 14px}
 #forum-topic.t31-format .post-profile .vcc-avatar{width:56px;height:56px;min-width:56px}
 #forum-topic.t31-format .t28-breadcrumb{font-size:12px}
 #forum-topic.t31-format .t28-topic-heading{min-height:118px}
 #forum-topic.t31-format .t28-metrics{min-height:57px}
 #forum-topic.t31-format .t28-post-main>header{font-size:11px;min-height:23px}
}
@media(max-width:760px){
 #forum-topic.t31-format{width:calc(100% - 24px);--tu:1px}
 #forum-topic.t31-format .t28-post-actions{justify-content:flex-start;gap:8px}
 #forum-topic.t31-format .t28-post-actions :is(button,a,summary){font-size:11px}
 #forum-topic.t31-format .t28-post-actions>form button{min-height:28px;padding:4px 6px}
 #forum-topic.t31-format .fv-post-content{font-size:14px;line-height:1.5}
}

/* The catalog palette owns an important cascade layer. Match the accepted
   homepage's override in that same layer; keep the rest of the site untouched. */
@layer vccCatalogPalette {
}
