/* PPS / 主题扩展、字号、PPS 介绍页、05 / BOOKS */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .channel-track i {
        animation: none;
    }

    .gallery-media img {
        transition: none;
    }

    .gallery-card:hover .gallery-media img {
        transform: none;
    }

    .book-cover,
    .book-card:hover .book-cover {
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* Secondary accent and link system */

.article-body a,
.text-link,
.desk-nav a:hover,
.desk-nav a[aria-current="page"],
.feed-item:hover .feed-title,
.board-card:hover strong,
.entry-nav a:hover,
.archive-row h2 a:hover,
.related-list a:hover strong,
.related-cats a:hover span,
.foot-grid a:hover,
.entry-tags a:hover,
.comment-list .comment-reply a {
    color: var(--blue-ink);
}

.article-body a {
    text-decoration-color: var(--blue-ink);
}

.text-link {
    border-bottom-color: var(--blue-ink);
}

.board-col h2 a:hover,
.board-col h2 a:focus-visible {
    color: var(--blue-ink);
}

.entry-tags a:hover {
    border-color: var(--blue-ink);
}

/* Rounded borders (0px keeps the original sharp look) */

.panel,
.feed-media,
.feed-media-empty,
.entry-kicker-label,
.entry-tags a,
.btn,
.comments,
.comment-form input,
.comment-form textarea,
.page-navigator li a,
.page-navigator li span,
.mobile-panel,
.skip,
.article-body pre,
.article-body .bookinfo-single {
    border-radius: var(--radius);
}

/* Chronicle card density */

@media (min-width: 1500px) {
    .chronicle-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .chronicle-card {
        min-height: 126px;
    }
}

@media (min-width: 1100px) and (max-width: 1499px) {
    .chronicle-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Typography scale */

body {
    font-size: var(--fs-body);
}

.status-strip,
.channel-count,
.panel-index,
.panel-note,
.board-meta,
.board-empty,
.board-col header span,
.entry-status,
.entry-kicker-label,
.entry-tags,
.side-block .eyebrow,
.eyebrow,
.archive-status,
.row-code,
.row-cat,
.archive-row time,
.pager,
.page-navigator li a,
.page-navigator li span,
.comment-list .comment-meta,
.comment-list .comment-reply a,
.login-note,
.closed,
.submit-row span,
.comment-form label,
.related-cats b,
.brand-fallback sup,
.article-body figcaption,
.btn,
.foot-meta p {
    font-size: max(9px, var(--fs-micro));
}

.feed-meta,
.hero-meta,
.entry-meta,
.related-list span,
.desk-nav a,
.foot-grid a,
.entry-kicker {
    font-size: max(10px, var(--fs-meta));
}

.feed-meta,
.entry-meta,
.related-list span {
    line-height: 1.55;
}

.board-col h2,
.board-card strong,
.feed-title {
    font-size: var(--fs-card);
}

.entry-head h1 {
    font-size: clamp(44px, 7vw, var(--fs-hero));
}

.entry-dek {
    font-size: calc(var(--fs-article) + 1px);
}

.article-body {
    font-size: var(--fs-article);
}

.article-body h2 {
    font-size: var(--fs-heading);
}

.article-body h3 {
    font-size: calc(var(--fs-heading) * 0.72);
}

@media (max-width: 760px) {
    .feed-title {
        font-size: max(22px, var(--fs-card));
    }

    .entry-head h1 {
        font-size: max(34px, calc(var(--fs-hero) * 0.3));
    }

    .entry-dek {
        font-size: max(16px, calc(var(--fs-article) - 2px));
    }

    .article-body {
        font-size: max(17px, var(--fs-article));
    }

    .article-body h2 {
        padding: 0 0 7px;
        font-size: max(23px, calc(var(--fs-heading) * 0.8));
    }
}

@media print {
    .topbar,
    .status-strip,
    .site-foot,
    .entry-nav,
    .comments,
    .pager {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .entry-layout {
        display: block;
    }

    .entry-side {
        display: none;
    }

    .article-body {
        color: #000;
    }
}

@media (max-width: 760px) {
    .gallery-grid-wrap {
        padding-top: 24px;
    }

    .bookshelf-wrap {
        padding-top: 24px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Pager: final responsive refinement */

.pager {
    margin-top: 36px;
    padding-top: 18px;
}

.pager .page-navigator li a,
.pager .page-navigator li span {
    font-size: 9px;
    color: var(--muted);
}

.pager .page-navigator li.next a,
.pager .page-navigator li.prev a {
    color: var(--ink);
}

.pager .page-navigator li.current a {
    color: var(--on-accent);
}

.pager .page-navigator li > span {
    color: var(--muted);
}

@media (max-width: 760px) {
    .pager {
        margin-top: 28px;
        padding-top: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        text-align: left;
    }

    .pager::-webkit-scrollbar {
        display: none;
    }

    .pager .page-navigator {
        width: max-content;
        min-width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        padding-bottom: 2px;
    }

    .pager .page-navigator li a,
    .pager .page-navigator li span {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
    }

    .pager .page-navigator li.next a,
    .pager .page-navigator li.prev a {
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pager .page-navigator li a {
        transition: none;
    }
}

/* Main titles follow the article hero size setting */

.archive-head h1,
.bookshelf-head h1,
.gallery-head h1,
.chronicle-hero h1,
.entry-head h1 {
    font-size: var(--fs-hero);
}

@media (max-width: 1100px) {
    .archive-head h1,
    .bookshelf-head h1,
    .gallery-head h1,
    .chronicle-hero h1,
    .entry-head h1 {
        font-size: clamp(42px, 7vw, var(--fs-hero));
    }
}

@media (max-width: 760px) {
    .archive-head h1,
    .bookshelf-head h1,
    .gallery-head h1,
    .chronicle-hero h1,
    .entry-head h1 {
        font-size: clamp(34px, calc(var(--fs-hero) * 0.45), 64px);
    }
}


/* 炼知独立分类：2.3:1 封面，整卡可点 */
.digest-head {
    padding-top: 64px;
    padding-bottom: 38px;
}

.digest-wrap {
    padding-top: 6px;
    padding-bottom: 96px;
}

.digest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 26px;
    margin-top: 28px;
}

.digest-card {
    --digest-radius: var(--radius);
    display: block;
    min-width: 0;
    padding: 12px;
    border: 1px dotted var(--line);
    border-radius: var(--digest-radius);
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 180ms ease;
}

.digest-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    border-radius: var(--digest-radius) var(--digest-radius) 0 0;
    background: var(--panel-2);
}

.digest-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.digest-media.is-empty {
    border: 1px dotted var(--line);
    border-radius: var(--digest-radius) var(--digest-radius) 0 0;
    background: var(--placeholder-bg);
}

.digest-placeholder {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.digest-card:hover {
    border-color: var(--line-strong);
}

.digest-card:hover .digest-media img {
    transform: scale(1.025);
}

@media (min-width: 761px) and (max-width: 1100px) {
    .digest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 22px;
    }
}

@media (max-width: 760px) {
    .digest-head {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .digest-wrap {
        padding-bottom: 72px;
    }

    .digest-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 24px;
    }

    .digest-card {
        padding: 10px;
    }
}


/* 分类页公共留白：标题、简介和列表使用同一套节奏 */
.archive-head,
.bookshelf-head,
.gallery-head,
.digest-head {
    padding-top: 64px;
    padding-bottom: 38px;
}

.archive-list {
    padding-top: 28px;
}

@media (max-width: 760px) {
    .archive-head,
    .bookshelf-head,
    .gallery-head,
    .digest-head {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .archive-list {
        padding-top: 20px;
    }
}


/* Footer readability on small screens */
@media (max-width: 760px) {
    .foot-meta p {
        font-size: max(10px, var(--fs-micro));
        line-height: 1.8;
    }

    .foot-note {
        font-size: 13px;
        line-height: 1.85;
    }

    .foot-colors {
        gap: 6px 12px;
    }
}

/* Tag / search result cards */
.result-wrap {
    padding-top: 6px;
    padding-bottom: 96px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 28px;
}

.result-card {
    display: block;
    min-width: 0;
    padding: 12px 12px 18px;
    overflow: hidden;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 180ms ease;
}

.result-card:hover {
    border-color: var(--line-strong);
}

.result-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2.3 / 1;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--panel-2);
}

.result-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.result-card:hover .result-media img {
    transform: scale(1.025);
}

.result-media.is-empty {
    border: 1px dotted var(--line);
    background: var(--placeholder-bg);
}

.result-placeholder {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.digest-placeholder.is-title,
.result-placeholder.is-title {
    display: -webkit-box;
    max-width: 90%;
    padding: 0 14px;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: calc(var(--fs-card) - 2px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.result-card.has-title-fallback .result-title {
    display: none;
}

.result-body {
    display: block;
    padding: 14px 2px 0;
}

.result-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: calc(var(--fs-card) - 2px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 180ms ease;
}

.result-card:hover .result-title {
    color: var(--yellow);
}

.result-meta {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(10px, var(--fs-meta));
    line-height: 1.5;
}

.result-meta i {
    color: var(--line-strong);
    font-style: normal;
}

.result-summary {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.archive-search {
    display: flex;
    align-items: stretch;
    max-width: 620px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--inset-bg);
}

.archive-search:focus-within {
    border-color: var(--line-strong);
}

.archive-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
}

.archive-search input::placeholder {
    color: var(--muted);
}

.archive-search button {
    flex: 0 0 auto;
    padding: 0 15px;
    border: 0;
    border-left: 1px dotted var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--yellow);
    font-family: var(--mono);
    font-size: max(9px, var(--fs-micro));
    letter-spacing: 0.08em;
    cursor: pointer;
}

.archive-search button:hover {
    color: var(--ink);
    background: var(--placeholder-bg);
}

@media (min-width: 761px) and (max-width: 1100px) {
    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 22px;
    }
}

@media (max-width: 760px) {
    .result-wrap {
        padding-bottom: 72px;
    }

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

    .result-card {
        padding: 10px 10px 15px;
    }

    .archive-search input {
        padding: 11px 10px;
        font-size: 13px;
    }

    .archive-search button {
        padding: 0 10px;
    }
}

/* All tags overview */
.tag-cloud-head {
    padding-bottom: 38px;
}

.tag-index-wrap {
    padding-top: 6px;
    padding-bottom: 96px;
}

.tag-index-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.tag-search {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 560px;
}

.tag-search .eyebrow {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 9px;
} 

.tag-search input {
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
}

.tag-search input::placeholder {
    color: var(--muted);
}

.tag-search-status {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(9px, var(--fs-micro));
    letter-spacing: 0.04em;
}

.tag-index-section {
    margin-top: 30px;
}

.tag-index-section[hidden],
.tag-chip[hidden] {
    display: none !important;
}

.tag-index-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--line);
}

.tag-index-head h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-index-head span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(9px, var(--fs-micro));
    letter-spacing: 0.06em;
    text-align: right;
}

