/* tp-riven home */

body {
    box-sizing: border-box;
    min-height: 100vh;
    letter-spacing: 0;
    background-image: none;
    padding-top: 18px;
}

body::before {
    content: "";
    position: fixed;
    inset: -4px;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-page);
    background-image: var(--tp-bg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bg-soft) 50%, transparent);
    opacity: .18;
    background-size: auto, 28px 28px, 34px 34px;
}

.main_screen {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(var(--page-width), calc(100% - 64px));
    max-width: none;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0 auto;
    padding-bottom: 30px;
}

main {
    width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
}

a {
    color: var(--text-primary);
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

a:hover {
    color: var(--accent-gold);
    text-shadow: none;
    text-decoration: none;
}

.cat_menu.tp-header {
    position: static;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 0 17px;
    border: 0;
    border-bottom: 1px solid var(--line-primary);
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
    overflow: visible;
}

.tp-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: fit-content;
    min-width: max-content;
    color: #1F1A17;
    white-space: nowrap;
}

.tp-brand:hover {
    color: #1F1A17;
}

.tp-brand-text {
    color: #1F1A17;
    font-family: var(--font-logo);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.tp-brand-logo {
    display: block;
    width: auto;
    height: 50px;
    max-width: 220px;
    object-fit: contain;
}

.tp-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    white-space: nowrap;
}

.tp-nav-item {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.tp-nav-link {
    position: relative;
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    transition: background-color .2s ease, color .2s ease;
}

.tp-nav-caret {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.tp-subnav {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 30;
    min-width: 132px;
    padding: 8px;
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 14px 30px rgba(62, 57, 52, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease;
}

.tp-subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.tp-subnav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-body);
    font-size: 13px;
    line-height: 20px;
    text-align: left;
}

.tp-nav-item.has-children:hover .tp-subnav,
.tp-nav-item.has-children:focus-within .tp-subnav,
.tp-nav-item.has-children.is-open .tp-subnav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.tp-nav-item.has-children:hover .tp-nav-caret,
.tp-nav-item.has-children:focus-within .tp-nav-caret,
.tp-nav-item.has-children.is-open .tp-nav-caret {
    transform: rotate(225deg) translate(-2px, -2px);
}

.site-search {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 32px;
    line-height: 1;
    margin-left: 0;
}

.search-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #5F5750;
    border-radius: 50%;
    line-height: 1;
}

.search-toggle svg {
    display: block;
    width: 16px;
    height: 16px;
}

.tp-nav-link:hover,
.search-toggle:hover {
    color: #4F3828;
}

.tp-subnav-link:hover {
    background: var(--bg-soft);
    color: var(--accent-brown);
}

.tp-nav-more {
    display: inline-flex;
}

.tp-nav-more[hidden] {
    display: none !important;
}

.tp-nav-more-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.tp-nav-more.is-open .tp-subnav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.home-notice {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin: 20px 0;
    padding: 0 18px 0 16px;
    border: 1px solid var(--control-border);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: var(--control-shadow);
    color: var(--control-text);
    overflow: hidden;
}

.home-notice::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.home-notice-icon {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    color: var(--accent-brown);
    fill: currentColor;
    opacity: .88;
}

.home-notice-arrow {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--control-text);
    border-right: 1px solid var(--control-text);
    opacity: .62;
    transform: rotate(45deg);
}

.home-notice-viewport {
    position: relative;
    z-index: 1;
    height: 22px;
    overflow: hidden;
}

.home-notice-track p {
    display: none;
    height: 22px;
    margin: 0;
    overflow: hidden;
    color: var(--control-text);
    font-size: 15px;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-notice-track p.active {
    display: block;
}

.home-sticky-carousel {
    position: relative;
    margin: 0 0 20px;
}

.home-sticky-carousel.is-first-home-block {
    margin-top: 20px;
}

.home-sticky-viewport {
    position: relative;
    min-height: 146px;
    border: 1px solid var(--line-primary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 10px 26px rgba(62, 57, 52, .035);
    overflow: hidden;
}

.home-sticky-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2.5vw, 20px);
    padding: clamp(12px, 2vw, 14px) clamp(12px, 3vw, 22px) clamp(14px, 2vw, 14px) clamp(12px, 2vw, 16px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity .42s ease, transform .42s ease;
}

.home-sticky-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.home-sticky-cover {
    display: block;
    height: clamp(104px, 20vw, 150px);
    border-radius: 6px;
    border: 1px solid var(--line-secondary);
    background-color: var(--bg-soft);
    box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--bg-card) 18%, transparent);
    overflow: hidden;
}

.home-sticky-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-sticky-content {
    min-width: 0;
    align-self: center;
}

