﻿/* tp-riven post page */

.site-search-mobile-btn {
    display: none;
}

.post-title {
    font-size: 30px;
    padding-bottom: 15px;
}

.post-title-block {
    position: relative;
    margin: 14px 0 22px;
    padding: 4px 0 18px;
    border: 0;
    border-bottom: 1px solid var(--line-primary);
    text-align: center;
}

.post-title-block h1 {
    max-width: 760px;
    margin: 0 auto 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    width: 100%;
    padding: 2px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 24px;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-meta-item:not(:first-child)::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ink-decor);
}

.post-date-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent-brown);
    border-radius: 4px;
    opacity: .9;
}

.post-date-icon::before,
.post-date-icon::after {
    content: "";
    position: absolute;
    top: -3.5px;
    width: 2px;
    height: 5px;
    border-radius: 2px;
    background: var(--accent-brown);
}

.post-date-icon::before {
    left: 3px;
}

.post-date-icon::after {
    right: 3px;
}

.post-date-icon+time {
    color: var(--text-secondary);
    font-size: 13px;
}

.post-edit-link {
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin-left: 0;
    padding: 0 8px;
    border: 1px solid var(--control-border);
    border-radius: 999px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    font-size: 12px;
}

.tp-post-article {
    color: var(--text-body);
    font-family: var(--font-main);
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.92;
}

.tp-post-article .post_content {
    width: 100%;
    max-width: none;
    margin: 8px 0 24px;
    padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 36px) clamp(22px, 3.4vw, 32px);
    border: 1px solid var(--line-secondary);
    border-radius: clamp(12px, 1.8vw, 16px);
    background: var(--bg-card);
    box-shadow: 0 16px 42px rgba(62, 57, 52, 0.035);
    backdrop-filter: blur(1.2px);
    -webkit-backdrop-filter: blur(1.2px);
    color: var(--text-body);
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.tp-post-article .post_content *,
.tp-post-article .post_content *::before,
.tp-post-article .post_content *::after {
    box-sizing: border-box;
}

.tp-post-article .post_content p {
    margin: 0 0 18px;
    color: var(--text-body);
    font-size: inherit;
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0.01em;
    text-align: justify;
    word-break: normal;
}

body.tp-paragraph-indent .tp-post-article .post_content p {
    text-indent: 2em;
}

.tp-post-article .post_content> :first-child {
    margin-top: 0;
}

.tp-post-article .post_content> :last-child {
    margin-bottom: 0;
}

.tp-post-article .post_content h1,
.tp-post-article .post_content h2,
.tp-post-article .post_content h3,
.tp-post-article .post_content h4,
.tp-post-article .post_content h5,
.tp-post-article .post_content h6 {
    clear: both;
    margin: 34px 0 14px;
    padding: 0;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.tp-post-article .post_content h1 {
    position: relative;
    margin-top: 38px;
    padding-left: 18px;
    font-size: clamp(24px, 3vw, 28px);
}

.tp-post-article .post_content h1::before,
.tp-post-article .post_content h2::before,
.tp-post-article .post_content h3::before {
    content: "";
    position: relative;
    display: inline-block;
    width: 4px;
    height: 1.08em;
    margin: 0 12px 0 -18px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--ink-decor), var(--accent-brown));
    vertical-align: -0.18em;
}

.tp-post-article .post_content h2 {
    position: relative;
    padding-left: 18px;
    font-size: clamp(21px, 2.6vw, 23px);
}

.tp-post-article .post_content h3 {
    padding-left: 18px;
    font-size: clamp(18px, 2.3vw, 20px);
}

.tp-post-article .post_content h4 {
    font-size: 18px;
}

.tp-post-article .post_content h5 {
    font-size: 16px;
}

.tp-post-article .post_content h6 {
    color: var(--text-secondary);
    font-size: 15px;
}

.tp-post-article .post_content a {
    padding: 0 2px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-brown) 38%, transparent);
    color: var(--accent-brown);
    text-decoration: none;
    transition: all .22s ease;
}

.tp-post-article .post_content strong,
.tp-post-article .post_content b {
    color: var(--text-primary);
    font-weight: 700;
}

.tp-post-article .post_content em,
.tp-post-article .post_content i {
    color: var(--text-body);
    font-style: italic;
}

