/*
Theme Name: Malcolm XD Clean
Theme URI: https://malcolmxd.pl/
Author: Malcolm XD
Description: Lekki motyw bez buildera, odtwarzający układ oryginalnej strony Malcolm XD.
Version: 1.5.3
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: malcolmxd-clean
*/

:root {
    --mx-bg: #000;
    --mx-fg: #fff;
    --mx-muted: #969696;
    --mx-yellow: #f4d239;
    --mx-green: #18b98b;
    --mx-red: #ff5b57;
    --mx-line: #262626;
    --mx-sidebar: 132px;
    --mx-gutter: clamp(2rem, 4vw, 4.5rem);
    color-scheme: dark;
}

/* Expandable books, audio and pasta lists */

.archive-heading {
    max-width: 1120px;
    padding: clamp(7.5rem, 13vh, 10rem) var(--mx-gutter) clamp(3rem, 7vw, 6rem) 44px;
}

.archive-heading h1 {
    max-width: 860px;
    margin: 0 0 1rem;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .88;
    text-transform: uppercase;
}

.archive-heading p {
    max-width: 650px;
    margin: 0;
    color: #c9c9c9;
    line-height: 1.55;
}

.content-accordion {
    padding: 0 var(--mx-gutter) 6rem 44px;
}

.content-accordion details {
    border-top: 1px solid var(--mx-line);
}

.content-accordion details:last-child {
    border-bottom: 1px solid var(--mx-line);
}

.content-accordion summary {
    display: grid;
    min-height: 104px;
    padding: 1rem 0;
    cursor: pointer;
    align-items: center;
    list-style: none;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 1rem;
}

.content-accordion summary::-webkit-details-marker {
    display: none;
}

.content-accordion details[open] > summary {
    position: sticky;
    top: 58px;
    z-index: 30;
    margin: 0 -.75rem;
    padding-right: .75rem;
    padding-left: .75rem;
    border-bottom: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(12px);
}

body.admin-bar .content-accordion details[open] > summary {
    top: 90px;
}

.content-accordion .accordion-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.content-accordion .accordion-title small {
    margin-bottom: .35rem;
    color: var(--mx-muted);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .11em;
}

.content-accordion summary strong {
    font-size: clamp(1.85rem, 4.2vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: .98;
    text-transform: uppercase;
}

.content-accordion summary:hover,
.content-accordion summary:focus-visible {
    color: var(--mx-green);
}

.content-accordion summary i {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0;
    transform: none;
    transition: color .2s ease, border-color .2s ease;
}

.content-accordion summary i::before,
.content-accordion summary i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1px;
    content: "";
    background: currentColor;
    transform: translate(-50%, -50%);
    transform-origin: center;
    transition: opacity .18s ease;
}

.content-accordion summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.content-accordion details[open] summary i {
    color: var(--mx-green);
    border-color: var(--mx-green);
    transform: none;
}

.content-accordion details[open] summary i::after {
    opacity: 0;
}

.accordion-panel {
    padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(3rem, 7vw, 6rem) 78px;
}

.accordion-copy {
    max-width: 760px;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.6;
}

.accordion-copy p,
.audio-expanded-copy p {
    margin: 0 0 1.1em;
}

.accordion-copy .text-link,
.audio-expanded-copy .text-link {
    margin-top: 1.5rem;
}

.book-accordion-panel {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: clamp(2rem, 6vw, 7rem);
}

.book-accordion-panel figure {
    max-width: 560px;
    margin: 0;
    justify-self: end;
}

.book-accordion-panel img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}

.audio-accordion summary {
    grid-template-columns: 86px minmax(0, 1fr) 48px;
}

.audio-summary-cover {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 2px;
    object-fit: cover;
}

.audio-accordion summary strong {
    font-size: clamp(1.7rem, 3.5vw, 3.9rem);
}

.audio-accordion-panel {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: clamp(2rem, 5vw, 6rem);
}

.audio-expanded-copy {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    line-height: 1.55;
}

.audio-expanded-copy > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.audio-partner {
    display: block;
    margin-bottom: 1rem;
    color: var(--mx-muted);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.audio-player-shell {
    display: flex;
    min-height: 190px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid #2f2f2f;
    background: #0d0d0d;
    flex-direction: column;
    justify-content: space-between;
}

.audio-player-shell > span {
    margin-bottom: 2rem;
    color: var(--mx-green);
    font-size: .7rem;
    letter-spacing: .14em;
}

.audio-player-shell audio {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 920px) {
    .archive-heading,
    .content-accordion {
        padding-left: var(--mx-gutter);
    }

    .content-accordion details[open] > summary {
        top: 134px;
    }

    body.admin-bar .content-accordion details[open] > summary {
        top: 180px;
    }

    .book-accordion-panel,
    .audio-accordion-panel {
        grid-template-columns: 1fr;
    }

    .book-accordion-panel figure {
        width: min(100%, 520px);
        justify-self: start;
        order: -1;
    }
}

@media (max-width: 680px) {
    .archive-heading {
        padding-top: 8rem;
    }

    .archive-heading h1 {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .content-accordion summary {
        min-height: 82px;
        grid-template-columns: minmax(0, 1fr) 38px;
        gap: .65rem;
    }

    .content-accordion summary strong {
        font-size: clamp(1.55rem, 8vw, 2.5rem);
    }

    .content-accordion summary i {
        width: 34px;
        height: 34px;
    }

    .content-accordion summary i::before,
    .content-accordion summary i::after {
        width: 12px;
    }

    .accordion-panel,
    .pasty-accordion-body {
        padding-left: 0;
    }

    .audio-accordion summary {
        grid-template-columns: 58px minmax(0, 1fr) 34px;
        gap: .55rem;
    }

    .audio-summary-cover {
        width: 54px;
        height: 54px;
    }

    .audio-accordion summary strong {
        font-size: clamp(1.25rem, 6.5vw, 2rem);
    }

    .audio-expanded-copy {
        grid-template-columns: 1fr;
    }

    .audio-expanded-copy > img {
        width: min(70vw, 260px);
    }

    .audio-player-shell {
        min-height: 150px;
    }
}

@media (max-width: 920px) {
    .pasty-intro img {
        order: initial !important;
    }
}

/* Classic home with the persistent side navigation */
body.home .site-footer {
    display: none;
}

body.home .site-main {
    min-height: 100vh;
}

.home-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    color: #f2ef00;
    background: #111;
}

.home-hero-background,
.home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-background {
    object-fit: cover;
    object-position: center;
}

.home-hero-shade {
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 26%),
        linear-gradient(0deg, rgba(0, 0, 0, .34), transparent 55%),
        linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 45%);
}