.home-sticky-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 18%, transparent);
    border-radius: 5px;
    background: var(--accent-brown);
    box-shadow: 0 6px 14px rgba(74, 48, 25, .16);
    color: #FFF8EC;
    font-size: 13px;
    font-weight: 600;
    line-height: 24px;
    text-shadow: 0 1px 1px rgba(50, 32, 16, .26);
    transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.home-sticky-slide:hover .home-sticky-badge {
    background: var(--accent-brown);
    box-shadow: 0 8px 18px rgba(74, 48, 25, .22);
    transform: translateY(-1px);
}

.home-sticky-content h2 {
    margin: 0;
    color: #332922;
    font-size: clamp(18px, 3.2vw, 24px);
    font-weight: 600;
    line-height: 1.32;
}

.home-sticky-content p {
    margin: 8px 0 0;
    overflow: hidden;
    color: #77695d;
    font-size: clamp(12px, 2.2vw, 14px);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-sticky-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.home-sticky-dots button {
    width: 18px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-brown) 22%, transparent);
    cursor: pointer;
    transition: width .22s ease, background-color .22s ease;
}

.home-sticky-dots button.is-active {
    width: 28px;
    background: color-mix(in srgb, var(--accent-brown) 76%, transparent);
}

.home-sticky-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-brown) 82%, transparent);
    box-shadow: 0 8px 18px rgba(80, 64, 48, .16);
    cursor: pointer;
    opacity: .88;
    transform: translateY(-50%);
    transition: background-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.home-sticky-nav::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--bg-card);
    border-left: 2px solid var(--bg-card);
}

.home-sticky-prev {
    left: 12px;
}

.home-sticky-next {
    right: 12px;
}

.home-sticky-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
}

.home-sticky-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
}

.home-sticky-nav:hover,
.home-sticky-nav:focus-visible {
    background: var(--accent-brown);
    box-shadow: 0 10px 22px rgba(80, 64, 48, .22);
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

.home-sticky-nav:focus-visible {
    outline: 2px solid rgba(123, 91, 56, .3);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .home-sticky-nav {
        opacity: 0;
        pointer-events: none;
    }
    .home-sticky-carousel:hover .home-sticky-nav,
    .home-sticky-carousel:focus-within .home-sticky-nav {
        opacity: .88;
        pointer-events: auto;
    }
    .home-sticky-carousel:hover .home-sticky-nav:hover,
    .home-sticky-carousel:focus-within .home-sticky-nav:focus-visible {
        opacity: 1;
    }
}

.home-posts {
    position: relative;
    border: 1px solid var(--line-secondary);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: 0 8px 22px rgba(62, 57, 52, 0.025);
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.home-posts.is-first-home-block {
    margin-top: 20px;
}

.home-posts::before {
    content: "";
    position: absolute;
    left: clamp(22px, 3.2vw, 28px);
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: color-mix(in srgb, var(--text-secondary) 42%, transparent);
}

.home-post {
    position: relative;
    min-height: clamp(66px, 9vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    padding: 0 clamp(10px, 2.8vw, 22px) 0 0;
    border-bottom: 0;
    transition: background-color .22s ease;
}

.home-post::after {
    content: "";
    position: absolute;
    left: clamp(94px, 14.5vw, 116px);
    right: clamp(10px, 2.8vw, 22px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--line-secondary), color-mix(in srgb, var(--line-secondary) 44%, transparent));
}

.home-post:last-child {
    border-bottom: 0;
}

.home-post:last-child::after {
    display: none;
}

.home-post:hover {
    background: color-mix(in srgb, var(--bg-card) 36%, transparent);
}

.home-post::before {
    content: "";
    position: absolute;
    left: clamp(15px, 2.4vw, 21px);
    top: 50%;
    z-index: 1;
    width: 10px;
    height: 10px;
    border: 3px solid var(--text-secondary);
    border-radius: 50%;
    background: var(--bg-card);
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px var(--bg-page), inset 0 0 0 2px var(--bg-card);
}

.home-post-link {
    min-width: 0;
    display: grid;
    grid-template-columns: clamp(94px, 14.5vw, 116px) minmax(0, 1fr);
    align-items: center;
    color: var(--text-primary);
}

.home-post-date {
    display: grid;
    justify-items: start;
    padding-left: clamp(40px, 6vw, 50px);
    color: #6E6258;
    line-height: 1;
}

.home-post-date span {
    color: #332B25;
    font-size: clamp(21px, 3vw, 24px);
    line-height: 1;
    font-weight: 400;
}

.home-post-date small {
    margin-top: 4px;
    color: #8B7C6E;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.home-post-title {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: clamp(0px, 1vw, 6px);
    font-size: clamp(14px, 2.1vw, 16px);
    font-weight: 600;
    line-height: clamp(22px, 3.2vw, 26px);
}

.home-post-link:hover .home-post-title {
    color: #5D4630;
}

.home-post-comments {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 42px;
    color: #87786a;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 16px;
    transition: color .22s ease;
}

.home-post:hover .home-post-comments {
    color: var(--accent-brown);
}

.home-comment-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    background-color: currentColor;
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
    opacity: .82;
    transform: translateY(1px);
}

.home-comment-icon::after {
    display: none;
    content: none;
}

.home-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 40px 0;
}

