/* WiseTopicHub Single Post Styles */

/* ——— DARK MODE ——— */
[data-theme="dark"] .comment-reply-title {
    color: #f5f5f5;
}

[data-theme="dark"] .comment-reply-title small a {
    color: #888;
}

[data-theme="dark"] .comment-reply-title small a:hover {
    color: #e85d75;
}

[data-theme="dark"] .comment-form-cookies-consent label {
    color: #888;
}

[data-theme="dark"] .form-submit .cf-submit {
    background: #f5f5f5;
    color: #0f0f0f;
}

[data-theme="dark"] .form-submit .cf-submit:hover {
    background: #e85d75;
    color: #fff;
}

[data-theme="dark"] .author-box,
[data-theme="dark"] .info-box,
[data-theme="dark"] .toc-mobile {
    background: #1a1a1a;
    border-color: #333;
}

[data-theme="dark"] .post-nav-item:hover {
    background: #252525;
    border-color: #444;
}

[data-theme="dark"] .toc-list {
    border-left-color: #333;
}

[data-theme="dark"] .toc-list a {
    color: #888;
}

[data-theme="dark"] .toc-list a:hover,
[data-theme="dark"] .toc-list a.active {
    color: #fff;
}

[data-theme="dark"] .toc-list a.active {
    border-left-color: #e85d75;
}

[data-theme="dark"] .article-content code {
    background: #252525;
    color: #e85d75;
}

[data-theme="dark"] .article-content pre {
    background: #1a1a1a;
}

[data-theme="dark"] .article-content blockquote {
    background: #1a1a1a;
    border-left-color: #e85d75;
}

[data-theme="dark"] .article-content table thead th {
    background: #1a1a1a;
    border-bottom-color: #333;
}

[data-theme="dark"] .article-content td {
    border-bottom-color: #252525;
}

[data-theme="dark"] .article-content tbody tr:hover {
    background: #1a1a1a;
}

[data-theme="dark"] .info-box.tip {
    background: #0a1a0f;
    border-color: #166534;
}

[data-theme="dark"] .info-box.warning {
    background: #1a1505;
    border-color: #92400e;
}

[data-theme="dark"] .info-box.note {
    background: #0a0f1a;
    border-color: #1e40af;
}

[data-theme="dark"] .info-box.tip .info-box-icon {
    background: #166534;
    color: #4ade80;
}

[data-theme="dark"] .info-box.warning .info-box-icon {
    background: #92400e;
    color: #fbbf24;
}

[data-theme="dark"] .info-box.note .info-box-icon {
    background: #1e40af;
    color: #60a5fa;
}

[data-theme="dark"] .reading-progress {
    background: #e85d75;
}

[data-theme="dark"] .share-btn,
[data-theme="dark"] .s-btn,
[data-theme="dark"] .author-social a {
    border-color: #333;
    color: #b0b0b0;
}

[data-theme="dark"] .share-btn:hover,
[data-theme="dark"] .s-btn:hover,
[data-theme="dark"] .author-social a:hover {
    background: #e85d75;
    color: #fff;
    border-color: #e85d75;
}

[data-theme="dark"] .tag-link {
    background: #1a1a1a;
    border-color: #333;
    color: #b0b0b0;
}

[data-theme="dark"] .tag-link:hover {
    background: #e85d75;
    color: #fff;
    border-color: #e85d75;
}

[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form-row input {
    background: #1a1a1a;
    border-color: #333;
    color: #f5f5f5;
}

[data-theme="dark"] .comment-form textarea:focus,
[data-theme="dark"] .comment-form input[type="text"]:focus,
[data-theme="dark"] .comment-form input[type="email"]:focus,
[data-theme="dark"] .comment-form-row input:focus {
    background: #252525;
    border-color: #e85d75;
}

/* ——— READING PROGRESS ——— */
.reading-progress {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 99;
    transition: width 0.1s linear;
}

/* ——— BREADCRUMB ——— */
.breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.breadcrumb-inner a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumb-inner a:hover { color: var(--black); }

.breadcrumb-inner .sep { font-size: 0.6rem; }

.breadcrumb-inner .current { color: var(--gray-700); }

/* ——— ARTICLE HEADER ——— */
.article-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 0 40px;
    text-align: center;
}

.article-header .cat-tag {
    display: inline-block;
    padding: 5px 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    margin-bottom: 24px;
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--black);
}

