/*
 * PaddySpeaks — the library pages: /articles/, /sacred/, /explore/
 * (docs/HOMEPAGE-MAP-REDESIGN.md).
 *
 * These rules were the homepage's READ, LEARN and BUILD chapters until the
 * homepage became a map; they moved here with the markup, scoped to
 * body.ps-library instead of body.ps-library. Tokens and primitives still come
 * from lib/ps-chrome.css. Headings moved up one level (the page has its own
 * h1), so rules match both h3 and h4.
 */

/* ═══════════════════════ 1. PAGE HEAD ═══════════════════════ */

.ps-library .ps-lib { padding-bottom: var(--s-chapter); }
.ps-library .ps-lib-hero {
    padding: clamp(28px, 4vw, 56px) 0 var(--s-3);
    border-bottom: 2px solid var(--h-rule);
    margin-bottom: var(--s-4);
}
.ps-library .ps-lib-kicker { margin: 0 0 8px; color: var(--accent, var(--h-muted)); }
.ps-library .ps-lib-hero h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--h-ink);
}
.ps-library .ps-lib-hero .ps-deck { margin: 0 0 14px; }
.ps-library .ps-lib-jump { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.ps-library .ps-lib-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--h-ink);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 5px;
}
.ps-library .ps-lib-jump a:hover { text-decoration-color: currentColor; }
.ps-library .ps-subhead h2 {
    font-family: var(--font-display);
    font-size: var(--t-h2);
    font-weight: 700;
    color: var(--h-ink);
    margin: 0;
}
.ps-library [id] { scroll-margin-top: 72px; }
/* 151 rows: let the browser skip laying out the ones off screen. */
.ps-library .deck-card { content-visibility: auto; contain-intrinsic-size: auto 46px; }

/* Plain lists of links (tools, interactive essays) */
.ps-library .ps-lib-list { list-style: none; margin: 0; padding: 0; }
.ps-library .ps-lib-list li { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); line-height: 1.45; }
.ps-library .ps-lib-list a { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--h-ink); text-decoration: none; margin-right: .5em; }
.ps-library .ps-lib-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-library .ps-lib-list .ps-meta { display: inline; }
.ps-library .ps-lib-more { margin: var(--s-2) 0 0; }

/* The sacred page is the parchment band end to end. */
.ps-library .ps-lib-band.ps-learn { margin-top: 0; border-top: 0; }
.ps-library .ps-learn .ps-lib-hero { border-bottom-color: #3a2a16; }
.ps-library .ps-learn .ps-threshold { margin-top: 0; }

/* ═══════════════════════ 7. DATA LAB INDEX + TOOL ═══════════════════════ */

.ps-library .ps-lab { align-items: start; row-gap: var(--s-4); }
.ps-library .ps-lab-index { grid-column: 1 / span 8; }
.ps-library .ps-subhead-first { margin-top: 0; }
.ps-library .ps-lab-list { list-style: none; margin: 0; padding: 0; }
.ps-library .ps-lab-row {
    display: grid;
    grid-template-columns: 2rem 3.4rem minmax(0, 1fr) auto;
    grid-template-areas: "num mono text go" "num mono text data";
    column-gap: var(--s-2);
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.ps-library .ps-lab-num { grid-area: num; font-family: var(--font-mono); font-size: .8rem; color: var(--h-soft); padding-top: 4px; }
.ps-library .ps-lab-mono {
    grid-area: mono;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.4rem;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .02em;
    color: var(--j-build);
    transition: border-color var(--h-ease), color var(--h-ease);
}
.ps-library .ps-lab-row:hover .ps-lab-mono { border-color: var(--h-ink); color: var(--h-ink); }
.ps-library .ps-lab-text { grid-area: text; }
.ps-library .ps-lab-text h4, .ps-library .ps-lab-text h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--t-h2);
    font-weight: 700;
    line-height: 1.2;
}
.ps-library .ps-lab-text h4 a, .ps-library .ps-lab-text h3 a { color: var(--h-ink); text-decoration: none; }
.ps-library .ps-lab-row:hover h4 a, .ps-library .ps-lab-row:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ps-library .ps-lab-kw {
    margin: 3px 0 4px;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--j-build);
}
.ps-library .ps-lab-desc { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--h-muted); max-width: 58ch; }
.ps-library .ps-lab-go {
    grid-area: go;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: var(--t-meta);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--h-ink);
    padding-top: 4px;
}
.ps-library .ps-lab-data {
    grid-area: data;
    justify-self: end;
    align-self: end;
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--t-meta);
    color: var(--h-soft);
    white-space: nowrap;
    text-align: right;
}
.ps-library .ps-lab-live { display: block; color: var(--j-find); }
.ps-library .ps-lab-live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}