.home-pagination li a,
.home-pagination-jump {
    display: inline-flex;
    align-items: center;
    height: 35px;
    border: 1px solid rgba(161, 137, 108, .24);
    border-radius: 5px;
    background: rgba(251, 250, 247, .72);
    box-shadow: none;
}

.home-pagination li a {
    justify-content: center;
    min-width: 35px;
    padding: 0;
    color: var(--control-text);
    font-size: 13px;
    line-height: 1;
}

.home-pagination li.prev a,
.home-pagination li.next a {
    min-width: 64px;
    padding: 0 8px;
    background: rgba(251, 250, 247, .82);
    text-align: center;
}

.home-page-text {
    display: inline;
}

.home-page-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-pagination li a[href]:hover {
    border-color: rgba(130, 101, 70, .42);
    background: rgba(242, 238, 232, .9);
    color: #5D4934;
}

.home-pagination li.active a {
    border-color: #8A7054;
    background: linear-gradient(145deg, #8D7254, #6C543B);
    box-shadow: none;
    color: #FFF8EC;
}

.home-pagination li:not(.active) a:not([href]) {
    border-color: rgba(161, 137, 108, .16);
    background: rgba(251, 250, 247, .58);
    color: var(--control-text);
    cursor: not-allowed;
}

.home-pagination-jump {
    width: 60px;
    background: rgba(251, 250, 247, .82);
    overflow: hidden;
    transition: width .22s ease, background-color .18s ease;
}

.home-pagination-jump:hover,
.home-pagination-jump:focus-within {
    border-color: rgba(130, 101, 70, .42);
    background: rgba(242, 238, 232, .9);
}

.home-pagination-jump input {
    width: 0;
    min-width: 0;
    height: 15px;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    line-height: 20px;
    text-align: left;
    opacity: 0;
    transform: translateX(8px);
    transition: width .24s ease, padding .24s ease, opacity .18s ease, transform .24s ease;
}

.home-pagination-jump input::-webkit-outer-spin-button,
.home-pagination-jump input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.home-pagination-jump:hover input,
.home-pagination-jump:focus-within input {
    width: 34px;
    padding: 0 4px;
    opacity: 1;
    transform: translateX(0);
}

.home-pagination-jump button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 60px;
    flex: 0 0 60px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--control-text);
    font-size: 12px;
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.home-pagination-jump:hover button,
.home-pagination-jump:focus-within button {
    width: 26px;
    flex-basis: 26px;
}

.home-pagination-jump:hover button span,
.home-pagination-jump:focus-within button span {
    display: none;
}

.home-pagination-jump button:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.home-pagination-jump button:not(:disabled):hover {
    color: #5D4934;
}

.home-pagination-jump button:not(:disabled):hover .home-page-icon {
    stroke-width: 3;
    transform: translateX(1px);
}

.home-pagination-jump button:not(:disabled):active {
    color: #5F4932;
}

.float-right {
    z-index: 1200;
    right: 28px;
    bottom: 72px;
    display: grid;
    gap: 10px;
}

.operator-button {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--float-border);
    border-radius: 12px;
    background: var(--float-bg);
    box-shadow: var(--float-shadow);
    color: var(--float-icon);
    transition: all .22s ease;
}

.operator-button:hover {
    border-color: var(--float-hover-border);
    background: var(--float-hover-bg);
    box-shadow: var(--float-hover-shadow);
    color: var(--float-hover-icon);
}

#backToTopBtn,
#postTocBtn,
#goToCommentsBtn {
    display: none;
    border-radius: 50%;
    background: var(--float-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(.96);
    transition: opacity .22s ease, transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease;
}

#backToTopBtn.is-visible,
#postTocBtn.is-visible,
#goToCommentsBtn.is-visible {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#backToTopBtn:hover,
#postTocBtn:hover,
#goToCommentsBtn:hover {
    transform: translateY(-2px) scale(1);
    cursor: pointer;
}

#postTocBtn.is-active {
    border-color: var(--float-active-border);
    background: var(--float-active-bg);
    box-shadow: var(--float-active-shadow);
    color: var(--float-active-icon);
    transform: translateY(-2px) scale(1);
}