.article-header .subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e85d75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-text .author-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.author-text .author-title {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.meta-divider {
    width: 1px;
    height: 28px;
    background: var(--gray-200);
}

.meta-items {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.meta-items span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-items i { font-size: 0.72rem; opacity: 0.6; }

/* ——— FEATURED IMAGE ——— */
.featured-image {
    max-width: 960px;
    margin: 0 auto 56px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/8;
    background: var(--gray-100);
}

.featured-image img,
.featured-image .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    max-width: 960px;
    margin: -44px auto 56px;
    padding: 0 16px;
}

.image-caption p {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-style: italic;
    text-align: center;
    margin-top: 12px;
}

/* ——— ARTICLE LAYOUT ——— */
.article-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 720px) 200px;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ——— SHARE SIDEBAR ——— */
.share-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.share-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 0.88rem;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.share-btn.liked:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.share-count {
    font-size: 0.68rem;
    color: var(--gray-400);
    text-align: center;
    width: 40px;
}

/* ——— TOC SIDEBAR ——— */
.toc-sidebar {
    position: sticky;
    top: 100px;
    padding-top: 8px;
}

.toc-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    border-left: 1px solid var(--gray-200);
}

.toc-list li { margin-bottom: 2px; }

.toc-list a {
    display: block;
    padding: 6px 0 6px 16px;
    font-size: 0.76rem;
    color: var(--gray-500);
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--black);
}

.toc-list a.active {
    color: var(--black);
    font-weight: 600;
    border-left-color: var(--accent);
}

/* ——— ARTICLE CONTENT ——— */
.article-content {
    min-width: 0;
}

.article-content > * + * {
    margin-top: 1.6em;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-900);
}

.article-content h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 2.8em;
    margin-bottom: 0.4em;
    letter-spacing: -0.015em;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 2em;
    margin-bottom: 0.3em;
    line-height: 1.35;
    scroll-margin-top: 100px;
}

.article-content a {
    color: var(--accent);
    text-decoration-color: rgba(200, 16, 46, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.article-content a:hover {
    text-decoration-color: var(--accent);
}

.article-content strong {
    font-weight: 600;
    color: var(--black);
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-900);
}

.article-content li {
    margin-bottom: 8px;
}

.article-content li::marker {
    color: var(--accent);
}

/* Blockquote */
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 28px;
    background: var(--gray-50);
    border-radius: 0 8px 8px 0;
    margin: 2em 0;
}

.article-content blockquote p {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

.article-content blockquote cite {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 10px;
}

/* Code */
.article-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent);
}

.article-content pre {
    background: var(--black);
    color: #e2e8f0;
    padding: 28px 32px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2em 0;
    position: relative;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.7;
}

.code-label {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Info box */
.info-box {
    padding: 24px 28px;
    border-radius: 10px;
    margin: 2em 0;
    display: flex;
    gap: 16px;
}

.info-box.tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.info-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.info-box.note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.info-box-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

.info-box.tip .info-box-icon { background: #dcfce7; color: #16a34a; }
.info-box.warning .info-box-icon { background: #fef3c7; color: #d97706; }
.info-box.note .info-box-icon { background: #dbeafe; color: #2563eb; }

.info-box-content p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.info-box-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* Image in content */
.content-image {
    margin: 2.4em 0;
    border-radius: 8px;
    overflow: hidden;
}

.content-image img,
.content-image .ph {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.content-image figcaption {
    font-size: 0.78rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.9rem;
}

.article-content thead th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.article-content tbody tr:hover {
    background: var(--gray-50);
}

/* ——— TAGS ——— */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 40px;
    margin-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.tags-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 4px;
}

.tag-link {
    padding: 5px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ——— SHARE BAR BOTTOM ——— */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.share-bar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
}

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

.s-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
}

.s-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.s-btn.copy-btn:hover { background: var(--green); border-color: var(--green); }

/* ——— AUTHOR BOX ——— */
.author-box {
    display: flex;
    gap: 24px;
    padding: 36px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-top: 48px;
}

.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e85d75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-box-info .author-role {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.author-box-info .author-bio {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 14px;
}

.author-social {
    display: flex;
    gap: 8px;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-400);
    font-size: 0.78rem;
    transition: all 0.2s;
}

.author-social a:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* ——— POST NAV ——— */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

.post-nav-item {
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.post-nav-item:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.post-nav-item .pn-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-item .pn-label i { font-size: 0.6rem; }

.post-nav-item h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
}

.post-nav-item.next { text-align: right; }
.post-nav-item.next .pn-label { justify-content: flex-end; }

/* ——— RELATED POSTS ——— */
.related-section {
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 64px;
}

.related-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 36px;
}

.related-head h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
}

.related-head .r-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.r-card { display: flex; flex-direction: column; }

.r-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gray-100);
    margin-bottom: 18px;
}

