.thoughts-page { background: #1d1f21; min-height: 70vh; }
.thoughts-hero { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 35px 30px; border-bottom: 1px solid var(--light-line); }
.thoughts-hero h1 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.045em; line-height: 1.1; }
.thoughts-hero > p { max-width: 290px; color: var(--stone); font-size: 16px; line-height: 1.6; margin: 0; }
.thoughts-section { max-width: 790px; padding-block: 28px 64px; }
.thought-tools { margin-bottom: 24px; }
.thoughts-page [hidden], .thought-dialog[hidden] { display: none !important; }
.thought-search { display: block; color: var(--stone); font-size: 13px; }
.thought-search input { width: 100%; margin-top: 9px; padding: 13px 16px; border: 1px solid var(--light-line); border-radius: 12px; color: var(--paper); background: #242729; font: inherit; font-size: 16px; }
.thought-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.thought-filters button, .thought-filters a, .thought-empty button, .thought-search-submit { display: inline-block; border: 1px solid var(--light-line); background: transparent; color: var(--stone); border-radius: 30px; padding: 8px 13px; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.thought-filters [aria-pressed="true"], .thought-filters [aria-current="true"] { background: #382c23; color: #f6d7bc; border-color: #87634b; }
.thought-result { margin: 17px 0 0; font-size: 12px; color: var(--muted); }
.thoughts-feed { max-width: none; gap: 25px; }
.thought-card { background: linear-gradient(145deg, #252729, #202224); border-radius: 16px; box-shadow: none; }
.thought-card:target { border-color: var(--copper-light); }
.thought-card .post-author { grid-template-columns: 36px 1fr auto; padding: 18px 28px; gap: 11px; border: 0; }
.thought-card .post-author img { width: 36px; height: 36px; }
.thought-card .post-author time { color: var(--muted); font-size: 12px; }
.thought-card .post-copy { padding: 8px 28px 26px; }
.thought-card .post-copy h2 { margin: 0 0 20px; font-size: clamp(23px, 3vw, 30px); line-height: 1.25; letter-spacing: -.025em; }
.thought-card .post-copy h2 a { color: inherit; text-decoration: none; }
.thought-card .post-copy p, .thought-single .thought-body p { color: #c3bdb3; font-size: 16px; line-height: 1.8; margin-top: 17px; }
.thought-card .post-actions, .thought-single .post-actions { flex-wrap: wrap; justify-content: start; gap: 16px 26px; padding: 15px 28px; background: #1d2021; }
.thoughts-page .post-actions button, .thoughts-page .post-actions a { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--copper-light); cursor: pointer; }
.thought-action-status { flex-basis: 100%; color: var(--muted); line-height: 1.5; }
.thought-action-status:empty { display: none; }
.thought-action-status input { display: block; width: 100%; color: var(--paper); background: #26282a; border: 1px solid var(--light-line); padding: 8px; }
.thought-empty { padding: 38px 20px; text-align: center; border: 1px solid var(--light-line); border-radius: 16px; color: var(--stone); }
.thought-empty button { margin-top: 16px; }
.thoughts-page :is(a,button,input,textarea):focus-visible, .thought-dialog :is(a,button,input,textarea):focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; }
.thought-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; border: 1px solid #80634f; border-radius: 18px; background: #242628; color: var(--paper); }
.thought-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-close { float: right; border: 0; background: transparent; color: var(--paper); font-size: 28px; cursor: pointer; }
.thought-dialog h2, .thought-comments h2 { margin: 12px 0 18px; font-size: 26px; line-height: 1.3; }
.thought-dialog p, .thought-comments p { font-size: 15px; line-height: 1.7; color: var(--stone); margin-block: 12px; }
.comment-preview-fields label, .thought-comments label { display: block; margin: 18px 0 7px; font-size: 14px; }
.comment-preview-fields input, .comment-preview-fields textarea, .thought-comments input:not([type="submit"]):not([type="checkbox"]), .thought-comments textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--light-line); border-radius: 8px; background: #1c1f21; color: var(--paper); padding: 12px; font: inherit; }
.comment-preview-fields button, .thought-comments input[type="submit"] { margin-top: 18px; border: 1px solid #80634f; border-radius: 8px; padding: 12px 18px; background: #382c23; color: var(--paper); font: inherit; }
.comment-preview-fields :disabled { opacity: .6; cursor: not-allowed; }
.thought-dialog .preview-note { padding-top: 15px; border-top: 1px solid var(--light-line); font-size: 13px; }
.thought-single { max-width: 790px; padding-block: 36px 60px; }
.thought-single h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.2; margin: 22px 0; }
.thought-single .post-author { border: 0; padding-inline: 0; }
.thought-single .post-actions { margin-block: 25px; border: 1px solid var(--light-line); border-radius: 10px; }
.thought-comments { margin-top: 36px; padding-top: 25px; border-top: 1px solid var(--light-line); }
.thought-comments .comment-list { list-style: none; padding: 0; }
.thought-comments .comment-body { padding: 22px 0; border-bottom: 1px solid var(--light-line); overflow-wrap: anywhere; }
.thought-comments .comment-metadata { font-size: 12px; color: var(--muted); margin-top: 8px; }
.thought-comments .comment-content p { color: var(--stone); }
.thought-search-form { display: flex; align-items: end; gap: 10px; }
.thought-search-form .thought-search { flex: 1; }
.thought-search-submit { margin-bottom: 2px; padding: 13px; }
.thought-pagination { margin-top: 26px; line-height: 2.5; }
.thought-pagination a, .thought-pagination span { margin-right: 12px; }
@media (max-width: 600px) {
  .thoughts-hero { align-items: start; flex-direction: column; gap: 12px; padding-block: 24px; }
  .thoughts-hero > p { max-width: none; font-size: 14px; }
  .thoughts-section { padding-top: 23px; }
  .thought-card .post-author { padding: 17px 18px; grid-template-columns: 32px 1fr; }
  .thought-card .post-author img { width: 32px; height: 32px; }
  .thought-card .post-author time { grid-column: 2; font-size: 11px; }
  .thought-card .post-copy { padding: 5px 18px 23px; }
  .thought-card .post-actions { padding: 15px 18px; }
  .thought-dialog { padding: 22px; }
}