/* Tool: utility + what it does with your data + one action */
.ps-library .ps-tool {
    grid-column: 9 / span 4;
    padding: var(--s-3);
    background: var(--h-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--j-build);
}
.ps-library .ps-tool .ps-eyebrow { margin: 0; color: var(--j-build); }
.ps-library .ps-tool h2, .ps-library .ps-tool h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: var(--t-h2); font-weight: 700; }
.ps-library .ps-tool h2 a { color: var(--h-ink); text-decoration: none; }
.ps-library .ps-tool:hover h2 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ps-library .ps-tool-purpose { margin: 0 0 14px; font-size: .98rem; line-height: 1.5; color: var(--h-muted); }
.ps-library .ps-tool-data { margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid var(--color-border); }
.ps-library .ps-tool-data dt {
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-ink);
}
.ps-library .ps-tool-data dd { margin: 2px 0 10px; font-size: .92rem; line-height: 1.45; color: var(--h-muted); }
.ps-library .ps-tool-cta { font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink); }

/* ═══════════════════════ 7b. READ: VISUAL ESSAYS, ARCHIVE, COLLECTION ═══════════════════════ */

/* Visual essays: covers are motifs, not a second copy of the headline. Flat. */
.ps-library .ps-visual-grid { row-gap: var(--s-3); align-items: start; }
.ps-library .ps-vis-lead { grid-column: 1 / span 7; }
.ps-library .ps-vis-stack { grid-column: 8 / span 5; display: grid; gap: var(--s-3); }
.ps-library .ps-vis-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color var(--h-ease);
}
.ps-library .ps-vis:hover .ps-vis-cover { border-color: var(--h-ink); }
.ps-library .ps-vis-lead .ps-vis-cover { aspect-ratio: 2 / 1; }
.ps-library .ps-vis-body h4, .ps-library .ps-vis-body h3 {
    margin: 6px 0 6px;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
}
.ps-library .ps-vis-body h4 a, .ps-library .ps-vis-body h3 a { color: var(--h-ink); text-decoration: none; }
.ps-library .ps-vis:hover h4 a, .ps-library .ps-vis:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ps-library .ps-vis-lead .ps-vis-body { padding-top: var(--s-2); }
.ps-library .ps-vis-lead h4, .ps-library .ps-vis-lead h3 { font-size: var(--t-h1); }
.ps-library .ps-vis-small { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s-2); align-items: start; }
.ps-library .ps-vis-small .ps-vis-cover { aspect-ratio: 1 / 1; }
.ps-library .ps-vis-small h4, .ps-library .ps-vis-small h3 { font-size: var(--t-h2); }
.ps-library .ps-vis-body .ps-eyebrow { margin: 0; }
.ps-library .ps-vis-deck { margin: 0 0 8px; font-size: .98rem; line-height: 1.5; color: var(--h-muted); max-width: 60ch; }
.ps-library .ps-vis-deck code { font-family: var(--font-mono); font-size: .88em; }
.ps-library .ps-vis .ps-meta { margin: 0; }

