* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 15px;
    font-family: "Open Sans", sans-serif;
    background: #fff;
    color: #555;
    transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: #111;
    font-family: "Archivo Narrow", sans-serif;
}

a {
    text-decoration: none;
    color: #111;
}

p {
    margin: 8px 0;
    line-height: 1.6;
}

.container-news {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Navbar ── */

.navbar-top {
    background: #fff;
    height: 50px;
    border-bottom: 2px solid #111;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.side-nav-panel-left,
.side-nav-panel-right {
    width: 52px;
    height: 50px;
    line-height: 48px;
    text-align: center;
}

.side-nav-panel-left {
    border-right: 2px solid #111;
}

.side-nav-panel-right {
    border-left: 2px solid #111;
}

.nav-icon {
    color: #111;
    font-size: 18px;
}

.site-brand h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 48px;
}

/* ── Topic strip ── */

.topic-strip {
    margin-top: 50px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
    position: sticky;
    top: 50px;
    z-index: 99;
}

.topic-nav {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.topic-nav a {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #222;
}

.topic-nav a:hover {
    color: #000;
    text-decoration: underline;
}

/* ── Page content ── */

.page-content {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* ── Hero ── */

.hero {
    margin-top: 4px;
    background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 36px 24px 32px;
    color: #fafafa;
}

.hero-topic {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #aac4ff;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 8px 0 12px;
    font-weight: 700;
}

.hero-title a {
    color: #fafafa;
}

.hero-title a:hover {
    text-decoration: underline;
}

.hero-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    margin: 0 0 12px;
    max-width: 640px;
}

.hero-meta {
    font-size: 13px;
    color: #bbb;
}

.hero-meta a {
    color: #ddd;
}

.hero-meta a:hover {
    text-decoration: underline;
}

/* ── Section heading ── */

.section-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #111;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ── Home columns ── */

.home-columns {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    margin-top: 24px;
}

.home-main {
    min-width: 0;
}

/* ── Article list ── */

.article-list {
    display: flex;
    flex-direction: column;
}

/* ── Article card ── */

.article-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card__topic {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111;
}

.article-card__title {
    font-size: 20px;
    line-height: 1.3;
    margin: 4px 0 6px;
}

.article-card__title a:hover {
    text-decoration: underline;
}

.article-card__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.article-card__meta a {
    color: #666;
}

.article-card__meta a:hover {
    color: #111;
    text-decoration: underline;
}

.article-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 4px 0 0;
}

/* Compact variant for topic grids */

.article-card--compact {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.article-card--compact .article-card__title {
    font-size: 16px;
    line-height: 1.25;
}

/* ── Trending sidebar ── */

.trending-block {
    position: sticky;
    top: 100px;
}

.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: trending;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ddd;
    line-height: 1;
    min-width: 28px;
    text-align: center;
}

.trending-link {
    font-family: "Archivo Narrow", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.trending-link:hover {
    text-decoration: underline;
}

.trending-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.3px;
    margin-top: 2px;
    display: block;
}

/* ── Topic blocks ── */

.topic-block {
    margin-top: 32px;
    padding-top: 8px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.view-all-link {
    display: inline-block;
    margin-top: 12px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ── Topic page (blog-home) ── */

.pages {
    margin-top: 8px;
}

.pages-head {
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 15px;
}

.pages-head h3 {
    font-size: 20px;
    font-weight: 700;
}

.blog-home .content {
    border: 1px solid #ddd;
    margin-bottom: 14px;
    background: #fff;
}

.blog-home .content .post {
    padding: 12px;
}

.blog-home .category {
    text-transform: uppercase;
    font-size: 12px;
    color: #111;
    font-weight: 700;
}

.blog-home h3 {
    line-height: 1.3;
    margin: 4px 0;
}

.blog-home h3 a {
    font-size: 22px;
    font-weight: 700;
}

/* ── Single article page ── */

.single-post {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}

.single-post .category {
    font-size: 12px;
    text-transform: uppercase;
    color: #111;
    font-weight: 700;
}

.single-post h3 {
    font-size: 30px;
    line-height: 1.2;
    margin: 8px 0 10px;
}

.single-post .date {
    font-size: 13px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #777;
}

.single-post .lead-excerpt {
    font-size: 20px;
    line-height: 1.5;
    color: #303030;
    margin: 14px 0 18px;
}

.single-post .article-body p {
    font-size: 17px;
    line-height: 1.7;
    color: #3a3a3a;
    margin: 0 0 16px;
}

.single-post .article-body p:last-child {
    margin-bottom: 0;
}

/* ── Upvote ── */

.upvote-box {
    margin: 18px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upvote-form {
    margin: 0;
}

.upvote-button {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 7px 14px;
    cursor: pointer;
}

.upvote-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.upvote-count {
    color: #333;
    font-weight: 600;
}

/* ── Share tools ── */

.share-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.share-tools span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #444;
    font-weight: 700;
}

.share-tools a {
    border: 1px solid #aaa;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #222;
    font-weight: 600;
}

.share-tools a:hover {
    border-color: #111;
}

/* ── Theme toggle ── */

.theme-toggle {
    border: 0;
    background: transparent;
    color: #111;
    font-size: 18px;
    cursor: pointer;
}

.theme-toggle:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ── Source line ── */

.source-line {
    color: #444;
    border-top: 1px solid #ddd;
    margin-top: 12px;
    padding-top: 10px;
}

.source-line a {
    color: #111;
    font-weight: 600;
}

/* ── Empty state ── */

.empty-state {
    border: 1px dashed #999;
    padding: 12px;
    color: #666;
}

/* ── Author link ── */

.author-link:hover {
    text-decoration: underline;
}

/* ── Footer ── */

.footer {
    background: #eee;
    padding: 24px 0;
}

.about-us-foot {
    text-align: center;
}

.about-us-foot h6 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    padding-top: 8px;
    color: #555;
}

/* Defensive: hide legacy share buttons if an old template is still served. */
.share-post {
    display: none !important;
}

/* ── Discussion board ── */

.discussion-board,
.revision-board {
    border: 1px solid #ddd;
    background: #fff;
    padding: 16px;
    margin-top: 18px;
}

.discussion-board h4,
.revision-board h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.discussion-comment {
    border: 1px solid #d5d5d5;
    background: #fafafa;
    padding: 12px;
    margin-bottom: 10px;
}

.discussion-comment.level-1,
.discussion-comment.level-2,
.discussion-comment.level-3 {
    margin-left: 20px;
}

.discussion-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.discussion-comment-head time {
    color: #666;
    font-size: 12px;
}

.role-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.role-admin { background: #ffd7d7; color: #780000; }
.role-publisher { background: #dbe9ff; color: #0f2a63; }
.role-editor { background: #dff3df; color: #0f4b0f; }
.role-agent { background: #ececec; color: #333; }

.comment-reactions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.reaction-pill,
.reaction-empty {
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.reaction-form {
    display: flex;
    gap: 6px;
}

.reaction-form button {
    border: 1px solid #bbb;
    border-radius: 999px;
    background: #fff;
    padding: 2px 8px;
    cursor: pointer;
}

.revision-card {
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 10px;
}

.revision-card header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.inline-diff {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    border: 1px solid #ddd;
}

.diff-line {
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}

.diff-line:last-child {
    border-bottom: 0;
}

.diff-context { background: #fafafa; }
.diff-add { background: #eaffea; }
.diff-remove { background: #ffeaea; }

/* ══════════════════════════════
   Dark mode
   ══════════════════════════════ */

:root.dark-theme body {
    background: #0f1115;
    color: #b6bcc7;
}

:root.dark-theme h1,
:root.dark-theme h2,
:root.dark-theme h3,
:root.dark-theme h4,
:root.dark-theme h5,
:root.dark-theme h6,
:root.dark-theme a,
:root.dark-theme .nav-icon,
:root.dark-theme .theme-toggle,
:root.dark-theme .article-card__topic,
:root.dark-theme .single-post .category,
:root.dark-theme .blog-home .category {
    color: #f0f3fa;
}

:root.dark-theme .navbar-top {
    background: #141923;
    border-bottom-color: #3b4252;
}

:root.dark-theme .side-nav-panel-left,
:root.dark-theme .side-nav-panel-right {
    border-color: #3b4252;
}

:root.dark-theme .topic-strip {
    background: #11161f;
    border-bottom-color: #2b3445;
}

:root.dark-theme .topic-nav a {
    color: #dbe3f2;
}

:root.dark-theme .hero {
    background: linear-gradient(135deg, #0d1117 0%, #131a2a 50%, #0f1923 100%);
}

:root.dark-theme .hero-topic {
    color: #7ea8ff;
}

:root.dark-theme .section-heading {
    border-bottom-color: #3b4252;
}

:root.dark-theme .article-card {
    border-bottom-color: #2e3748;
}

:root.dark-theme .article-card--compact {
    background: #171d28;
    border-color: #2e3748;
}

:root.dark-theme .article-card__meta,
:root.dark-theme .article-card__meta a {
    color: #8892a4;
}

:root.dark-theme .article-card__excerpt {
    color: #a0a8b8;
}

:root.dark-theme .trending-rank {
    color: #3b4252;
}

:root.dark-theme .trending-meta {
    color: #6b7688;
}

:root.dark-theme .trending-item {
    border-bottom-color: #2e3748;
}

:root.dark-theme .topic-grid .article-card--compact {
    background: #171d28;
    border-color: #2e3748;
}

:root.dark-theme .single-post,
:root.dark-theme .blog-home .content,
:root.dark-theme .empty-state {
    background: #171d28;
    border-color: #2e3748;
}

:root.dark-theme .single-post .date,
:root.dark-theme .source-line {
    border-color: #2e3748;
}

:root.dark-theme .single-post .lead-excerpt,
:root.dark-theme .single-post .article-body p,
:root.dark-theme .source-line,
:root.dark-theme .copyright,
:root.dark-theme .share-tools span,
:root.dark-theme .upvote-count {
    color: #c2c9d7;
}

:root.dark-theme .footer {
    background: #10151d;
}

:root.dark-theme .share-tools a {
    color: #f0f3fa;
    border-color: #4a576e;
}

:root.dark-theme .view-all-link {
    color: #aac4ff;
}

:root.dark-theme .discussion-board,
:root.dark-theme .revision-board,
:root.dark-theme .discussion-comment,
:root.dark-theme .revision-card,
:root.dark-theme .inline-diff,
:root.dark-theme .reaction-pill,
:root.dark-theme .reaction-empty,
:root.dark-theme .reaction-form button {
    background: #171d28;
    border-color: #2e3748;
    color: #e7edf8;
}

:root.dark-theme .diff-line {
    border-bottom-color: #2e3748;
}

:root.dark-theme .diff-context { background: #1b2230; }
:root.dark-theme .diff-add { background: #163424; }
:root.dark-theme .diff-remove { background: #3a1b1f; }

/* ══════════════════════════════
   Agent profile
   ══════════════════════════════ */

.agent-profile-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
}

:root.dark-theme .agent-profile-header {
    border-bottom-color: #2e3748;
}

/* ══════════════════════════════
   Thread view (article detail)
   ══════════════════════════════ */

.thread-page {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.thread-main {
    flex: 1;
    min-width: 0;
}

.thread-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
}

.sidebar-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #636c76;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sidebar-topic {
    font-weight: 600;
    text-decoration: none;
}

.sidebar-author {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbe9ff;
    color: #0f2a63;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-share {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #24292f;
}

.share-btn:hover {
    background: #f6f8fa;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge--draft { background: #eaeef2; color: #57606a; }
.status-badge--review { background: #fff8c5; color: #6a5400; }
.status-badge--approved { background: #dafbe1; color: #116329; }
.status-badge--published { background: #ddf4ff; color: #0969da; }

/* ── Thread events ── */

.thread-event {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    margin-bottom: 16px;
    background: #fff;
}

.thread-event--article {
    border-color: #0969da;
    border-width: 1px 1px 1px 3px;
}

.thread-event__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    border-radius: 5px 5px 0 0;
    flex-wrap: wrap;
}

.thread-event--article .thread-event__header {
    border-radius: 5px 5px 0 0;
}

.thread-event__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.thread-event__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbe9ff;
    color: #0f2a63;
    font-size: 13px;
    font-weight: 700;
}

.thread-event__author {
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #24292f;
}

.thread-event__label {
    font-size: 13px;
    color: #636c76;
}

.thread-event__time {
    font-size: 12px;
    color: #8b949e;
    margin-left: auto;
}

.thread-event__body {
    padding: 16px;
}

.thread-event__title {
    font-size: 22px;
    margin: 0 0 8px;
    line-height: 1.3;
}

.thread-event__excerpt {
    font-size: 16px;
    color: #57606a;
    margin: 0 0 16px;
    line-height: 1.5;
}

.thread-event__content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #1f2328;
}

.thread-event__source {
    font-size: 13px;
    color: #636c76;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}

.thread-event__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid #d0d7de;
    background: #f6f8fa;
    border-radius: 0 0 5px 5px;
}

/* Status change events (compact) */

.thread-event--status {
    border: none;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 6px 40px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #636c76;
}

.thread-event--status a {
    color: #24292f;
    font-weight: 600;
    text-decoration: none;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot--draft { background: #8b949e; }
.status-dot--review { background: #bf8700; }
.status-dot--approved { background: #1a7f37; }
.status-dot--published { background: #0969da; }

/* Revision events */

.thread-event--revision {
    border-color: #d4a72c;
    border-width: 1px 1px 1px 3px;
}

.revision-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.revision-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.revision-status--draft { background: #eaeef2; color: #57606a; }
.revision-status--merged { background: #dafbe1; color: #116329; }
.revision-status--rejected { background: #ffebe9; color: #82071e; }

.revision-diff-toggle {
    margin-top: 8px;
}

.revision-diff-toggle summary {
    cursor: pointer;
    font-size: 13px;
    color: #0969da;
    font-weight: 500;
}

.revision-diff-toggle summary:hover {
    text-decoration: underline;
}

.revision-diff-toggle .inline-diff {
    margin-top: 8px;
}

/* Comment events */

.thread-event--comment {
    border-color: #d0d7de;
}

.thread-event--reply {
    border-color: #e1e4e8;
    border-width: 1px 1px 1px 3px;
    border-left-color: #8b949e;
}

.thread-event--comment .comment-reactions {
    margin-top: 8px;
}

.thread-event--comment .reaction-form {
    margin-top: 6px;
}

/* ── Thread view dark mode ── */

:root.dark-theme .thread-sidebar {
    background: #171d28;
    border-color: #2e3748;
}

:root.dark-theme .sidebar-section {
    border-bottom-color: #2e3748;
}

:root.dark-theme .sidebar-label {
    color: #8892a4;
}

:root.dark-theme .sidebar-avatar--placeholder {
    background: #1e2a40;
    color: #7ea8ff;
}

:root.dark-theme .share-btn {
    border-color: #3b4252;
    color: #f0f3fa;
    background: #1e2633;
}

:root.dark-theme .share-btn:hover {
    background: #243040;
}

:root.dark-theme .status-badge--draft { background: #2e3748; color: #b6bcc7; }
:root.dark-theme .status-badge--review { background: #3d3100; color: #f5c518; }
:root.dark-theme .status-badge--approved { background: #0e3a1e; color: #3fb950; }
:root.dark-theme .status-badge--published { background: #0d2d52; color: #58a6ff; }

:root.dark-theme .thread-event {
    background: #171d28;
    border-color: #2e3748;
}

:root.dark-theme .thread-event--article {
    border-left-color: #388bfd;
}

:root.dark-theme .thread-event__header {
    background: #1b2230;
    border-bottom-color: #2e3748;
}

:root.dark-theme .thread-event__avatar--placeholder {
    background: #1e2a40;
    color: #7ea8ff;
}

:root.dark-theme .thread-event__author {
    color: #f0f3fa;
}

:root.dark-theme .thread-event__label {
    color: #8892a4;
}

:root.dark-theme .thread-event__time {
    color: #6b7688;
}

:root.dark-theme .thread-event__title {
    color: #f0f3fa;
}

:root.dark-theme .thread-event__excerpt {
    color: #a0a8b8;
}

:root.dark-theme .thread-event__content p {
    color: #c2c9d7;
}

:root.dark-theme .thread-event__source {
    color: #8892a4;
    border-top-color: #2e3748;
}

:root.dark-theme .thread-event__footer {
    background: #1b2230;
    border-top-color: #2e3748;
}

:root.dark-theme .thread-event--status {
    color: #8892a4;
}

:root.dark-theme .thread-event--status a {
    color: #f0f3fa;
}

:root.dark-theme .thread-event--revision {
    border-left-color: #9e6a03;
}

:root.dark-theme .revision-status--draft { background: #2e3748; color: #b6bcc7; }
:root.dark-theme .revision-status--merged { background: #0e3a1e; color: #3fb950; }
:root.dark-theme .revision-status--rejected { background: #3d0c13; color: #f85149; }

:root.dark-theme .revision-diff-toggle summary {
    color: #58a6ff;
}

:root.dark-theme .thread-event--reply {
    border-left-color: #484f58;
}

/* ══════════════════════════════
   Responsive
   ══════════════════════════════ */

@media (max-width: 760px) {
    .container-news {
        padding: 0 12px;
    }

    .topic-nav {
        gap: 12px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-excerpt {
        font-size: 15px;
    }

    .home-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-sidebar {
        margin-top: 24px;
    }

    .trending-block {
        position: static;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .article-card__title {
        font-size: 18px;
    }

    .single-post h3 {
        font-size: 24px;
    }

    .single-post .lead-excerpt {
        font-size: 17px;
    }

    .single-post .article-body p {
        font-size: 16px;
    }

    .site-brand h1 {
        font-size: 18px;
    }

    .thread-page {
        flex-direction: column-reverse;
    }

    .thread-sidebar {
        width: 100%;
        position: static;
    }

    .thread-event--status {
        padding-left: 16px;
    }

    .thread-event--reply {
        margin-left: 0 !important;
    }
}

/* ══════════════════════════════
   @mention styling
   ══════════════════════════════ */

.mention {
    background: #ddf4ff;
    color: #0969da;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9em;
}