.r-card-img img,
.r-card-img .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.r-card:hover .r-card-img img,
.r-card:hover .r-card-img .ph {
    transform: scale(1.05);
}

.r-card .r-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.r-card h3 {
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.r-card h3 a { text-decoration: none; color: var(--dark); }
.r-card h3 a:hover { color: var(--accent); }

.r-card .r-meta {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: auto;
}

/* ——— COMMENTS ——— */
.comments-section {
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.comments-head h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.comments-count {
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* Comment Form */
.comment-form {
    margin-bottom: 48px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    outline: none;
    background: var(--gray-50);
    transition: border 0.2s, background 0.2s;
    line-height: 1.6;
}

.comment-form textarea:focus {
    border-color: var(--black);
    background: var(--white);
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    background: var(--gray-50);
    transition: border 0.2s, background 0.2s;
    margin-top: 12px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    border-color: var(--black);
    background: var(--white);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.comment-form-row input {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    background: var(--gray-50);
    transition: border 0.2s, background 0.2s;
}

.comment-form-row input:focus {
    border-color: var(--black);
    background: var(--white);
}

.comment-form .cf-submit {
    margin-top: 12px;
    padding: 12px 28px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.comment-form .cf-submit:hover { background: var(--accent); }

/* Comment Reply Title */
.comment-reply-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--black);
}

.comment-reply-title small {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 500;
    margin-left: 12px;
}

.comment-reply-title small a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.comment-reply-title small a:hover {
    color: var(--accent);
}

/* Comment Form Cookies Consent */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
    cursor: pointer;
}

/* Form Submit */
.form-submit {
    margin-top: 16px;
}

.form-submit .cf-submit {
    padding: 13px 32px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.form-submit .cf-submit:hover {
    background: var(--accent);
}

.form-submit .cf-submit:active {
    transform: scale(0.98);
}

/* Comment list */
.comment-list { list-style: none; }

.comment-item {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 0.88rem;
    font-weight: 600;
}

.comment-date {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-700);
}

.comment-reply {
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gray-400);
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.comment-reply:hover { color: var(--accent); }

/* ——— TOC MOBILE ——— */
.toc-mobile {
    display: none;
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 24px 28px;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.toc-mobile-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toc-mobile-title i { font-size: 0.7rem; color: var(--gray-400); transition: transform 0.2s; }
.toc-mobile-title.open i { transform: rotate(180deg); }

.toc-mobile-list {
    list-style: none;
    border-left: 2px solid var(--gray-200);
    padding-left: 16px;
}

.toc-mobile-list li { margin-bottom: 6px; }

.toc-mobile-list a {
    font-size: 0.82rem;
    color: var(--gray-500);
    transition: color 0.2s;
}

.toc-mobile-list a:hover { color: var(--black); }

/* ——— SINGLE POST RESPONSIVE ——— */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 720px);
        padding: 0 28px;
    }

    .share-sidebar,
    .toc-sidebar {
        display: none;
    }

    .related-grid { grid-template-columns: repeat(2, 1fr); }
    
    .toc-mobile { display: block; }
}

@media (max-width: 768px) {
    .article-header { padding: 36px 0 28px; }
    .article-header h1 { font-size: 1.9rem; }
    .article-header .subtitle { font-size: 1rem; }

    .article-meta { flex-direction: column; gap: 12px; }
    .meta-divider { display: none; }

    .featured-image { border-radius: 0; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); max-width: none; }

    .article-layout { padding: 0 20px; }

    .article-content h2 { font-size: 1.4rem; }
    .article-content h3 { font-size: 1.15rem; }

    .author-box { flex-direction: column; text-align: center; align-items: center; }
    .author-social { justify-content: center; }

    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.next { text-align: left; }
    .post-nav-item.next .pn-label { justify-content: flex-start; }

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

    .comment-form-row { grid-template-columns: 1fr; }

    .share-bar { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .article-header h1 { font-size: 1.6rem; }
}