.ps-library .ps-cover-claude {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 12%;
    background:
        linear-gradient(rgba(154, 79, 18, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(154, 79, 18, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        #f3eee4;
    font-family: var(--font-mono);
    color: var(--h-ink);
}
.ps-library .ps-cover-claude-root { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 500; color: #9a4f12; letter-spacing: -.02em; }
.ps-library .ps-cover-claude-tree { font-size: clamp(.8rem, .7rem + .35vw, 1rem); line-height: 1.7; color: var(--h-muted); }
.ps-library .ps-cover-lang {
    flex-direction: column;
    gap: 2px;
    background: #fbf6ec;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--h-ink);
}
.ps-library .ps-cover-lang span:nth-child(2) { color: #b04124; font-weight: 700; }
.ps-library .ps-cover-gita { background: radial-gradient(circle at 50% 45%, #3a2a16 0%, #1a1510 70%); border-color: #1a1510; }
.ps-library .ps-cover-gita span { font-size: 3rem; color: #e0a458; line-height: 1; }

/* Archive: the deck cards (unchanged markup) rendered as a dated list.
   Row: date · title · kind · time. Images stay unloaded (display:none). */
.ps-library .ps-archive .deck-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 var(--s-2);
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}
.ps-library .ps-archive .deck-filter-btn {
    min-height: 44px;
    padding: 10px 16px 9px;
    margin-bottom: -1px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-muted);
    box-shadow: none;
    transition: color var(--h-ease), border-color var(--h-ease);
}
.ps-library .ps-archive .deck-filter-btn:first-child { padding-left: 0; }
.ps-library .ps-archive .deck-filter-btn:hover { color: var(--h-ink); background: none; border-bottom-color: var(--color-border); }
.ps-library .ps-archive .deck-filter-btn.active,
.ps-library .ps-archive .deck-filter-btn[aria-pressed="true"] { color: var(--h-ink); background: none; border-bottom-color: var(--h-ink); }
.ps-library .ps-archive .deck-filter-btn .filter-count { color: var(--h-soft); opacity: 1; font-size: inherit; }

.ps-library .ps-archive .deck-grid { display: block; max-width: none; margin: 0; }
.ps-library .ps-archive .deck-card {
    display: grid;
    grid-template-columns: 8.2rem minmax(0, 1fr) minmax(0, 12rem) 4.4rem;
    grid-template-areas: "date title kind time";
    column-gap: var(--s-2);
    align-items: baseline;
    padding: 11px 0 10px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
    text-decoration: none;
    color: var(--h-ink);
    contain-intrinsic-size: auto 46px;
    transition: background-color var(--h-ease);
}
.ps-library .ps-archive .deck-card:hover { transform: none; box-shadow: none; background-color: color-mix(in srgb, var(--h-ink) 3%, transparent); }
.ps-library .ps-archive .deck-card[data-hidden="true"] { display: none !important; }
.ps-library .ps-archive .deck-card-image,
.ps-library .ps-archive .deck-card-body,
.ps-library .ps-archive .deck-card .article-meta { display: contents !important; }  /* beats the covers' inline display:flex */
.ps-library .ps-archive .deck-card-image > :not(.deck-card-tag),
.ps-library .ps-archive .deck-card-image::before,
.ps-library .ps-archive .deck-card-image::after,
.ps-library .ps-archive .deck-card-body > p,
.ps-library .ps-archive .deck-card .article-meta .dot { display: none !important; }   /* covers carry inline display */
.ps-library .ps-archive .deck-card-body h4, .ps-library .ps-archive .deck-card-body h3 {
    grid-area: title;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--h-ink);
}
.ps-library .ps-archive .deck-card:hover h4, .ps-library .ps-archive .deck-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ps-library .ps-archive .deck-card-tag {
    grid-area: kind;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--h-soft) !important;   /* some cards carry inline tag colours */
    background: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: none;
}
.ps-library .ps-archive .article-meta span:first-child {
    grid-area: date;
    font-family: var(--font-mono);
    font-size: var(--t-meta);
    color: var(--h-muted);
    white-space: nowrap;
}
.ps-library .ps-archive .article-meta span:last-child {
    grid-area: time;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: var(--t-meta);
    color: var(--h-soft);
    white-space: nowrap;
}
.ps-library .ps-archive .deck-load-more { margin: var(--s-3) 0 0; text-align: left; }
.ps-library .ps-archive .deck-load-more-btn {
    min-height: 44px;
    padding: 10px 18px;
    background: none;
    border: 1px solid var(--h-ink);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-ink);
    cursor: pointer;
    transition: background var(--h-ease), color var(--h-ease);
}
.ps-library .ps-archive .deck-load-more-btn:hover { background: var(--h-ink); color: #fbfaf7; }

/* Collection: a reading list, not a wall of cards */
.ps-library .ps-collection-lede { margin: 0 0 var(--s-3); }
.ps-library .ps-collection-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: var(--s-3) var(--s-4);
}
.ps-library .ps-collection-group h4, .ps-library .ps-collection-group h3 {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: var(--t-eyebrow);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--h-ink);
}
.ps-library .ps-collection-group ul { list-style: none; margin: 0; padding: 0; }
.ps-library .ps-collection-group li { padding: 5px 0; line-height: 1.4; }
.ps-library .ps-collection-group a { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--h-ink); text-decoration: none; }
.ps-library .ps-collection-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-library .ps-collection-group .ps-meta { margin-left: .35em; white-space: nowrap; }

/* ═══════════════════════ 7c. LEARN: A DIFFERENT ROOM IN THE SAME HOUSE ═══════════════════════ */

/* The sacred texts keep their own language — mandala, Om, saffron, Devanagari
   and Tamil — on a parchment band with a calmer rhythm. Same type, same rules. */
.ps-library .ps-learn {
    margin-top: var(--s-chapter);
    padding: var(--s-2) 0 var(--s-chapter);
    background:
        radial-gradient(60rem 30rem at 50% 0%, rgba(154, 79, 18, .07), transparent 70%),
        #f1eadc;
    border-top: 1px solid #e2d6bf;
    border-bottom: 1px solid #e2d6bf;
    --color-border: #d9cbb0;
    --color-border-light: #e6dcc7;
    --color-cream: #e9dfcb;
}
.ps-library .ps-learn .ps-threshold { margin: var(--s-4) auto var(--s-4); padding: var(--s-4) 0; max-width: 46rem; }
.ps-library .ps-learn .ps-threshold blockquote { color: var(--h-ink); }
.ps-library .ps-learn .ps-threshold figcaption { margin-top: 12px; text-align: center; }
.ps-library .ps-learn .ps-threshold cite { font-family: var(--font-mono); font-style: normal; font-size: var(--t-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--h-muted); }
.ps-library .ps-learn .pull-quote-divider::before,
.ps-library .ps-learn .pull-quote-divider::after { background: var(--j-learn); }
.ps-library .ps-learn .ps-chapter { margin-top: var(--s-4); }
.ps-library .ps-sacred-lede { margin: 0 0 var(--s-3); }

.ps-library .sacred-view-toggle { border: 0; background: none; border-radius: 0; padding: 0; gap: 0; margin: 0 0 var(--s-4); border-bottom: 1px solid var(--color-border); width: auto; justify-content: flex-start; }
.ps-library .sacred-view-btn {
    min-height: 44px;
    padding: 10px 18px 9px;
    margin-bottom: -1px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    font-size: var(--t-eyebrow);
    color: var(--h-muted);
    box-shadow: none;
}
.ps-library .sacred-view-btn:first-child { padding-left: 0; }
.ps-library .sacred-view-btn.active { background: none; box-shadow: none; color: var(--h-ink); border-bottom-color: var(--j-learn); }
.ps-library .mandala-category-label { font-size: 11px; opacity: 1; color: var(--j-learn); font-weight: 500; }
.ps-library .mandala-count { color: var(--h-muted); font-size: 11px; }
.ps-library .mandala-node-tooltip { font-size: 11.5px; }

/* Devotional music: script cue + tradition + entry, no box */
.ps-library .ps-scripture {
    display: grid;
    grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
    gap: var(--s-4);
    align-items: center;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--color-border);
}
.ps-library .ps-scripture-script {
    margin: 0;
    font-family: "Noto Sans Telugu", "Nirmala UI", "Gautami", serif;
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
    line-height: 1.3;
    color: var(--j-learn);
    text-align: center;
    padding: var(--s-2) 0;
    border-right: 1px solid var(--color-border);
}
.ps-library .ps-scripture-text .ps-eyebrow { margin: 0; color: var(--j-learn); }
.ps-library .ps-scripture h4, .ps-library .ps-scripture h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: var(--t-h2); font-weight: 700; }
.ps-library .ps-scripture h4 a, .ps-library .ps-scripture h3 a { color: var(--h-ink); text-decoration: none; }
.ps-library .ps-scripture:hover h4 a, .ps-library .ps-scripture:hover h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ps-library .ps-scripture .ps-deck { margin: 0 0 10px; }
.ps-library .ps-scripture-cta { margin: 0; font-family: var(--font-mono); font-size: var(--t-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--h-ink); }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */

@media (max-width: 1100px) {
    .ps-library .ps-vis-lead, .ps-library .ps-vis-stack { grid-column: 1 / span 12; }
    .ps-library .ps-vis-stack { grid-template-columns: 1fr 1fr; }
    .ps-library .ps-lab-index, .ps-library .ps-tool { grid-column: 1 / span 12; }
}

@media (max-width: 768px) {
    .ps-library .ps-scripture { grid-template-columns: 1fr; gap: 8px; }
    /* Phone cards: a two-column index of script cue, name and tradition. */
    .ps-library .sacred-cards-container { padding: 0 !important; margin: 0 !important; }
    .ps-library .sacred-cards-grid { grid-template-columns: 1fr 1fr !important; gap: 0 12px !important; padding: 0 !important; }
    .ps-library .sacred-card {
        display: grid !important;
        grid-template-columns: 2.2rem minmax(0, 1fr);
        grid-template-areas: "sym name" "sym cat";
        column-gap: 8px;
        align-items: center;
        min-height: 56px;
        padding: 8px 0 !important;
        background: none !important;
        border: 0 !important;
        border-bottom: 1px solid var(--color-border) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
        overflow: visible !important;
        transform: none !important;
    }
    .ps-library .sacred-card::before, .ps-library .sacred-card::after { display: none !important; }
    .ps-library .sacred-card-symbol { grid-area: sym; font-size: 1.25rem !important; margin: 0 !important; padding-left: 3px; opacity: 1 !important; width: auto !important; height: auto !important; }
    .ps-library .sacred-card-name { grid-area: name; font-size: .95rem !important; overflow-wrap: anywhere; line-height: 1.2 !important; margin: 0 !important; }
    .ps-library .sacred-card-category { grid-area: cat; font-size: 10.5px !important; margin: 0 !important; letter-spacing: .08em !important; }
    .ps-library .sacred-card-sanskrit, .ps-library .sacred-card-desc, .ps-library .sacred-card-quote { display: none !important; }
    .ps-library .ps-scripture-script { border-right: 0; text-align: left; padding: 0; }
    .ps-library .ps-learn .ps-threshold blockquote { font-size: 1.25rem; }
    .ps-library .ps-vis-stack { grid-template-columns: 1fr; }
    .ps-library .ps-vis-small { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .ps-library .ps-vis-small .ps-vis-deck { display: none; }
    .ps-library .ps-cover-lang { font-size: .7rem; }
    .ps-library .ps-cover-gita span { font-size: 2.2rem; }
    .ps-library .ps-vis-lead .ps-vis-cover { aspect-ratio: 16 / 9; }
    .ps-library .ps-vis-lead h4, .ps-library .ps-vis-lead h3 { font-size: 1.45rem; }
    .ps-library .ps-archive .deck-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: calc(-1 * var(--h-gutter));
        margin-right: calc(-1 * var(--h-gutter));
        padding: 0 var(--h-gutter);
    }
    .ps-library .ps-archive .deck-filters::-webkit-scrollbar { display: none; }
    .ps-library .ps-archive .deck-filter-btn { white-space: nowrap; flex: 0 0 auto; }
    .ps-library .ps-archive .deck-card {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "title title" "date time";
        row-gap: 3px;
        padding: 12px 0;
    }
    .ps-library .ps-archive .deck-card-tag { display: none; }
    .ps-library .ps-archive .article-meta span:last-child { justify-self: end; }
    .ps-library .ps-lab-row {
        grid-template-columns: 2.6rem minmax(0, 1fr);
        grid-template-areas: "mono text" "mono data";
        row-gap: 6px;
        padding: 14px 0;
    }
    .ps-library .ps-lab-num, .ps-library .ps-lab-go { display: none; }
    .ps-library .ps-lab-mono { height: 2.6rem; font-size: .72rem; }
    .ps-library .ps-lab-desc { display: none; }
    .ps-library .ps-lab-data { justify-self: start; text-align: left; white-space: normal; }
    .ps-library .ps-lab-live { display: inline; margin-right: .6em; }
    .ps-library .ps-lib-list .ps-meta { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .ps-library *, .ps-library *::before, .ps-library *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