.tp-post-article .post_content del,
.tp-post-article .post_content s {
    color: var(--text-muted);
    text-decoration-color: rgba(110, 79, 47, 0.45);
    text-decoration-thickness: 1px;
}

.tp-post-article .post_content mark {
    padding: 0 5px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--ink-decor) 24%, transparent);
    color: var(--text-primary);
}

.tp-post-article .post_content abbr[title] {
    border-bottom: 1px dotted var(--accent-brown);
    cursor: help;
    text-decoration: none;
}

.tp-post-article .post_content blockquote {
    margin: 22px 0;
    padding: 15px 18px 15px 22px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 42%, var(--line-primary));
    border-left: 5px solid var(--accent-brown);
    border-radius: 12px 8px 8px 12px;
    background: color-mix(in srgb, var(--accent-gold) 10%, var(--bg-card));
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.42), 0 8px 20px rgba(62, 57, 52, 0.045);
    color: var(--text-body);
    line-height: 1.9;
}

.tp-post-article .post_content blockquote p {
    margin: 0 0 10px;
}

.tp-post-article .post_content blockquote p:last-child {
    margin-bottom: 0;
}

.tp-post-article .post_content ul,
.tp-post-article .post_content ol {
    display: block;
    margin: 16px 0 20px;
    padding: 0 0 0 1.55em;
}

.tp-post-article .post_content ul {
    list-style: none;
}

.tp-post-article .post_content ol {
    counter-reset: tp-post-ol;
    list-style: none;
    padding-left: 1.85em;
}

.tp-post-article .post_content li {
    display: list-item;
    position: relative;
    margin: 7px 0;
    padding: 0 0 0 0.35em;
    color: var(--text-body);
    line-height: 1.86;
    letter-spacing: 0.01em;
    text-align: left;
    word-break: normal;
}

.tp-post-article .post_content ul>li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: -1.04em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-brown);
    border-radius: 50%;
    background: var(--bg-card);
}

.tp-post-article .post_content ol>li {
    counter-increment: tp-post-ol;
}

.tp-post-article .post_content ol>li::before {
    content: counter(tp-post-ol);
    position: absolute;
    top: 0.3em;
    left: -1.95em;
    box-sizing: border-box;
    width: 1.58em;
    min-width: 21px;
    height: 1.58em;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 36%, transparent);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
    box-shadow: 0 2px 5px rgba(92, 70, 48, .06), inset 0 0 0 1px rgba(255, 255, 255, .48);
    color: var(--accent-brown);
    font-size: 12px;
    font-weight: 700;
    line-height: calc(1.58em - 2px);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tp-post-article .post_content li>ul,
.tp-post-article .post_content li>ol {
    margin: 6px 0 8px;
}

.tp-post-article .post_content input[type="checkbox"] {
    flex: 0 0 auto;
    position: relative;
    width: 16px;
    height: 16px;
    margin: 0 9px 0 0;
    border: 1px solid var(--line-secondary);
    border-radius: 4px;
    background: var(--bg-soft);
    appearance: none;
    -webkit-appearance: none;
    vertical-align: -2px;
}

.tp-post-article .post_content input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #4F88B7;
    border-bottom: 2px solid #4F88B7;
    transform: rotate(42deg);
}

.tp-post-article .post_content input[type="checkbox"]:checked {
    border-color: var(--accent-brown);
    background: var(--bg-soft);
}

.tp-post-article .post_content input[type="checkbox"]:checked::after {
    border-color: #6B975C;
}

.tp-post-article .post_content .contains-task-list,
.tp-post-article .post_content ul:has(.task-list-item) {
    padding-left: 0;
}

.tp-post-article .post_content .task-list-item,
.tp-post-article .post_content li:has(> input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-left: 0;
    list-style: none;
}

.tp-post-article .post_content li:has(input[type="checkbox"])::before {
    display: none;
}

.tp-post-article .post_content .task-list-item-checkbox[disabled],
.tp-post-article .post_content input[type="checkbox"][disabled] {
    cursor: default;
    opacity: 1;
}

.tp-post-article .post_content hr {
    height: 1px;
    margin: 30px 0;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-brown) 35%, transparent), transparent);
}