.tp-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

.tp-icon-top::before {
    display: none;
    content: none;
}

.tp-icon-top::after {
    display: none;
    content: none;
}

.tp-icon-comment {
    width: 22px;
    height: 22px;
    background-color: currentColor;
    stroke: none;
    -webkit-mask: url("../static/images/comment.svg") center / contain no-repeat;
    mask: url("../static/images/comment.svg") center / contain no-repeat;
}

.footer.ink-footer {
    flex: 0 0 auto;
    padding: 0;
    color: #93887E;
    font-size: 13px;
    line-height: 22px;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-content>span:not(:last-child)::after {
    content: "|";
    margin: 0 14px;
    color: #B8AEA2;
}

.footer-content>span:last-child {
    color: #8D8176;
    font-weight: 400;
}

.footer-content a {
    color: inherit;
}

.footer-rss-text::after {
    display: none;
    content: none;
}

.footer-rss a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8D8176;
    line-height: 22px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-rss a:hover {
    color: #6D5641;
}

.footer-rss svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-rss svg circle {
    fill: currentColor;
    stroke: none;
}

.footer-rss-text {
    font-size: 13px;
}

@media (max-width: 800px) {
    body::before {
        inset: -8px;
        background-position: center top;
        background-size: cover;
        filter: blur(1.35px);
        opacity: 0.78;
    }
    body::after {
        background: color-mix(in srgb, var(--bg-page) 28%, transparent);
    }
    .cat_menu.tp-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        min-height: auto;
        padding: 4px 0 16px;
    }
    .tp-brand {
        grid-column: 1;
        grid-row: 1;
    }
    .site-search {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .tp-brand-text {
        font-size: 38px;
    }
    .tp-brand-logo {
        height: 40px;
        max-width: min(220px, 58vw);
    }
    .tp-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .tp-nav::-webkit-scrollbar {
        display: none;
    }
    .tp-nav-more {
        display: none !important;
    }
    .tp-nav-item {
        position: relative;
    }
    .tp-subnav {
        position: fixed;
        left: var(--tp-subnav-left, 16px);
        top: var(--tp-subnav-top, 120px);
        right: auto;
        min-width: 140px;
        max-width: calc(100vw - 32px);
        z-index: 100;
        transform: translateY(6px);
    }
    .tp-nav-item.has-children:hover .tp-subnav,
    .tp-nav-item.has-children:focus-within .tp-subnav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
    }
    .tp-nav-item.has-children.is-open .tp-subnav,
    .tp-subnav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .tp-nav-item.has-children.is-closing .tp-subnav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(6px);
    }
    .home-posts::before {
        top: 20px;
        bottom: 20px;
    }
    .float-right {
        right: 16px;
        bottom: 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 0;
        background-position: center top;
    }
    .tp-nav {
        gap: 10px;
        font-size: 14px;
    }
    .home-notice {
        height: 44px;
        padding: 0 14px;
    }
    .home-sticky-viewport {
        min-height: 214px;
    }
    .home-sticky-slide {
        grid-template-columns: 1fr;
        grid-template-areas: "cover" "content";
        gap: 10px 12px;
        min-height: 214px;
        padding: 12px 12px 30px;
    }
    .home-sticky-cover {
        grid-area: cover;
        height: 150px;
    }
    .home-sticky-content {
        grid-area: content;
    }
    .home-sticky-badge {
        top: 18px;
        right: 18px;
        height: 22px;
        border-color: color-mix(in srgb, var(--accent-brown) 24%, transparent);
        background: var(--accent-brown);
        box-shadow: 0 5px 12px rgba(60, 38, 18, .22);
        padding: 0 8px;
        font-size: 12px;
        line-height: 22px;
    }
    .home-sticky-content p {
        margin-top: 6px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }
    .home-sticky-dots {
        bottom: 9px;
    }
    .home-posts::before {
        top: 20px;
        bottom: 20px;
    }
    .home-post-date small {
        margin-top: 4px;
    }
    .home-comment-icon {
        width: 12px;
        height: 12px;
    }
    .home-post-comments {
        justify-content: flex-end;
        gap: 3px;
        font-size: 12px;
        line-height: 14px;
    }
    .home-pagination li.prev a,
    .home-pagination li.next a {
        min-width: 35px;
        width: 35px;
        padding: 0;
    }
    .home-pagination li.prev .home-page-text,
    .home-pagination li.next .home-page-text {
        display: none;
    }
    .footer-content {
        display: grid;
        gap: 4px;
    }
    .footer-content>span::after,
    .footer-rss-text::after {
        content: "" !important;
        margin: 0 !important;
    }
}