.tag-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px 8px;
}

.tag-chip-grid-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.tag-chip {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 11px;
    border: 1px dotted var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tag-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-chip em {
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(9px, var(--fs-micro));
    font-style: normal;
}

.tag-chip-featured {
    padding: 11px 14px;
    font-size: 14px;
    background: var(--panel-2);
}

.tag-chip:hover {
    border-color: var(--line-strong);
    background: var(--panel-2);
    color: var(--yellow);
}

.tag-index-more {
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.tag-index-more summary {
    padding: 12px 14px;
    color: var(--blue-ink);
    font-family: var(--mono);
    font-size: max(10px, var(--fs-micro));
    letter-spacing: 0.04em;
    cursor: pointer;
    list-style: none;
}

.tag-index-more summary::-webkit-details-marker {
    display: none;
}

.tag-index-more summary::after {
    content: " +";
    color: var(--muted);
}

.tag-index-more[open] summary::after {
    content: " −";
}

.tag-index-more .tag-chip-grid {
    padding: 0 14px 14px;
}

.tag-index-empty {
    margin: 24px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(10px, var(--fs-micro));
}

@media (max-width: 1100px) {
    .tag-chip-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tag-chip-grid-featured {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tag-cloud-head {
        padding-top: 42px;
        padding-bottom: 28px;
    }

    .tag-index-wrap {
        padding-bottom: 72px;
    }

    .tag-index-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
        padding: 11px 12px;
    }

    .tag-search {
        width: 100%;
        max-width: none;
    }

    .tag-search-status {
        padding-left: 0;
    }

    .tag-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .tag-chip-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tag-chip {
        padding: 8px 9px;
        font-size: 12px;
    }

    .tag-chip-featured {
        padding: 9px 11px;
    }

    .tag-index-section {
        margin-top: 24px;
    }
}

@media (max-width: 440px) {
    .tag-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Hero KPI dial */
@property --dial-face-turn {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

.hero-kpi {
    position: relative;
    container-type: inline-size;
    justify-self: end;
    align-self: center;
    width: 100%;
    min-width: 0;
    max-width: 480px;
    min-height: 0;
    overflow: visible;
    color: var(--ink);
}

.dial-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-top: 4px;
}

.dial-wrap > svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.dial-face {
    transform-box: view-box;
    transform-origin: 215px 215px;
    transform: rotate(calc(var(--dial-face-turn) * 1deg));
    transition: none;
    will-change: transform;
}

.dial-face.is-rotating {
    transition: --dial-face-turn 1.2s cubic-bezier(0.18, 1.04, 0.28, 1);
}

.dial-rim {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1;
}

.dial-rim-dash {
    fill: none;
    stroke: rgba(240, 236, 226, 0.16);
    stroke-width: 1;
    stroke-dasharray: 2 8;
}

.dial-tick {
    cursor: pointer;
    stroke: rgba(240, 236, 226, 0.18);
    stroke-width: 1;
    transition: stroke 0.5s ease, stroke-width 0.5s ease;
}

.dial-tick.major {
    stroke: rgba(240, 236, 226, 0.4);
    stroke-width: 1.6;
}

.dial-outer-tick {
    stroke: rgba(240, 236, 226, 0.16);
    stroke-width: 1;
}

.dial-outer-tick.major {
    stroke: rgba(240, 236, 226, 0.3);
    stroke-width: 1.3;
}

.dial-hot-arc {
    fill: none;
    stroke: rgba(255, 240, 0, 0.2);
    stroke-width: 13;
    stroke-linecap: butt;
    pointer-events: none;
}

.dial-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dial-label {
    position: absolute;
    z-index: 4;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-family: var(--mono);
    font-size: max(9px, 2.6cqw);
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: color 0.35s ease;
}

.dial-label:hover,
.dial-label.is-active {
    color: var(--yellow);
}

.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 170px;
    height: 170px;
    width: max(140px, 39.5cqw);
    height: max(140px, 39.5cqw);
    overflow: visible;
    border: 1px dotted var(--line-strong);
    border-radius: 50%;
    background: var(--panel);
    box-shadow: 0 0 0 10px rgba(255, 240, 0, 0.025), inset 0 0 30px rgba(255, 240, 0, 0.03);
    transform: translate(-50%, -50%);
}

.dial-center > span {
    position: absolute;
    top: 20px;
    left: 50%;
    width: max-content;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(8px, calc(var(--fs-micro) - 2px));
    letter-spacing: 0.12em;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.dial-center > span.is-changing {
    opacity: 0;
    transform: translate(-50%, -3px);
}

.dial-center strong {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: max-content;
    color: var(--yellow);
    font-family: var(--mono);
    font-size: 62px;
    font-size: max(60px, 22.5cqw);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
    letter-spacing: -0.05em;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.dial-center small {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: max-content;
    max-width: 160px;
    color: var(--green);
    font-family: var(--mono);
    font-size: max(8px, calc(var(--fs-micro) - 2px));
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.dial-center small.is-changing {
    opacity: 0;
    transform: translate(-50%, 3px);
}



@media (max-width: 760px) {
    .hero-kpi {
        max-width: 430px;
        min-height: 0;
        margin: 0 auto;
    }

    .dial-wrap {
        margin-top: 10px;
    }

    .dial-label {
        font-size: max(9px, 2.8cqw);
    }

}

.hero-clock {
    font-variant-numeric: tabular-nums;
}


/* Bookshelf: 6 / 4 / 2 columns by width */
@media (max-width: 1100px) {
    .bookshelf-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .bookshelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }
}

/* About 独立页面 */
.about-head {
    padding-top: 18px;
    padding-bottom: 38px;
}

.about-head h1 {
    max-width: 20ch;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 64px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 80px;
}

.about-layout.is-single {
    grid-template-columns: minmax(0, 1fr);
}

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

.about-side {
    min-width: 0;
}

.about-side-block {
    padding: 20px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.about-side-head {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px dotted var(--line);
}

.about-side-head .eyebrow {
    color: var(--blue);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
}

.about-side-head h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.about-side-head h2 a {
    color: inherit;
    text-decoration: none;
}

.about-side-head h2 a:hover {
    color: var(--yellow);
}

.about-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-post-list li {
    border-bottom: 1px dotted var(--line);
}

.about-post-list li:last-child {
    border-bottom: 0;
}

.about-post-list a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    color: var(--muted);
    text-decoration: none;
}

.about-post-list time {
    padding-top: 2px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.02em;
}

.about-post-list span {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
}

.about-post-list a:hover time,
.about-post-list a:hover span {
    color: var(--yellow);
}

.about-side-empty {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.about-side-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--blue-ink);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px dotted color-mix(in srgb, var(--blue) 45%, transparent);
}

.about-side-more:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

@media (max-width: 1000px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-top: 28px;
        padding-bottom: 60px;
    }

}

@media (max-width: 760px) {
    .about-head {
        padding-top: 0;
        padding-bottom: 28px;
    }

    .about-layout {
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .about-side-block {
        padding: 16px;
    }

    .about-post-list a {
        grid-template-columns: 54px minmax(0, 1fr);
    }
}


.foot-version a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--line);
}

.foot-version a:hover {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

/* Footer grid: keep every text and link size identical */
.foot-grid,
.foot-grid p,
.foot-grid a,
.foot-grid span,
.foot-grid nav,
.foot-grid .eyebrow {
    font-size: 10px;
}

/* PPS intro page template */
.pps-page {
    padding-bottom: 0;
}

.pps-hero {
    padding-top: 44px;
    padding-bottom: 40px;
    border-bottom: 1px dotted var(--line);
}

.pps-statusbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px dotted var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.pps-status-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--yellow);
}