.tp-post-article .post_content code:not([class]),
.tp-post-article .post_content p code,
.tp-post-article .post_content li code,
.tp-post-article .post_content td code {
    margin: 0 2px;
    padding: 2px 6px;
    border: 1px solid var(--line-secondary);
    border-radius: 5px;
    background: var(--bg-soft);
    color: #7A4B3A;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: baseline;
}

.tp-post-article .post_content div.code-toolbar {
    position: relative;
    margin: 24px 0;
    padding-top: 36px;
    border: 1px solid var(--text-secondary);
    border-radius: 10px;
    background: var(--bg-soft);
    box-shadow: 0 8px 24px rgba(62, 57, 52, 0.05);
    overflow: hidden;
}

.tp-post-article .post_content div.code-toolbar::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DD5F58;
    box-shadow: 18px 0 #D9A94E, 36px 0 #6E9B73;
}

.tp-post-article .post_content div.code-toolbar>.toolbar {
    position: absolute;
    inset: 7px 10px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 22px;
    padding: 0;
    text-align: center;
    opacity: 1;
    pointer-events: none;
}

.tp-post-article .post_content div.code-toolbar>.toolbar .toolbar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    color: #80756C;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    pointer-events: auto;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button {
    position: absolute;
    top: 1px;
    right: 0;
    height: 20px;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 28%, transparent);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button span {
    display: inline;
    color: inherit;
    font: inherit;
}

.tp-post-article .post_content div.code-toolbar>.toolbar button:hover {
    border-color: color-mix(in srgb, var(--accent-brown) 48%, transparent);
    color: var(--accent-brown);
}

.tp-post-article .post_content pre,
.tp-post-article .post_content pre[class*="language-"] {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 10px;
    background: rgba(59, 53, 48, 0.94);
    box-shadow: 0 8px 24px rgba(80, 64, 48, 0.06);
    color: #F8F4ED;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.78;
    letter-spacing: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tp-post-article .post_content div.code-toolbar>pre,
.tp-post-article .post_content div.code-toolbar>pre[class*="language-"] {
    margin: 0 10px 10px;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--text-secondary) 36%, transparent);
    border-radius: 0 0 7px 7px;
    box-shadow: none;
}

.tp-post-article .post_content pre[class*="language-"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 244, 237, 0.38) rgba(255, 255, 255, 0.06);
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.tp-post-article .post_content pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: rgba(248, 244, 237, 0.38);
    border-radius: 999px;
}

.tp-post-article .post_content pre code,
.tp-post-article .post_content pre[class*="language-"] code {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.tp-post-article .post_content pre[class*="language-"].line-numbers {
    padding-left: 3.8em;
    max-height: 32rem;
}

.tp-post-article .post_content .line-numbers .line-numbers-rows {
    top: 16px;
    left: -3.8em;
    border-right: 1px solid color-mix(in srgb, var(--bg-soft) 16%, transparent);
    background: transparent;
}

.tp-post-article .post_content .line-numbers-rows>span::before {
    color: color-mix(in srgb, var(--bg-soft) 45%, transparent);
}

.tp-post-article .post_content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    overflow: hidden;
}

.tp-post-article .post_content iframe,
.tp-post-article .post_content video,
.tp-post-article .post_content embed,
.tp-post-article .post_content object {
    max-width: 100%;
}

.tp-post-article .post_content thead {
    background: var(--bg-soft);
    color: #3D3128;
}

.tp-post-article .post_content th,
.tp-post-article .post_content td {
    padding: 11px 14px;
    border-right: 1px solid var(--line-secondary);
    border-bottom: 1px solid var(--line-secondary);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.68;
    text-align: left;
    vertical-align: top;
}

.tp-post-article .post_content th {
    color: #3B3028;
    font-weight: 600;
}

.tp-post-article .post_content th[align="center"],
.tp-post-article .post_content td[align="center"],
.tp-post-article .post_content th[style*="text-align:center"],
.tp-post-article .post_content td[style*="text-align:center"],
.tp-post-article .post_content th[style*="text-align: center"],
.tp-post-article .post_content td[style*="text-align: center"] {
    text-align: center !important;
}

.tp-post-article .post_content th[align="right"],
.tp-post-article .post_content td[align="right"],
.tp-post-article .post_content th[style*="text-align:right"],
.tp-post-article .post_content td[style*="text-align:right"],
.tp-post-article .post_content th[style*="text-align: right"],
.tp-post-article .post_content td[style*="text-align: right"] {
    text-align: right !important;
}