.home-wordmark,
.home-index-link,
.home-hero-menu,
.home-hero-caption,
.home-hero-utility {
    position: absolute;
    z-index: 2;
}

.home-wordmark,
.home-index-link,
.home-hero-menu a,
.home-hero-caption,
.home-hero-utility a {
    color: inherit;
    text-decoration: none;
}

.home-wordmark {
    top: 3.5vh;
    left: 4.5vw;
    font-size: clamp(2.5rem, 4.25vw, 5.4rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: 1;
}

.home-index-link {
    top: 5.5vh;
    right: 4.5vw;
    font-size: clamp(.9rem, 1.45vw, 1.9rem);
}

.home-hero-menu {
    bottom: 3.5vh;
    left: 4.5vw;
    display: flex;
    width: min(56vw, 1050px);
    flex-direction: column;
}

.home-hero-menu a {
    display: flex;
    width: fit-content;
    align-items: flex-start;
    font-size: clamp(3rem, 5.2vw, 6.6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
    transition: color .18s ease, transform .18s ease;
}

.home-hero-menu sup {
    margin: .08em 0 0 .25em;
    font-size: .22em;
    letter-spacing: 0;
    line-height: 1;
}

.home-hero-menu a:hover,
.home-hero-menu a:focus-visible,
.home-wordmark:hover,
.home-wordmark:focus-visible,
.home-index-link:hover,
.home-index-link:focus-visible,
.home-hero-caption:hover,
.home-hero-caption:focus-visible,
.home-hero-utility a:hover,
.home-hero-utility a:focus-visible {
    color: #fff;
}

.home-hero-menu a:hover,
.home-hero-menu a:focus-visible {
    transform: translateX(.18em);
}

.home-hero-caption {
    right: 19vw;
    bottom: 15vh;
    display: flex;
    width: min(31vw, 590px);
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(1rem, 1.45vw, 1.85rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.home-hero-caption i {
    margin-top: .75em;
    font-size: 1.7em;
    font-style: normal;
    line-height: 1;
}

.home-hero-utility {
    right: 4.5vw;
    bottom: 4.2vh;
    display: flex;
    gap: clamp(1.25rem, 2.2vw, 3rem);
    font-size: clamp(.9rem, 1.45vw, 1.9rem);
}

@media (max-width: 760px) {
    .home-hero {
        min-height: 560px;
    }

    .home-hero-background {
        object-position: center;
    }

    .home-wordmark {
        top: 1.5rem;
        left: 1.25rem;
        font-size: clamp(1.9rem, 9vw, 3rem);
    }

    .home-index-link {
        top: 2rem;
        right: 1.25rem;
        font-size: .8rem;
    }

    .home-hero-menu {
        bottom: 12rem;
        left: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    .home-hero-menu a {
        font-size: clamp(2.15rem, 10.5vw, 3.35rem);
        line-height: .94;
    }

    .home-hero-caption {
        right: auto;
        bottom: 4.7rem;
        left: 1.25rem;
        width: calc(100% - 2.5rem);
        max-width: 370px;
        font-size: clamp(.72rem, 3.2vw, .9rem);
        line-height: 1.16;
    }

    .home-hero-caption i {
        position: absolute;
        right: 0;
        bottom: 0;
        margin: 0;
        font-size: 2rem;
    }

    .home-hero-utility {
        right: 1.25rem;
        bottom: 1.2rem;
        font-size: .8rem;
        gap: 1rem;
    }
}

/* Shared archive/page heading rhythm */
.audio-intro,
.pasty-intro,
.video-heading,
.single-wrap {
    padding-top: clamp(8rem, 14vh, 10rem);
}

.audio-intro,
.pasty-intro {
    align-items: start;
}

.audio-intro h1,
.pasty-intro h1,
.video-heading h1,
.single-wrap > .entry-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .audio-intro,
    .pasty-intro,
    .video-heading,
    .single-wrap {
        padding-top: 8rem;
    }

    .audio-intro h1,
    .pasty-intro h1,
    .video-heading h1,
    .single-wrap > .entry-title {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }
}

@media (max-width: 920px) {
    .pasty-intro img {
        order: initial !important;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--mx-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--mx-bg);
    color: var(--mx-fg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

audio {
    width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: var(--mx-sidebar);
    pointer-events: none;
}

.site-brand,
.site-nav,
.mobile-menu-button {
    pointer-events: auto;
}

.site-brand {
    position: absolute;
    top: 20px;
    left: 34px;
    display: block;
    width: 60px;
    height: 60px;
}

.site-brand img {
    width: 100%;
    height: 100%;
}

.site-brand-wordmark,
.legacy-home-mobile,
.mobile-nav-contact {
    display: none;
}

.site-nav {
    position: absolute;
    top: 150px;
    left: 44px;
}

.site-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    min-height: 82px;
    padding: 10px 7px;
    border: 2px solid transparent;
    border-radius: 999px;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: color .2s ease, border-color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--mx-green);
}

.site-nav a[aria-current="page"] {
    color: #fff;
}

.mobile-menu-button {
    display: none;
}

.site-main {
    min-height: calc(100vh - 80px);
    padding-left: var(--mx-sidebar);
}

.content-toolbar {
    position: sticky;
    top: 0;
    z-index: 45;
    display: flex;
    min-height: 58px;
    padding: 11px var(--mx-gutter) 11px 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.admin-bar .content-toolbar {
    top: 32px;
}

.content-toolbar-primary,
.content-toolbar-adjacent {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: .5rem;
}

.section-pill,
.section-kicker,
.eyebrow,
.toolbar-button {
    display: inline-flex;
    min-height: 34px;
    padding: .42rem .78rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-pill,
.section-kicker,
.eyebrow {
    color: #fff;
}

.toolbar-button {
    border-color: #505050;
    color: #c8c8c8;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.toolbar-button:hover,
.toolbar-button:focus-visible {
    border-color: var(--mx-green);
    color: var(--mx-green);
}

.single-year {
    display: block;
    margin-bottom: .65rem;
    color: #fff;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-kicker,
.eyebrow {
    margin-bottom: 1.2rem;
}

.text-link,
.quiet-link {
    display: inline-flex;
    color: #fff;
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.text-link {
    padding-bottom: .25rem;
    border-bottom: 1px solid currentColor;
}

.quiet-link {
    color: var(--mx-muted);
    font-size: .75rem;
}

.text-link:hover,
.text-link:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible {
    color: var(--mx-green);
}

/* Home */

.legacy-home {
    min-height: 84vh;
    padding: 38px var(--mx-gutter) 4rem 44px;
}

.legacy-home-art {
    position: relative;
    display: block;
    width: min(76vw, 1080px);
    aspect-ratio: 1.82;
}

.legacy-home-background,
.legacy-home-info {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.legacy-home-background,
.legacy-home-info img {
    object-fit: contain;
}

.legacy-home-info {
    display: block;
    transition: transform .25s ease, filter .25s ease;
}

.legacy-home-info:hover,
.legacy-home-info:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.home-directory {
    display: grid;
    min-height: 720px;
    padding: clamp(5rem, 9vw, 9rem) var(--mx-gutter);
    border-top: 1px solid var(--mx-line);
    align-items: center;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 7vw, 8rem);
}

.home-directory-copy h2 {
    max-width: 680px;
    margin: 0 0 1.5rem;
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}

.home-directory-copy > p {
    max-width: 560px;
    color: #d2d2d2;
    font-size: 1.05rem;
}

.home-directory-links {
    max-width: 620px;
    margin-top: 2.5rem;
    border-top: 1px solid var(--mx-line);
}

.home-directory-links a {
    display: flex;
    padding: .8rem 0;
    border-bottom: 1px solid var(--mx-line);
    justify-content: space-between;
    text-decoration: none;
    font-size: clamp(1.5rem, 2.8vw, 2.75rem);
    text-transform: uppercase;
}

.home-directory-links a:hover,
.home-directory-links a:focus-visible {
    color: var(--mx-green);
}

.home-stickers {
    width: 100%;
    mix-blend-mode: screen;
}

/* Books archive */

.books-archive {
    display: grid;
    min-height: 100vh;
    padding: clamp(8rem, 13vh, 10rem) var(--mx-gutter) 4rem 44px;
    align-items: center;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(2rem, 5vw, 7rem);
}

.books-list {
    position: relative;
    z-index: 2;
}

.books-list > .section-kicker {
    display: none;
}

.book-list-item + .book-list-item {
    margin-top: 1.6rem;
}

.book-list-item > span {
    display: block;
    font-size: .8rem;
}

.book-list-item h2 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .96;
    text-transform: uppercase;
}

.book-list-item a {
    text-decoration: none;
}

.book-list-item a:hover,
.book-list-item a:focus-visible {
    color: var(--mx-green);
}

.books-preview {
    display: grid;
    min-height: 620px;
    place-items: center;
}

.books-preview img {
    width: min(100%, 720px);
    max-height: 78vh;
    object-fit: contain;
    transition: opacity .16s ease, transform .22s ease;
}

.books-preview img.is-changing {
    opacity: .3;
    transform: scale(.985);
}

/* Audio */

.audio-intro {
    display: grid;
    min-height: 600px;
    padding: clamp(8rem, 16vh, 10rem) var(--mx-gutter) 4rem 44px;
    align-items: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(3rem, 9vw, 10rem);
}

.audio-intro h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 400;
    letter-spacing: -.05em;
    line-height: .92;
    text-transform: uppercase;
}

.audio-intro p {
    max-width: 730px;
    margin: 1.7rem 0 0;
    color: #ddd;
    font-size: clamp(.95rem, 1.25vw, 1.2rem);
    text-align: justify;
}

.newonce-lockup {
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.newonce-lockup strong {
    display: inline-flex;
    color: #fff;
    align-items: center;
}

.newonce-lockup svg {
    display: block;
    width: clamp(109px, 11vw, 220px);
    height: auto;
}

.newonce-lockup i {
    width: .7em;
    height: .7em;
    margin-right: .22em;
    border-radius: 50%;
    background: #f20b19;
}

.newonce-lockup span {
    max-width: 390px;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audio-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #121212;
    aspect-ratio: 1;
    text-decoration: none;
}

.audio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.audio-card > span {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    padding: 3rem 1.8rem 1.5rem;
    opacity: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .94));
    flex-direction: column;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.audio-card small {
    margin-bottom: .35rem;
    color: var(--mx-yellow);
    letter-spacing: .12em;
}

.audio-card strong {
    font-size: clamp(1.25rem, 2vw, 2.2rem);
    line-height: 1;
    text-transform: uppercase;
}

.audio-card:hover img,
.audio-card:focus-visible img {
    filter: brightness(.72);
    transform: scale(1.025);
}

.audio-card:hover > span,
.audio-card:focus-visible > span {
    opacity: 1;
    transform: none;
}

/* Pasty */

.pasty-intro {
    display: grid;
    min-height: 610px;
    padding: clamp(7rem, 13vh, 9rem) var(--mx-gutter) 4rem 44px;
    align-items: center;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 8rem);
}

.pasty-intro h1,
.video-heading h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}

.pasty-intro p {
    max-width: 560px;
    color: #c7c7c7;
}

.pasty-intro img {
    width: 100%;
    mix-blend-mode: screen;
}

.pasty-accordion {
    padding: 0 var(--mx-gutter) 5rem 44px;
}

.pasty-accordion details {
    border-top: 1px solid var(--mx-line);
}

.pasty-accordion details:last-child {
    border-bottom: 1px solid var(--mx-line);
}

.pasty-accordion summary {
    display: grid;
    min-height: 104px;
    padding: 1rem 0;
    cursor: pointer;
    align-items: center;
    list-style: none;
    grid-template-columns: 62px 1fr 48px;
    gap: 1rem;
}

.pasty-accordion details[open] > summary {
    position: sticky;
    top: 58px;
    z-index: 30;
    margin: 0 -.75rem;
    padding-right: .75rem;
    padding-left: .75rem;
    border-bottom: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(12px);
}

body.admin-bar .pasty-accordion details[open] > summary {
    top: 90px;
}

.pasty-accordion summary::-webkit-details-marker {
    display: none;
}

.pasty-accordion summary > span {
    color: var(--mx-muted);
    font-size: .75rem;
}

.pasty-accordion summary strong {
    font-size: clamp(1.85rem, 4.2vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: .98;
    text-transform: uppercase;
}

.pasty-accordion summary i {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid #fff;
    border-radius: 50%;
    place-items: center;
    font-style: normal;
    font-size: 1.5rem;
    transition: transform .2s ease, border-color .2s ease;
}

.pasty-accordion summary:hover,
.pasty-accordion summary:focus-visible {
    color: var(--mx-green);
}

.pasty-accordion details[open] summary i {
    border-color: var(--mx-green);
    transform: rotate(45deg);
}

.pasty-accordion-body {
    max-width: 900px;
    padding: 1rem 0 4rem 78px;
    color: #fff;
    font-size: clamp(1.02rem, 1.25vw, 1.2rem);
}

.pasty-accordion-body p {
    margin: 0 0 1.1em;
}

.pasty-accordion-body .text-link {
    margin-top: 1.4rem;
}

/* Video */

.video-heading {
    padding: clamp(7rem, 13vh, 9rem) var(--mx-gutter) 1rem 44px;
}

.video-list {
    padding: 0 var(--mx-gutter) 6rem 44px;
}

.video-row {
    display: grid;
    min-height: 520px;
    padding: 5rem 0;
    align-items: center;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 8rem);
}

.video-row + .video-row {
    border-top: 1px solid var(--mx-line);
}

.video-row-copy > span {
    display: block;
    margin-bottom: 2.6rem;
    font-size: .8rem;
}

.video-row h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 5vw, 5.7rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .95;
    text-transform: uppercase;
}

.video-row h2 a {
    text-decoration: none;
}

.video-row h2 a:hover,
.video-row h2 a:focus-visible {
    color: var(--mx-green);
}

.video-row-media {
    display: block;
    overflow: hidden;
    background: #111;
    aspect-ratio: 774 / 435;
}

.video-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .25s ease, transform .3s ease;
}

.video-row-media:hover img,
.video-row-media:focus-visible img {
    filter: brightness(.8);
    transform: scale(1.02);
}

/* Single views */

.book-single,
.audio-single,
.video-single {
    display: grid;
    min-height: 100vh;
    padding: clamp(7rem, 13vh, 9rem) var(--mx-gutter) 5rem 44px;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(3rem, 7vw, 8rem);
}

.book-single h1,
.audio-single h1,
.video-single h1,
.pasty-single h1,
.single-wrap h1 {
    margin: 0;
    font-size: clamp(3rem, 6.2vw, 6.8rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}

.book-type {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--mx-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.book-single-cover img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.audio-single-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.audio-single-media {
    min-width: 0;
}

.audio-single-cover {
    width: 100%;
    margin: 0;
}

.single-partner {
    color: var(--mx-muted);
    text-transform: uppercase;
}

.audio-player {
    max-width: 720px;
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid var(--mx-line);
    background: #101010;
}

.audio-single .audio-player {
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
}

.video-single figure {
    margin: 0;
}

.video-single figure img {
    width: 100%;
}

.entry-content {
    max-width: 850px;
    margin-top: 1.8rem;
    color: #fff;
    font-size: clamp(1rem, 1.22vw, 1.18rem);
    overflow-wrap: anywhere;
}

.entry-content img,
.entry-content iframe {
    max-width: 100%;
}

.entry-content p {
    margin: 0 0 1.15em;
}

.entry-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: .16em;
}

.entry-content blockquote {
    margin: 2.5rem 0;
    color: var(--mx-red);
    font-size: clamp(1.3rem, 2vw, 2rem);
    text-align: center;
}

.entry-content .book-links,
.book-single .entry-content > p:first-child {
    display: flex;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
    gap: .7rem;
}

.entry-content .book-links a,
.book-single .entry-content > p:first-child a,
.source-link {
    display: inline-flex;
    padding: .6rem 1rem;
    border: 1px solid #fff;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
}

.entry-content .book-links a:hover,
.entry-content .book-links a:focus-visible,
.book-single .entry-content > p:first-child a:hover,
.book-single .entry-content > p:first-child a:focus-visible,
.source-link:hover,
.source-link:focus-visible {
    border-color: var(--mx-green);
    color: var(--mx-green);
}

.book-single .text-link {
    margin-top: 1.5rem;
}

.pasty-single,
.single-wrap {
    max-width: 1120px;
    padding: clamp(8rem, 14vh, 10rem) var(--mx-gutter) 6rem 44px;
}

.pasty-single .entry-content {
    max-width: 860px;
    margin-top: 3rem;
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}

.pasty-single .back-link {
    margin-left: 1.5rem;
}

.plain-archive,
.empty-state {
    padding: 9rem var(--mx-gutter) 5rem 44px;
}

/* Footer */

.site-footer {
    display: flex;
    min-height: 96px;
    margin-left: var(--mx-sidebar);
    padding: 2rem var(--mx-gutter) 2rem 44px;
    color: var(--mx-muted);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--mx-green);
}

@media (max-width: 1180px) {
    .book-single {
        min-height: 0;
        padding-top: 4rem;
        align-items: start;
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .book-single-copy {
        width: min(100%, 780px);
        min-width: 0;
    }

    .book-single-cover {
        order: -1;
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .book-single h1 {
        max-width: 100%;
        font-size: clamp(2.8rem, 8vw, 5.8rem);
        overflow-wrap: anywhere;
    }

    .book-single .entry-content {
        max-width: 720px;
    }
}

@media (max-width: 920px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .content-toolbar {
        top: 128px;
    }

    body.admin-bar .pasty-accordion details[open] > summary {
        top: 180px;
    }

    .site-header {
        right: 0;
        bottom: auto;
        width: 100%;
        height: 82px;
        background: rgba(0, 0, 0, .94);
        backdrop-filter: blur(10px);
    }

    .site-brand {
        top: 14px;
        left: 20px;
        width: 54px;
        height: 54px;
    }

    .mobile-menu-button {
        position: absolute;
        top: 22px;
        right: 20px;
        display: inline-flex;
        padding: .48rem .78rem;
        border: 1px solid #fff;
        border-radius: 999px;
        background: #000;
        color: #fff;
        font: inherit;
        font-size: .78rem;
        text-transform: uppercase;
    }

    .site-nav {
        position: fixed;
        inset: 82px 0 auto;
        display: none;
        padding: 1rem 1.25rem 1.4rem;
        border-top: 1px solid var(--mx-line);
        background: #000;
    }

    .site-header.menu-open .site-nav {
        display: block;
    }

    .site-nav ul {
        align-items: stretch;
        gap: 0;
    }

    .site-nav a {
        width: 100%;
        min-height: 0;
        padding: .65rem 0;
        border: 0;
        border-radius: 0;
        justify-content: flex-start;
        writing-mode: initial;
        transform: none;
    }

    .site-nav a[aria-current="page"] {
        color: var(--mx-green);
    }

    .site-main {
        padding-left: 0;
    }

    .content-toolbar {
        top: 82px;
        min-height: 52px;
        max-width: 100%;
        padding: 9px var(--mx-gutter);
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .content-toolbar::-webkit-scrollbar {
        display: none;
    }

    .content-toolbar-adjacent {
        margin-left: auto;
    }

    .content-toolbar--single {
        overflow: visible;
        flex-wrap: wrap;
        gap: .45rem;
    }

    .content-toolbar--single .content-toolbar-primary,
    .content-toolbar--single .content-toolbar-adjacent {
        width: 100%;
        margin-left: 0;
    }

    .content-toolbar--single .content-toolbar-adjacent .toolbar-button {
        min-width: 0;
        flex: 1;
    }

    .section-pill,
    .section-kicker,
    .eyebrow,
    .toolbar-button {
        min-height: 32px;
        padding: .4rem .68rem;
        font-size: .68rem;
    }

    .pasty-accordion details[open] > summary {
        top: 134px;
    }

    .legacy-home {
        min-height: 0;
        padding: 112px 1.25rem 3rem;
    }

    .legacy-home-art {
        width: 100%;
    }

    .home-directory,
    .books-archive,
    .audio-intro,
    .pasty-intro,
    .book-single,
    .audio-single,
    .video-single {
        grid-template-columns: 1fr;
    }

    .home-directory,
    .books-archive,
    .audio-intro,
    .pasty-intro,
    .video-heading,
    .book-single,
    .audio-single,
    .video-single,
    .pasty-single,
    .single-wrap,
    .plain-archive,
    .empty-state {
        padding-left: var(--mx-gutter);
    }

    .books-preview {
        min-height: 0;
        order: -1;
    }

    .books-preview img {
        max-height: 520px;
    }

    .book-single-cover {
        width: min(100%, 430px);
    }

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

    .pasty-intro img {
        order: -1;
    }

    .pasty-accordion,
    .video-list {
        padding-left: var(--mx-gutter);
    }

    .video-row {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-left: 0;
        padding-left: var(--mx-gutter);
    }
}

@media (max-width: 680px) {
    :root {
        --mx-gutter: 1.25rem;
    }

    .home-directory {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .home-directory-copy h2,
    .pasty-intro h1,
    .video-heading h1,
    .book-single h1,
    .audio-single h1,
    .video-single h1,
    .pasty-single h1,
    .single-wrap h1 {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .books-archive {
        padding-top: 7rem;
    }

    .book-list-item h2 {
        font-size: clamp(2rem, 10vw, 3.25rem);
    }

    .audio-intro {
        min-height: 0;
        padding-top: 8rem;
    }

    .audio-intro h1 {
        font-size: 3.4rem;
    }

    .audio-intro p {
        text-align: left;
    }

    .audio-grid {
        grid-template-columns: 1fr;
    }

    .audio-card > span {
        opacity: 1;
        transform: none;
    }

    .pasty-accordion summary {
        min-height: 82px;
        grid-template-columns: 38px 1fr 38px;
        gap: .65rem;
    }

    .pasty-accordion summary strong {
        font-size: clamp(1.55rem, 8vw, 2.5rem);
    }

    .pasty-accordion summary i {
        width: 34px;
        height: 34px;
    }

    .pasty-accordion-body {
        padding-left: 0;
    }

    .video-row {
        padding: 3rem 0;
    }

    .video-row-copy > span {
        margin-bottom: 1rem;
    }

    .video-row h2 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .book-single,
    .audio-single,
    .video-single {
        padding-top: 3.25rem;
    }

    .book-single-cover {
        width: min(86vw, 380px);
    }

    .book-single .entry-content .book-links a,
    .book-single .entry-content > p:first-child a {
        max-width: 100%;
        text-align: center;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* On the phone the directory remains available directly on the hero. */
@media (max-width: 920px) {
    body.home .site-header {
        top: 0;
        bottom: 0;
        width: 86px;
        height: 100svh;
        background: transparent;
        backdrop-filter: none;
    }

    body.admin-bar.home .site-header {
        top: 46px;
        height: calc(100svh - 46px);
    }

    body.home .mobile-menu-button {
        display: none;
    }

    body.home .site-nav {
        position: absolute;
        top: 106px;
        right: auto;
        bottom: auto;
        left: 20px;
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.home .site-nav ul {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    body.home .site-nav a {
        width: auto;
        min-height: 64px;
        padding: 6px;
        justify-content: center;
        font-size: .76rem;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    body.home .site-main {
        padding-left: 86px;
    }

    body.home .legacy-home {
        padding: 104px 1.25rem 4.5rem 1rem;
    }
}

/* Mobile home and navigation mirror the original Malcolm XD layout. */
@media (max-width: 920px) {
    body.home .site-header {
        position: absolute;
        inset: 0 0 auto;
        z-index: 60;
        width: 100%;
        height: 124px;
        background: #000;
    }

    body.admin-bar.home .site-header {
        top: 46px;
        height: 124px;
    }

    body.home .site-main {
        padding-left: 0;
    }

    body.home .site-brand {
        top: 34px;
        left: 30px;
        width: min(50vw, 300px);
        height: auto;
    }

    body.home .site-brand-icon {
        display: none;
    }

    body.home .site-brand-wordmark {
        display: block;
        width: 100%;
        height: auto;
    }

    body.home .mobile-menu-button {
        top: 25px;
        right: 23px;
        display: block;
        width: 62px;
        height: 62px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 0;
    }

    body.home .mobile-menu-button::after {
        content: '(≡)';
        font-family: Arial, Helvetica, sans-serif;
        font-size: 2.45rem;
        font-weight: 400;
        line-height: 1;
    }

    body.home .site-nav {
        display: none;
    }

    body.home .site-header.menu-open .mobile-menu-button::after {
        content: '(×)';
        font-size: 3.1rem;
        line-height: .8;
    }

    body.home .legacy-home {
        min-height: 0;
        padding: 124px 0 0;
    }

    body.admin-bar.home .legacy-home {
        padding-top: 170px;
    }

    body.home .legacy-home-art {
        width: 100%;
        height: calc(100svh - 124px);
        min-height: 640px;
        overflow: hidden;
        aspect-ratio: auto;
    }

    body.admin-bar.home .legacy-home-art {
        height: calc(100svh - 170px);
    }

    body.home .legacy-home-mobile {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    body.home .legacy-home-background {
        display: none;
    }

    body.home .legacy-home-info {
        top: 49%;
        right: -7vw;
        bottom: auto;
        left: auto;
        display: grid;
        width: 42vw;
        height: 42vw;
        min-width: 142px;
        min-height: 142px;
        max-width: 250px;
        max-height: 250px;
        place-items: center;
        transform: none;
    }

    body.home .legacy-home-info img {
        display: none;
    }

    body.home .legacy-home-info::before {
        position: absolute;
        inset: 0;
        content: '';
        background: var(--mx-red);
        clip-path: polygon(50% 0%, 57% 10%, 67% 3%, 71% 14%, 82% 9%, 82% 21%, 94% 21%, 89% 32%, 100% 39%, 90% 48%, 99% 57%, 87% 62%, 91% 74%, 79% 74%, 77% 87%, 66% 80%, 58% 92%, 50% 82%, 41% 92%, 34% 80%, 22% 87%, 23% 74%, 10% 74%, 14% 62%, 1% 57%, 10% 48%, 0% 39%, 11% 32%, 6% 21%, 18% 21%, 18% 9%, 29% 14%, 33% 3%, 43% 10%);
    }

    body.home .legacy-home-info::after {
        position: relative;
        content: 'INFO';
        color: #000;
        font-size: clamp(1.45rem, 6.4vw, 2.5rem);
        font-style: italic;
        font-weight: 700;
    }

    body.home .site-header.menu-open {
        position: fixed;
        height: 100svh;
        background: #000;
    }

    body.admin-bar.home .site-header.menu-open {
        height: calc(100svh - 46px);
    }

    body.home .site-header.menu-open .site-nav {
        position: absolute;
        inset: 138px 0 auto;
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.home .site-header.menu-open .site-nav ul {
        width: 100%;
        align-items: center;
        gap: clamp(2rem, 5.3vh, 4.3rem);
    }

    body.home .site-header.menu-open .site-nav li {
        display: block;
    }

    body.home .site-header.menu-open .site-nav li:nth-child(5) { order: 1; }
    body.home .site-header.menu-open .site-nav li:nth-child(4) { order: 2; }
    body.home .site-header.menu-open .site-nav li:nth-child(3) { order: 3; }
    body.home .site-header.menu-open .site-nav li:nth-child(2) { order: 4; }
    body.home .site-header.menu-open .site-nav li:nth-child(1) { order: 5; }

    body.home .site-header.menu-open .site-nav a {
        width: auto;
        min-height: 0;
        padding: 0;
        color: #fff;
        font-size: clamp(2.15rem, 10vw, 4.3rem);
        font-weight: 400;
        letter-spacing: -.05em;
        line-height: .9;
        writing-mode: initial;
        transform: none;
    }

    body.home .site-header.menu-open .mobile-nav-contact {
        position: absolute;
        right: 0;
        bottom: clamp(2rem, 7vh, 4.5rem);
        left: 0;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 1.6rem;
        color: #fff;
        font-size: clamp(1rem, 4.8vw, 1.5rem);
        text-transform: uppercase;
    }

    body.home .site-header.menu-open .mobile-nav-contact span {
        margin-bottom: .3rem;
        color: var(--mx-red);
    }

    body.home .site-header.menu-open .mobile-nav-contact a {
        color: inherit;
        text-decoration: none;
    }
}

/* Locked, always-visible mobile directory on the hero. */
@media (max-width: 920px) {
    html:has(body.home),
    body.home {
        height: 100svh;
        overflow: hidden;
    }

    body.home .site-main,
    body.home .legacy-home {
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }

    /* The WordPress toolbar is part of the normal page flow while logged in. */
    body.admin-bar.home .site-main {
        height: calc(100svh - 46px);
    }

    body.home .legacy-home {
        padding-top: 124px;
    }

    body.admin-bar.home .legacy-home {
        padding-top: 170px;
    }

    body.home .legacy-home-art {
        height: calc(68svh - 84px);
        min-height: 0;
        overflow: hidden;
    }

    body.admin-bar.home .legacy-home-art {
        height: calc(68svh - 116px);
    }

    body.home .site-header:not(.menu-open) .site-nav {
        position: absolute;
        top: 65svh;
        right: 0;
        bottom: auto;
        left: 0;
        display: block;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.admin-bar.home .site-header:not(.menu-open) .site-nav {
        top: calc(65svh - 46px);
    }

    body.home .site-header:not(.menu-open) .site-nav ul {
        width: 100%;
        align-items: center;
        flex-direction: column;
        gap: clamp(1.6rem, 4.2svh, 3rem);
    }

    body.home .site-header:not(.menu-open) .site-nav li {
        display: block;
    }

    body.home .site-header:not(.menu-open) .site-nav li:nth-child(5) { display: none; }
    body.home .site-header:not(.menu-open) .site-nav li:nth-child(2) { order: 1; }
    body.home .site-header:not(.menu-open) .site-nav li:nth-child(3) { order: 2; }
    body.home .site-header:not(.menu-open) .site-nav li:nth-child(4) { order: 3; }
    body.home .site-header:not(.menu-open) .site-nav li:nth-child(1) { order: 4; }

    body.home .site-header:not(.menu-open) .site-nav a {
        width: auto;
        min-height: 0;
        padding: 0;
        color: #fff;
        font-size: clamp(2rem, 9vw, 4rem);
        font-weight: 400;
        letter-spacing: -.05em;
        line-height: .9;
        writing-mode: initial;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Keep the CSS-drawn toggle perfectly centered over legacy pasta rules. */
.content-accordion.pasty-accordion summary i,
.content-accordion.pasty-accordion details[open] summary i {
    position: relative;
    display: block;
    font-size: 0;
    transform: none;
}

.content-accordion.pasty-accordion details[open] summary i::after {
    opacity: 0;
}

.content-accordion.pasty-accordion summary {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.content-accordion .accordion-panel,
.content-accordion .pasty-accordion-body {
    padding-left: 0;
}

.audio-player-shell {
    min-width: 0;
    min-height: 250px;
    color: var(--mx-yellow);
    border-color: #2b2b2b;
    background: #111;
}

.audio-player-shell > span {
    color: var(--mx-yellow);
}

.audio-player-shell audio {
    display: none;
}

.audio-waveform-wrap {
    position: relative;
    display: flex;
    height: 92px;
    align-items: center;
}

.audio-waveform {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: clamp(1px, .25vw, 4px);
}

.audio-waveform i {
    display: block;
    min-width: 2px;
    height: var(--bar-height);
    border-radius: 999px;
    background: currentColor;
    flex: 1 1 0;
    opacity: .25;
    transition: opacity .15s ease;
}

.audio-waveform i.is-played {
    opacity: 1;
}

.audio-seek {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0;
}

.audio-times {
    display: flex;
    margin-top: -.35rem;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    justify-content: space-between;
}

.audio-controls {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    gap: .55rem;
}

.audio-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    color: var(--mx-yellow);
    border: 1px solid rgba(244, 210, 57, .45);
    border-radius: 50%;
    background: transparent;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    place-items: center;
}

.audio-controls button:hover,
.audio-controls button:focus-visible {
    color: #000;
    background: var(--mx-yellow);
}

.audio-controls .audio-play {
    width: 54px;
    height: 54px;
    color: #000;
    border-color: var(--mx-yellow);
    background: var(--mx-yellow);
    font-size: 1rem;
}

.audio-controls .audio-mute {
    margin-left: auto;
}

@media (max-width: 680px) {
    .content-accordion.pasty-accordion summary {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .audio-waveform-wrap {
        height: 72px;
    }

    .audio-player-shell {
        min-height: 230px;
    }

    .audio-controls {
        gap: .4rem;
    }

    .audio-controls button {
        width: 40px;
        height: 40px;
    }

    .audio-controls .audio-play {
        width: 48px;
        height: 48px;
    }
}

/* Final heading normalization, kept last to override legacy page rules. */
.audio-intro,
.pasty-intro,
.video-heading,
.single-wrap {
    padding-top: clamp(8rem, 14vh, 10rem);
}

.audio-intro,
.pasty-intro {
    align-items: start;
}

.audio-intro h1,
.pasty-intro h1,
.video-heading h1,
.single-wrap > .entry-title {
    max-width: 860px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .92;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .audio-intro,
    .pasty-intro,
    .video-heading,
    .single-wrap {
        padding-top: 8rem;
    }

    .audio-intro h1,
    .pasty-intro h1,
    .video-heading h1,
    .single-wrap > .entry-title {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }
}


/* Mobile: keep an opened podcast in a one-screen, navigable player view. */
@media (max-width: 680px) {
    body:has(.audio-single) .content-toolbar {
        position: sticky;
        top: 0;
        z-index: 30;
        background: var(--mx-bg);
    }

    body:has(.audio-single) .audio-single {
        min-height: calc(100svh - 9rem);
        height: calc(100svh - 9rem);
        padding: 0 var(--mx-gutter) 1rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto minmax(0, 1fr);
        grid-template-areas:
            "title"
            "player"
            "cover";
        gap: .85rem;
        align-items: stretch;
        overflow: hidden;
    }

    body:has(.audio-single) .audio-single-copy {
        grid-area: title;
        position: sticky;
        top: 4.75rem;
        z-index: 20;
        padding: .7rem 0 .85rem;
        border-bottom: 1px solid var(--mx-line);
        background: var(--mx-bg);
    }

    body:has(.audio-single) .audio-single h1 {
        max-width: 14ch;
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: .94;
    }

    /* The external Newonce label/link does not take mobile screen space. */
    body:has(.audio-single) .audio-single .text-link,
    body:has(.audio-single) .audio-single .single-partner,
    body:has(.audio-single) .audio-single .entry-content {
        display: none;
    }

    body:has(.audio-single) .audio-single-media {
        display: contents;
    }

    body:has(.audio-single) .audio-player {
        grid-area: player;
        width: 100%;
        margin: 0;
        padding: .85rem;
    }

    body:has(.audio-single) .audio-player audio {
        display: block;
        width: 100%;
    }

    body:has(.audio-single) .audio-single-cover {
        grid-area: cover;
        min-height: 0;
        overflow: hidden;
    }

    body:has(.audio-single) .audio-single-cover img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }
}