.pps-status-meta b {
    margin: 0 4px;
    color: var(--line-strong);
    font-weight: 400;
}

.pps-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.pps-kicker {
    color: var(--blue);
}

.pps-version-line {
    margin: 7px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

.pps-version-line b {
    color: var(--blue);
    font-weight: 400;
}

.pps-hero h1 {
    max-width: 12ch;
    margin: 18px 0 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(44px, 7vw, 86px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.pps-dek {
    max-width: 58ch;
    margin: 20px 0 0;
    color: var(--dek);
    font-family: var(--sans);
    font-size: max(15px, calc(var(--fs-article) - 1px));
    line-height: 1.85;
}

.pps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.pps-tags li {
    padding: 5px 8px;
    border: 1px dotted var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.pps-paid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin: 24px 0 0;
}

.pps-paid span {
    padding: 4px 8px;
    border: 1px dotted var(--yellow);
    color: var(--yellow);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.pps-paid strong {
    color: var(--yellow);
    font-family: var(--mono);
    font-size: 30px;
    line-height: 1;
}

.pps-paid del {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 14px;
    text-decoration: line-through;
}

.pps-paid em {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    font-style: normal;
}

.pps-hero-cover {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.pps-hero-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pps-hero-cover figcaption {
    padding: 8px 10px;
    border-top: 1px dotted var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.pps-hero-cover-empty {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.pps-hero-cover-empty span {
    color: var(--yellow);
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 700;
}

.pps-hero-cover-empty em {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.08em;
}

.pps-section {
    padding-top: 46px;
    padding-bottom: 46px;
    border-bottom: 1px dotted var(--line);
}

.pps-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dotted var(--blue);
}

.pps-section-head .eyebrow {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-align: right;
}

.pps-section-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.pps-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pps-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    overflow: hidden;
    padding: 20px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.pps-feature-no {
    position: absolute;
    top: -8px;
    right: 10px;
    z-index: 0;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 82px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
    opacity: 0.14;
    pointer-events: none;
    user-select: none;
}

.pps-feature-card h3,
.pps-feature-card p {
    position: relative;
    z-index: 1;
}

.pps-feature-card h3 {
    margin: 22px 0 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.pps-feature-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.pps-changelog .pps-body {
    max-width: 860px;
}

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

.pps-license-card {
    padding: 20px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.pps-license-card h3 {
    margin: 14px 0 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.pps-license-list {
    margin: 14px 0 0;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.pps-license-list li + li {
    margin-top: 6px;
}

.pps-license-list strong {
    color: var(--ink);
}

.pps-license-list a {
    color: var(--blue-ink);
    text-decoration-color: var(--blue);
}

.pps-end {
    padding-top: 46px;
    padding-bottom: 76px;
}

.pps-end-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
}

.pps-end-info h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.pps-end-info p {
    margin: 12px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.pps-buy {
    text-align: right;
}

.pps-buy h2 {
    margin: 10px 0 0;
    color: var(--yellow);
    font-family: var(--mono);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.pps-buy h2 del {
    margin-left: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

.pps-buy h2 small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.pps-buy p {
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.pps-buy .btn {
    margin-top: 16px;
    padding: 10px 14px;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .pps-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .pps-hero-cover {
        max-width: 100%;
    }

    .pps-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .pps-hero {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .pps-statusbar {
        gap: 6px 14px;
        margin-bottom: 22px;
        padding-bottom: 10px;
        font-size: 8px;
    }

    .pps-hero-cover-empty {
        min-height: 180px;
    }

    .pps-hero h1 {
        font-size: clamp(42px, 14vw, 64px);
    }

    .pps-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .pps-section-head {
        gap: 8px;
        margin-bottom: 16px;
    }

    .pps-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pps-feature-card {
        min-height: 0;
        padding: 16px;
    }

    .pps-feature-no {
        top: -6px;
        right: 8px;
        font-size: 64px;
    }

    .pps-feature-card h3 {
        margin-top: 16px;
    }

    .pps-end {
        padding-top: 32px;
        padding-bottom: 54px;
    }

    .pps-end-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .pps-license-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pps-buy {
        text-align: left;
    }

    .pps-buy .btn {
        width: 100%;
        text-align: center;
    }
}

/* Home 05 / BOOKS */
.books-home {
    grid-column: span 12;
}

.home-books-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.home-book {
    position: relative;
    display: block;
    min-width: 0;
    text-decoration: none;
}

.home-book-cover {
    position: relative;
    display: block;
    overflow: visible;
    aspect-ratio: 2 / 3;
    border: 1px dotted var(--line-strong);
    border-radius: 1px 3px 3px 1px;
    background: var(--panel);
    box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.22), 0 12px 24px rgba(0, 0, 0, 0.18);
    transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 380ms ease;
}

.home-book-cover::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.08) 45%, rgba(0, 0, 0, 0.12));
    border-radius: 1px 0 0 1px;
    pointer-events: none;
}

.home-book-cover::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -9px;
    left: -5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

.home-book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 1px 3px 3px 1px;
}

.home-book:hover .home-book-cover {
    border-color: var(--line-strong);
    transform: translateY(-5px) rotate(-0.7deg);
    box-shadow: 7px 12px 0 rgba(0, 0, 0, 0.26), 0 18px 30px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1100px) {
    .books-home {
        display: none;
    }
}

/* PPS page cache metrics */
.pps-cache-foot {
    margin: 18px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: max(10px, var(--fs-micro));
    line-height: 1.8;
}

/* PPS page feature points */
.pps-feature-card .pps-feature-points {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.pps-feature-card .pps-feature-points li {
    position: relative;
    padding-left: 10px;
    color: var(--muted);
    font-family: var(--body);
    font-size: max(12px, var(--fs-micro));
    line-height: 1.55;
}

.pps-feature-card .pps-feature-points li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 700;
}

/* PPS page: four-column core features, glow and entrance motion */
.pps-page {
    position: relative;
    isolation: isolate;
}

.pps-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(620px 420px at 82% 4%, rgba(255, 240, 0, 0.065), transparent 72%),
        radial-gradient(520px 520px at 8% 34%, rgba(19, 174, 103, 0.055), transparent 74%);
    pointer-events: none;
}

.pps-page > * {
    position: relative;
    z-index: 1;
}

.pps-feature-grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pps-feature-grid-six .pps-feature-card {
    min-height: 154px;
    padding: 14px 14px 16px;
}

.pps-feature-grid-six .pps-feature-no {
    top: -4px;
    right: 8px;
    font-size: 58px;
    opacity: 0.12;
}

.pps-feature-grid-six .pps-feature-card h3 {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.3;
}

.pps-feature-grid-six .pps-feature-card .pps-feature-points {
    gap: 3px;
    margin-top: 8px;
}

.pps-feature-grid-six .pps-feature-card .pps-feature-points li {
    font-size: max(11px, var(--fs-micro));
    line-height: 1.5;
}

@media (min-width: 1280px) {
    .pps-feature-grid-six {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .pps-feature-grid-six .pps-feature-card {
        min-height: 150px;
        padding: 13px 13px 15px;
    }
}

@media (max-width: 1100px) {
    .pps-feature-grid-six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 800px) {
    .pps-feature-grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .pps-feature-grid-six {
        grid-template-columns: 1fr;
    }
}

@keyframes pps-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pps-glow {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.9;
    }
}

.pps-hero-copy,
.pps-hero-cover,
.pps-section-head,
.pps-feature-card,
.pps-license-card,
.pps-end {
    animation: pps-rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pps-hero-cover {
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        0 0 56px rgba(255, 240, 0, 0.05);
}

.pps-feature-card,
.pps-license-card {
    transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.pps-feature-card:hover,
.pps-license-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(255, 240, 0, 0.045);
}

.pps-page::before {
    animation: pps-glow 7s ease-in-out infinite;
}

.pps-feature-grid .pps-feature-card:nth-child(1) { animation-delay: 60ms; }
.pps-feature-grid .pps-feature-card:nth-child(2) { animation-delay: 100ms; }
.pps-feature-grid .pps-feature-card:nth-child(3) { animation-delay: 140ms; }
.pps-feature-grid .pps-feature-card:nth-child(4) { animation-delay: 180ms; }
.pps-feature-grid .pps-feature-card:nth-child(5) { animation-delay: 220ms; }
.pps-feature-grid .pps-feature-card:nth-child(6) { animation-delay: 260ms; }
.pps-feature-grid .pps-feature-card:nth-child(7) { animation-delay: 300ms; }
.pps-feature-grid .pps-feature-card:nth-child(8) { animation-delay: 340ms; }
.pps-feature-grid .pps-feature-card:nth-child(9) { animation-delay: 380ms; }
.pps-feature-grid .pps-feature-card:nth-child(10) { animation-delay: 420ms; }
.pps-feature-grid .pps-feature-card:nth-child(11) { animation-delay: 460ms; }
.pps-feature-grid .pps-feature-card:nth-child(12) { animation-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
    .pps-hero-copy,
    .pps-hero-cover,
    .pps-section-head,
    .pps-feature-card,
    .pps-license-card,
    .pps-end,
    .pps-page::before {
        animation: none !important;
    }

    .pps-feature-card,
    .pps-license-card {
        transition: none !important;
    }
}

/* PPS changelog + end sidebar */
.pps-changelog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 32px;
    align-items: start;
}

.pps-changelog-main {
    min-width: 0;
}

.pps-changelog-side {
    position: sticky;
    top: 24px;
    align-self: start;
}

.pps-end-grid-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.pps-end-grid-side .pps-end-info,
.pps-end-grid-side .pps-buy {
    padding: 18px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.pps-end-grid-side .pps-end-info h2 {
    font-size: clamp(24px, 2.5vw, 32px);
}

.pps-end-grid-side .pps-buy {
    text-align: left;
}

.pps-end-grid-side .pps-buy h2 {
    font-size: clamp(28px, 3vw, 38px);
}

@media (max-width: 1000px) {
    .pps-changelog-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .pps-changelog-side {
        position: static;
    }

    .pps-end-grid-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pps-end-grid-side {
        grid-template-columns: 1fr;
    }
}

/* PPS changelog release dates */
.pps-release-date {
    display: inline-block;
    margin-left: 0.5em;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    vertical-align: 0.25em;
}

/* PPS page: background style cards */
.pps-bg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pps-bg-card {
    position: relative;
    display: flex;
    min-height: 190px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border: 1px dotted var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    isolation: isolate;
    transition: transform 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.pps-bg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: var(--tex-opacity, .2);
    pointer-events: none;
    transition: opacity 320ms ease;
}

.pps-bg-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(18, 18, 15, .12), rgba(18, 18, 15, .86));
    pointer-events: none;
}

.pps-bg-card-body,
.pps-bg-card-no {
    position: relative;
    z-index: 2;
}

.pps-bg-card-no {
    position: absolute;
    top: 12px;
    right: 14px;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
}

.pps-bg-card-body h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 20px;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.pps-bg-card-body p {
    max-width: 28ch;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.pps-bg-card-meta {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .04em;
}

.pps-bg-card-meta b {
    margin-left: 6px;
    padding: 2px 5px;
    border: 1px dotted var(--line-strong);
    border-radius: var(--radius);
    color: var(--yellow);
    font-weight: 400;
}

.pps-bg-card:hover {
    z-index: 3;
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3), 0 0 24px rgba(255, 240, 0, .05);
}

.pps-bg-card:hover::before {
    opacity: calc(var(--tex-opacity, .2) * 2.2);
}

.pps-bg-card-topo::before {
    background-image: url("../terrain.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    --tex-opacity: .18;
}

.pps-bg-card-paper::before {
    background-image: url("../paper.svg");
    background-size: 240px 240px;
    --tex-opacity: .16;
}

.pps-bg-card-grid::before {
    background-image:
        linear-gradient(rgba(240, 236, 226, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 236, 226, .055) 1px, transparent 1px),
        linear-gradient(rgba(240, 236, 226, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 236, 226, .022) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    --tex-opacity: .65;
}

.pps-bg-card-dot::before {
    background-image: radial-gradient(circle, rgba(240, 236, 226, .18) 1px, transparent 1.5px);
    background-size: 9px 9px;
    --tex-opacity: .45;
}

.pps-bg-card-aurora::before {
    inset: -10%;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(255, 240, 0, .22), transparent 44%),
        radial-gradient(ellipse at 84% 28%, rgba(19, 174, 103, .2), transparent 46%),
        radial-gradient(ellipse at 50% 88%, rgba(19, 174, 103, .14), transparent 50%);
    filter: blur(18px);
    --tex-opacity: .55;
}

.pps-bg-card-scan::before {
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(240, 236, 226, .055) 3px 4px);
    --tex-opacity: .5;
}

@media (max-width: 1100px) {
    .pps-bg-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pps-bg-card-grid {
        grid-template-columns: 1fr;
    }

    .pps-bg-card {
        min-height: 168px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pps-bg-card,
    .pps-bg-card::before {
        transition: none;
    }
}