.tp-post-article .post_content tr> :last-child {
    border-right: 0;
}

.tp-post-article .post_content tbody tr:last-child>td {
    border-bottom: 0;
}

.tp-post-article .post_content tbody tr:nth-child(even) {
    background: var(--bg-card);
}

.tp-post-article .post_content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 8px;
}

.tp-post-article .post_content p:has(> img:only-child) {
    margin: 12px 0;
}

.tp-post-article .post_content figure {
    margin: 14px 0;
}

.tp-post-article .post_content figcaption {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.tp-post-article .post_content kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 1px 6px;
    border: 1px solid #D8C9B5;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #FCFAF6;
    color: #5B5148;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.5;
    text-align: center;
}

.tp-post-article .post_content sup {
    margin: 0 2px;
    color: var(--accent-brown);
    font-size: 0.75em;
}

.tp-post-article .post_content .footnotes,
.tp-post-article .post_content .footnotes-list {
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid var(--line-primary);
    color: var(--text-secondary);
    font-size: 14px;
}

.tp-post-article .post_content .footnotes ol {
    margin: 0;
}

.tp-post-article .post_content .footnotes>hr {
    display: none;
}

.tp-post-article .post_content details {
    margin: 20px 0;
    padding: 13px 15px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
}

.tp-post-article .post_content summary {
    cursor: pointer;
    color: var(--accent-brown);
    font-weight: 500;
}

.tp-post-article .post_content .mx-hide-notice,
.tp-post-article .post_content .mx-hide-content,
.tp-post-article .post_content .card:not(cat_article_video) {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    box-shadow: none;
    color: var(--text-body);
    text-align: left;
    text-indent: 0;
}

.tp-post-article .post_content .mx-hide-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.tp-post-article .post_content .mx-hide-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #6C543B;
}

.tp-post-article .post_content .cat_container {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.tp-post-article .post_content .cat_container.grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-post-article .post_content .cat_container.grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-post-article .post_content .mx-photo-row {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 12px 0;
    padding: 0;
}

.tp-post-article .post_content .mx-photo-item {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 0;
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 6px 16px rgba(62, 57, 52, 0.035);
    overflow: hidden;
    transition: all .22s ease;
}

.tp-post-article .post_content .mx-photo-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.tp-post-article .post_content .mx-photo-row+.mx-photo-row {
    margin-top: -4px;
}

.tp-post-article .post_content .cat_collapse {
    margin: 20px 0;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 26%, var(--line-secondary));
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.tp-post-article .post_content .collapse-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-brown) 18%, var(--line-secondary));
    background: color-mix(in srgb, var(--accent-gold) 10%, var(--bg-card));
    color: var(--accent-brown);
    font: 600 15px/22px var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease;
}

.tp-post-article .post_content .collapse-btn:after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20color%3D%22%23000000%22%3E%0A%20%20%3Cpath%20d%3D%22M6%2013L12%2019L18%2013%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%20%20%3Cpath%20d%3D%22M6%205L12%2011L18%205%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease;
}

.tp-post-article .post_content .collapse-btn:not(.collapsed):after {
    transform: rotate(-180deg);
}

.tp-post-article .post_content .collapse {
    max-height: 0;
    padding: 0 16px;
    background: transparent;
    opacity: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}

.tp-post-article .post_content .collapse.show,
.tp-post-article .post_content .cat_collapse.open .collapse {
    max-height: 1200px;
    padding: 14px 16px;
    opacity: 1;
}

.tp-post-article .post_content cat_music,
.tp-post-article .post_content cat_article_video,
.tp-post-article .post_content .item_image {
    display: block;
    cursor: pointer;
}

.tp-post-article .post_content>.item_image {
    margin: 12px auto;
}

.tp-post-article .post_content .item_image img,
.tp-post-article .post_content .cat_container img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    cursor: pointer;
    transition: filter .22s ease, transform .22s ease;
}

