/* Thread-specific presentation; retains the shared blue/petrol palette. */
.thread-page { max-width: 980px; padding-top: 32px; padding-bottom: 56px; }
.thread-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .8rem; margin-bottom: 26px; flex-wrap: wrap; }
.thread-breadcrumb a { color: #666; text-decoration: none; }
.thread-breadcrumb a:hover { color: #0066cc; }
.thread-breadcrumb i { font-size: .6rem; color: #8a99a3; }
.thread-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #e0ecf0; padding: 32px; border: 1px solid #d4e2e9; border-radius: 16px; }
.thread-heading > div { min-width: 0; }
.thread-heading h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #023a51; font-weight: 750; margin: 10px 0 16px; overflow-wrap: anywhere; }
.thread-heading > .btn { flex-shrink: 0; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: .78rem; color: #526b78; }
.thread-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 2px; }
.thread-toolbar > div { flex-wrap: wrap; }
.thread-back, .thread-latest { font-size: .8rem; text-decoration: none; }
.thread-back { color: #666; }.thread-back i { margin-right: 5px; }
.thread-latest { margin-left: auto; }
.thread-posts { display: grid; gap: 18px; }
.thread-post { background: white; border: 1px solid #dee2e6; border-radius: 14px; overflow: hidden; scroll-margin-top: 110px; min-width: 0; }
.thread-post-first { border-top: 3px solid #0066cc; }
.thread-post:target { border-color: #0066cc; box-shadow: 0 0 0 3px #0066cc18; }
.thread-post-header { display: flex; align-items: center; gap: 12px; padding: 24px 28px 0; }
.thread-avatar { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf2f6; color: #526b78; font-weight: 700; }
.thread-avatar-team { background: #e6f0ff; color: #0066cc; }
.thread-author { min-width: 0; }.thread-author-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.thread-author-name a { color: #023a51; text-decoration: none; }.thread-author-name a:hover { text-decoration: underline; }
.thread-author time { font-size: .72rem; color: #707b83; }
.thread-team { background: #e6f0ff; color: #0052a3; padding: 3px 7px; border-radius: 5px; font-size: .6rem; }
.thread-post-number { margin-left: auto; align-self: flex-start; font-size: .75rem; color: #707b83; text-decoration: none; padding: 4px 8px; border-radius: 5px; }.thread-post-number:hover { background: #e6f0ff; color: #0066cc; }
.thread-post-content { padding: 20px 28px 22px 82px; }
.thread-post-title { font-size: .9rem; font-weight: 600; color: #526b78; margin: 0 0 12px; letter-spacing: 0; overflow-wrap: anywhere; }
.thread-post-body { line-height: 1.8; font-size: .96rem; overflow-wrap: anywhere; overflow-x: auto; }
.thread-post-body > :last-child { margin-bottom: 0; }
.thread-post-body img, .thread-post-body video { max-width: 100% !important; height: auto !important; border-radius: 8px; }
.thread-post-body iframe { max-width: 100%; }
.thread-post-body blockquote { border-left: 3px solid #80b3e6; padding: 12px 18px; background: #f2f7fc; color: #526b78; border-radius: 0 8px 8px 0; }
.thread-post-body pre { padding: 16px; background: #f1f4f7; border-radius: 8px; overflow-x: auto; }
.thread-post-body table { max-width: 100%; }.thread-post-body td, .thread-post-body th { padding: 8px; border: 1px solid #dee2e6; }
.thread-post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 28px; padding: 12px 0; border-top: 1px solid #edf2f6; }
.thread-edit-note { color: #707b83; font-size: .7rem; }
.thread-post-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.thread-post-actions a, .thread-report { font-size: .75rem; text-decoration: none; padding: 6px 0; }
.thread-report { border: none; background: transparent; color: #707b83; }.thread-report:hover { color: #b02a37; }
.thread-reply-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding: 24px; background: #edf2f6; border-radius: 12px; }
@media (max-width: 767px) {
    .thread-page { padding-top: 22px; }.thread-heading { padding: 24px; align-items: flex-start; flex-direction: column; gap: 18px; }.thread-meta { gap: 10px; }
    .thread-post-header { padding: 20px 18px 0; }.thread-post-content { padding: 18px; }.thread-post-footer { margin: 0 18px; }.thread-reply-panel { padding: 20px; }.thread-toolbar { gap: 12px; }
}
