/* 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 rgba(221, 212, 200, 0.78);
    text-align: center;
}

.post-title-block h1 {
    max-width: 760px;
    margin: 0 auto 12px;
    color: #241F1B;
    font-family: var(--font-main);
    font-size: 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: #8B8178;
    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: #B8AEA2;
}

.post-date-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1px solid #8A6D4A;
    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: #8A6D4A;
}

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

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

.post-date-icon+time {
    color: #8B8178;
    font-size: 13px;
}

.post-edit-link {
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin-left: 0;
    padding: 0 8px;
    border: 1px solid rgba(218, 209, 195, 0.85);
    border-radius: 999px;
    background: rgba(248, 244, 237, 0.62);
    color: var(--accent-red);
    font-size: 12px;
}

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

.tp-post-article .post_content {
    width: 100%;
    max-width: none;
    margin: 8px 0 24px;
    padding: 28px 36px 32px;
    border: 1px solid rgba(226, 216, 202, 0.46);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(252, 250, 246, 0.72), rgba(251, 248, 242, 0.58)),
        rgba(252, 250, 246, 0.62);
    box-shadow: 0 16px 42px rgba(80, 64, 48, 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: 16px;
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0.01em;
    text-align: justify;
    word-break: normal;
}

.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: 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, #A98255, #7B5A36);
    vertical-align: -0.18em;
}

.tp-post-article .post_content h2 {
    position: relative;
    padding-left: 18px;
    font-size: 23px;
}

.tp-post-article .post_content h3 {
    padding-left: 18px;
    font-size: 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 rgba(138, 109, 74, 0.42);
    color: #735234;
    text-decoration: none;
    transition: all .22s ease;
}

.tp-post-article .post_content a:hover {
    border-radius: 3px;
    background: rgba(183, 154, 106, 0.14);
    color: #4E3928;
}

.tp-post-article .post_content strong,
.tp-post-article .post_content b {
    color: #2B241E;
    font-weight: 700;
}

.tp-post-article .post_content em,
.tp-post-article .post_content i {
    color: #5E4A37;
    font-style: italic;
}

.tp-post-article .post_content del,
.tp-post-article .post_content s {
    color: var(--text-muted);
    text-decoration-color: rgba(138, 109, 74, 0.55);
    text-decoration-thickness: 1px;
}

.tp-post-article .post_content mark {
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(183, 154, 106, 0.24);
    color: #3B3028;
}

.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: 14px 18px 14px 20px;
    border-left: 4px solid var(--accent-brown);
    border-radius: 0 10px 10px 0;
    background: rgba(251, 248, 242, 0.68);
    color: #5B5148;
    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;
}

.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: rgba(251, 248, 242, 0.86);
}

.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.34em;
    left: -1.74em;
    width: 1.42em;
    height: 1.42em;
    border: 1px solid #D8C9B5;
    border-radius: 50%;
    background: rgba(248, 244, 237, 0.84);
    color: var(--accent-brown);
    font-size: 12px;
    line-height: 1.42em;
    text-align: center;
}

.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 rgba(84, 134, 176, 0.76);
    border-radius: 4px;
    background: rgba(248, 244, 237, 0.82);
    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: rgba(107, 151, 92, 0.82);
    background: rgba(107, 151, 92, 0.16);
}

.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, rgba(138, 109, 74, 0.35), 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 rgba(218, 209, 195, 0.9);
    border-radius: 5px;
    background: rgba(248, 244, 237, 0.88);
    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 rgba(83, 70, 58, 0.62);
    border-radius: 10px;
    background: rgba(248, 244, 237, 0.64);
    box-shadow: 0 8px 24px rgba(80, 64, 48, 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 rgba(138, 109, 74, 0.28);
    border-radius: 999px;
    background: rgba(252, 250, 246, 0.72);
    color: #8B8178;
    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: rgba(138, 109, 74, 0.48);
    color: #5B4634;
}

.tp-post-article .post_content pre,
.tp-post-article .post_content pre[class*="language-"] {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid rgba(218, 209, 195, 0.82);
    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;
    border: 0;
    border-top: 1px solid rgba(83, 70, 58, 0.36);
    border-radius: 0;
    box-shadow: none;
}

.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 rgba(248, 244, 237, 0.16);
    background: transparent;
}

.tp-post-article .post_content .line-numbers-rows>span::before {
    color: rgba(248, 244, 237, 0.45);
}

.tp-post-article .post_content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    border: 1px solid rgba(218, 209, 195, 0.9);
    border-radius: 9px;
    background: rgba(251, 248, 242, 0.62);
    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: rgba(241, 232, 220, 0.86);
    color: #3D3128;
}

.tp-post-article .post_content th,
.tp-post-article .post_content td {
    padding: 11px 14px;
    border-right: 1px solid rgba(226, 216, 202, 0.9);
    border-bottom: 1px solid rgba(226, 216, 202, 0.9);
    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: rgba(252, 250, 246, 0.42);
}

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

.tp-post-article .post_content>img,
.tp-post-article .post_content>p:has(> img:only-child) img,
.tp-post-article .post_content>.item_image,
.tp-post-article .post_content>cat_item_image {
    width: min(100%, 720px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tp-post-article .post_content figure {
    margin: 24px 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 rgba(221, 212, 200, 0.78);
    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 rgba(218, 209, 195, 0.86);
    border-radius: 9px;
    background: rgba(251, 248, 242, 0.58);
}

.tp-post-article .post_content summary {
    cursor: pointer;
    color: #5D4630;
    font-weight: 500;
}

.tp-post-article .post_content .cat_tips {
    position: relative;
    margin: 20px 0;
    padding: 13px 16px 13px 44px;
    border: 1px solid rgba(218, 209, 195, 0.88);
    border-left: 4px solid var(--accent-brown);
    border-radius: 9px;
    background: rgba(251, 248, 242, 0.66);
    color: #5B5148;
    line-height: 1.8;
}

.tp-post-article .post_content .cat_tips::before {
    position: absolute;
    left: 16px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #FBF8F2;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.tp-post-article .post_content .cat_tips_success {
    border-left-color: #7C8B5A;
}

.tp-post-article .post_content .cat_tips_success::before {
    content: "✓";
    background: #7C8B5A;
}

.tp-post-article .post_content .cat_tips_info {
    border-left-color: #8A6D4A;
}

.tp-post-article .post_content .cat_tips_info::before {
    content: "i";
    background: #8A6D4A;
}

.tp-post-article .post_content .cat_tips_warning {
    border-left-color: #B79A6A;
    background: rgba(248, 244, 237, 0.74);
}

.tp-post-article .post_content .cat_tips_warning::before {
    content: "!";
    background: #B79A6A;
}

.tp-post-article .post_content .cat_tips_error {
    border-left-color: #A64637;
}

.tp-post-article .post_content .cat_tips_error::before {
    content: "!";
    background: #A64637;
}

.tp-post-article .post_content cat_article_hide,
.tp-post-article .post_content .cat_article_show_word,
.tp-post-article .post_content .card:not(cat_article_video) {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid rgba(218, 209, 195, 0.86);
    border-radius: 9px;
    background: rgba(251, 248, 242, 0.62);
    box-shadow: none;
    color: #5B5148;
    text-align: left;
    text-indent: 0;
}

.tp-post-article .post_content cat_article_hide {
    text-align: center;
}

.tp-post-article .post_content .card>.cat_article_show_word {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.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: 14px 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 rgba(218, 209, 195, 0.82);
    border-radius: 8px;
    background: rgba(251, 248, 242, 0.46);
    box-shadow: 0 6px 16px rgba(80, 64, 48, 0.035);
    overflow: hidden;
    transition: all .22s ease;
}

.tp-post-article .post_content .mx-photo-item:hover {
    border-color: rgba(183, 154, 106, 0.72);
    background: rgba(252, 250, 246, 0.68);
}

.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 rgba(218, 209, 195, 0.86);
    border-radius: 9px;
    background: rgba(251, 248, 242, 0.58);
    overflow: hidden;
}

.tp-post-article .post_content .collapse-btn {
    width: 100%;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid rgba(226, 216, 202, 0.78);
    background: rgba(248, 244, 237, 0.72);
    color: #5B4634;
    font: 500 15px/22px var(--font-main);
    text-align: left;
}

.tp-post-article .post_content .collapse {
    display: none;
    padding: 14px 16px;
}

.tp-post-article .post_content .collapse.show,
.tp-post-article .post_content .cat_collapse.open .collapse {
    display: block;
}

.tp-post-article .post_content cat_music,
.tp-post-article .post_content cat_article_video,
.tp-post-article .post_content cat_item_image,
.tp-post-article .post_content .item_image {
    display: block;
    margin: 22px 0;
}

.tp-post-article .post_content>.item_image,
.tp-post-article .post_content>cat_item_image {
    margin: 14px auto;
}

.tp-post-article .post_content cat_item_image img,
.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;
}

.tp-post-article .post_content cat_music.card,
.tp-post-article .post_content cat_article_video.card {
    padding: 14px;
    border: 1px solid rgba(218, 209, 195, 0.86);
    border-radius: 10px;
    background: rgba(251, 248, 242, 0.58);
    box-shadow: none;
}

.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 rgba(218, 209, 195, 0.9);
    border-radius: 999px;
    background: rgba(248, 244, 237, 0.72);
    color: #8A6D4A;
    font-size: 13px;
    line-height: 20px;
}

.article-tags a:hover {
    border-color: #D7C6B1;
    background: #F1E8DC;
    color: #5A4634;
}

.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 rgba(226, 216, 202, 0.85);
    border-radius: 7px;
    background: rgba(251, 248, 242, 0.52);
    color: #6B6158;
    transition: all .22s ease;
}

.post-near-card:hover {
    border-color: #D7C6B1;
    background: rgba(252, 250, 246, 0.68);
}

.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: #4B433D;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-near-body small {
    color: #9C9188;
    font-size: 11px;
    line-height: 1;
}

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

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

.post-near-card:hover .post-near-arrow {
    border-color: #8A6D4A;
}

.post-near-card.is-disabled {
    opacity: .58;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    body {
        padding-top: 18px;
    }
    .main_screen {
        width: min(100% - 24px, var(--page-width));
    }
    .post-title-block h1 {
        font-size: 24px;
    }
    .tp-post-article .post_content {
        max-width: none;
        margin-top: 6px;
        padding: 22px 22px 26px;
        border-radius: 14px;
    }
    .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) {
    .post-title-block h1 {
        font-size: 22px;
    }
    .tp-post-article,
    .tp-post-article .post_content p {
        font-size: 15px;
        line-height: 1.9;
    }
    .tp-post-article .post_content {
        overflow-x: hidden;
        padding: 18px 16px 22px;
        border-radius: 12px;
    }
    .tp-post-article .post_content h1 {
        font-size: 24px;
    }
    .tp-post-article .post_content h2 {
        font-size: 21px;
    }
    .tp-post-article .post_content h3 {
        font-size: 18px;
    }
    .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;
    }
    .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: 12px 0;
    }
    .tp-post-article .post_content .mx-photo-item img {
        aspect-ratio: 1 / 1;
    }
}