.tp-post-article .post_content .item_image:hover img {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.tp-post-article .post_content cat_music span {
    display: block;
    margin-bottom: 10px;
    color: #5B4634;
    font-size: 14px;
}

.tp-post-article .post_content cat_article_video iframe,
.tp-post-article .post_content cat_article_video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: rgba(47, 42, 38, 0.12);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.article-tags br {
    display: none;
}

.article-tags a {
    margin: 0;
    padding: 4px 12px;
    border: 1px solid var(--control-border);
    border-radius: 999px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    font-size: 13px;
    line-height: 20px;
}

.article-tags a:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

.post-near {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 18px;
}

.post-near-card {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--control-border);
    border-radius: 7px;
    background: var(--control-bg);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    transition: all .22s ease;
}

.post-near-card:hover {
    border-color: var(--control-hover-border);
    background: var(--control-hover-bg);
    box-shadow: var(--control-hover-shadow);
    color: var(--control-hover-text);
}

.post-near-next {
    grid-template-columns: minmax(0, 1fr) 34px;
    text-align: right;
}

.post-near-body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.post-near-body strong {
    overflow: hidden;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-near-body small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
}

.post-near-arrow {
    position: relative;
    width: 11px;
    height: 11px;
    margin: 0 auto;
    border-left: 2px solid var(--ink-decor);
    border-bottom: 2px solid var(--ink-decor);
    transform: rotate(45deg);
}

.post-near-next .post-near-arrow {
    border: 0;
    border-right: 2px solid var(--ink-decor);
    border-top: 2px solid var(--ink-decor);
    transform: rotate(45deg);
}

.post-near-card:hover .post-near-arrow {
    border-color: var(--accent-brown);
}

.post-near-card.is-disabled {
    opacity: .58;
    cursor: not-allowed;
    border-color: var(--control-disabled-border);
    background: var(--control-disabled-bg);
    box-shadow: var(--control-disabled-shadow);
    color: var(--control-disabled-text);
}

@media (max-width: 800px) {
    .main_screen {
        width: min(100% - 24px, var(--page-width));
    }
    .tp-post-article .post_content {
        max-width: none;
        margin-top: 6px;
    }
    .post-meta {
        gap: 6px 10px;
    }
    .tp-post-article .post_content table {
        display: table;
        width: 100%;
        min-width: 100%;
        table-layout: fixed;
        white-space: normal;
        overflow: hidden;
    }
    .tp-post-article .post_content th,
    .tp-post-article .post_content td {
        min-width: 0;
        padding: 9px 10px;
        white-space: normal;
        word-break: break-word;
    }
    .tp-post-article .post_content table:has(tr> :nth-child(5)) {
        display: block;
        min-width: 0;
        table-layout: auto;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .tp-post-article .post_content table:has(tr> :nth-child(5)) th,
    .tp-post-article .post_content table:has(tr> :nth-child(5)) td {
        min-width: 120px;
        white-space: nowrap;
        word-break: normal;
    }
    .tp-post-article .post_content .cat_container.grid2,
    .tp-post-article .post_content .cat_container.grid3 {
        grid-template-columns: 1fr 1fr;
    }
    .tp-post-article .post_content .mx-photo-row {
        overflow-x: visible;
        gap: 8px;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    .tp-post-article .post_content .mx-photo-item {
        min-width: 0;
    }
    .post-near {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tp-post-article .post_content {
        overflow-x: hidden;
    }
    .tp-post-article .post_content div.code-toolbar {
        margin-left: -2px;
        margin-right: -2px;
    }
    .tp-post-article .post_content pre,
    .tp-post-article .post_content pre[class*="language-"] {
        font-size: 12px;
        line-height: 1.7;
    }
    .tp-post-article .post_content pre[class*="language-"].line-numbers {
        padding-left: 3.2em;
    }
    .tp-post-article .post_content blockquote {
        padding: 12px 14px 12px 16px;
        border-left-width: 4px;
        border-radius: 10px 7px 7px 10px;
    }
    .tp-post-article .post_content th,
    .tp-post-article .post_content td {
        padding: 8px;
    }
    .tp-post-article .post_content .cat_container.grid2,
    .tp-post-article .post_content .cat_container.grid3 {
        grid-template-columns: 1fr;
    }
    .tp-post-article .post_content .mx-photo-item {
        min-width: 0;
    }
    .tp-post-article .post_content .mx-photo-row {
        gap: 5px;
        margin: 8px 0;
    }
}
