body.dn-author-owned-page .wp-block-post-content,
body.dn-author-owned-page .entry-content {
    box-sizing: border-box;
    width: min(100%, 68rem);
    max-width: none !important;
    margin-inline: auto !important;
}

body.dn-author-owned-page .wp-block-post-content > .dn-author-shell {
    max-width: none !important;
}

body.dn-author-owned-page main > .wp-block-group:first-child > .wp-block-spacer {
    display: none;
}

body.dn-author-owned-page .wp-block-post-content {
    margin-block-start: 0 !important;
}

.dn-author-shell {
    --author-ink: var(--wp--preset--color--contrast, #111);
    --author-muted: #555963;
    --author-link: #1f4f8e;
    --author-accent: #5331e8;
    --author-border: #dfe5ef;
    --author-lilac: #f2eeff;
    box-sizing: border-box;
    width: min(100%, 68rem);
    margin-inline: auto;
    padding-block: .75rem clamp(2.5rem, 6vw, 4rem);
    color: var(--author-ink);
    font-family: var(--wp--preset--font-family--body, system-ui, sans-serif);
    line-height: 1.5;
}

.dn-author-shell h1,
.dn-author-shell h2,
.dn-author-shell p {
    margin: 0;
}

.dn-author-shell h1,
.dn-author-profile__title {
    font-size: var(--wp--preset--font-size--xx-large, clamp(2.25rem, 4.4vw, 3.5rem));
    font-weight: 400;
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.dn-author-shell h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 400;
    line-height: 1.2;
}

.dn-author-shell :is(a, button, input):focus-visible {
    outline: 2px solid var(--author-accent);
    outline-offset: 3px;
}

.dn-author-directory__header {
    margin-bottom: 1.45rem;
}

.dn-author-directory__header > p {
    margin-top: .45rem;
    color: var(--author-muted);
}

.dn-author-directory__results {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    align-items: baseline;
    color: var(--author-muted);
}

.dn-author-directory__results a,
.dn-author-breadcrumb a {
    color: var(--author-link);
    text-underline-offset: .16em;
}

.dn-author-alphabet {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: .1rem .2rem .55rem;
    scrollbar-width: thin;
}

.dn-author-alphabet a {
    display: grid;
    flex: 0 0 2.5rem;
    place-items: center;
    min-height: 2.5rem;
    border: 1px solid var(--author-border);
    border-radius: .6rem;
    background: #fff;
    color: var(--author-ink);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.dn-author-alphabet a:hover,
.dn-author-alphabet a:focus-visible,
.dn-author-alphabet a[aria-current="true"] {
    border-color: var(--author-accent);
    background: var(--author-lilac);
    color: var(--author-accent);
}

.dn-author-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem 1rem;
    margin-top: 1.6rem;
    color: var(--author-muted);
}

.dn-author-pagination a {
    padding: .55rem .7rem;
    border: 1px solid var(--author-border);
    border-radius: .6rem;
    color: var(--author-link);
    text-decoration: none;
}

.dn-author-pagination a:hover {
    border-color: var(--author-accent);
    background: var(--author-lilac);
}

.dn-author-letter {
    margin-top: clamp(1.4rem, 3vw, 2rem);
}

.dn-author-letter > h2 {
    display: flex;
    gap: .8rem;
    align-items: center;
    margin-bottom: .7rem;
    scroll-margin-block-start: 1rem;
}

.dn-author-letter > h2::after {
    flex: 1;
    height: 1px;
    background: var(--author-border);
    content: "";
}

.dn-author-shell :is(.dn-author-grid, .dn-author-series-grid, .dn-author-book-grid) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dn-author-shell :is(.dn-author-grid, .dn-author-series-grid, .dn-author-book-grid) li {
    min-width: 0;
    margin: 0;
}

.dn-author-shell :is(.dn-author-card, .dn-author-series-card, .dn-author-book) {
    display: flex;
    box-sizing: border-box;
    height: 100%;
    gap: .8rem;
    padding: .9rem;
    border: 1px solid var(--author-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--author-ink);
    text-decoration: none;
}

.dn-author-shell :is(.dn-author-card, .dn-author-series-card, .dn-author-book):hover {
    border-color: #a99bf2;
}

.dn-author-shell :is(.dn-author-card, .dn-author-series-card, .dn-author-book):hover strong {
    color: var(--author-accent);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.dn-author-card {
    justify-content: space-between;
    align-items: center;
}

.dn-author-card__identity,
.dn-author-series-card {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.dn-author-card__identity {
    min-width: 0;
}

.dn-author-card__copy,
.dn-author-series-card__copy,
.dn-author-book__copy {
    display: grid;
    min-width: 0;
    gap: .18rem;
}

.dn-author-shell :is(.dn-author-card, .dn-author-series-card, .dn-author-book) strong {
    color: var(--author-ink);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dn-author-card__original,
.dn-author-card__count,
.dn-author-series-card__copy > span,
.dn-author-book__copy > span {
    color: var(--author-muted);
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.dn-author-card__covers {
    flex: 0 0 auto;
}

.dn-author-card__covers img {
    display: block;
    width: 2.05rem;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: .35rem;
    object-fit: cover;
}

.dn-author-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.4rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: .85rem;
    background: #ece5ff;
    color: #4a2ba0;
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: 1.5rem;
    line-height: 1;
}

.dn-author-mark--1 {
    background: #e8edff;
    color: #2d4390;
}

.dn-author-mark--2 {
    background: #f1e7f8;
    color: #623775;
}

.dn-author-mark--3 {
    background: #f5ebf1;
    color: #784267;
}

.dn-author-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dn-author-breadcrumb {
    margin-bottom: .8rem;
    font-size: .92rem;
}

.dn-author-profile__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(.85rem, 3vw, 1.65rem);
    align-items: start;
    padding: clamp(1rem, 3vw, 1.65rem);
    border: 1px solid var(--author-border);
    border-radius: 1.2rem;
    background: #fff;
}

.dn-author-profile__hero > .dn-author-mark {
    width: clamp(4.35rem, 11vw, 8rem);
    border-radius: clamp(.8rem, 2vw, 1.3rem);
    font-size: clamp(1.95rem, 4.8vw, 3.4rem);
}

.dn-author-profile__original {
    margin-top: .25rem !important;
    color: var(--author-muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    overflow-wrap: anywhere;
}

.dn-author-profile__bio {
    max-width: 65ch;
    margin-top: .75rem;
}

.dn-author-profile__bio > :first-child,
.dn-author-profile__bio .dn-author-page {
    margin: 0;
}

.dn-author-profile__bio p + p {
    margin-top: .45rem;
}

.dn-author-profile__jump {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}

.dn-author-profile__jump a {
    padding: .38rem .72rem;
    border-radius: 999px;
    background: var(--author-lilac);
    color: #4524a7;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.dn-author-profile__jump a:hover {
    text-decoration: underline;
}

.dn-author-profile__section {
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.dn-author-profile__section > h2 {
    margin-bottom: .7rem;
    scroll-margin-block-start: 1rem;
}

.dn-author-shell .dn-author-series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dn-author-series-card__cover {
    flex: 0 0 3.75rem;
}

.dn-author-shell .dn-author-book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dn-author-book {
    flex-direction: column;
    gap: .55rem !important;
}

.dn-author-book__cover {
    display: block;
    width: min(100%, 9rem);
    margin-inline: auto;
}

.dn-author-book__cover img,
.dn-author-series-card__cover img,
.dn-author-cover-placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: .4rem;
    object-fit: contain;
    background: #f1f0f6;
}

.dn-author-cover-placeholder {
    display: grid;
    box-sizing: border-box;
    place-items: center;
    padding: .5rem;
    overflow: hidden;
    border-left: .25rem solid #e1d7f8;
    background: #f3effa;
    color: #4b3c6b;
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: clamp(.86rem, 2vw, 1.13rem);
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.dn-author-empty {
    padding: .9rem;
    border: 1px solid var(--author-border);
    border-radius: .8rem;
    background: #fff;
    color: var(--author-muted);
}

@media (max-width: 51rem) {
    .dn-author-shell .dn-author-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dn-author-shell .dn-author-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 36rem) {
    .dn-author-shell .dn-author-grid,
    .dn-author-shell .dn-author-series-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dn-author-shell .dn-author-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dn-author-shell {
        padding-block-start: .4rem;
    }

    .dn-author-profile__identity {
        display: contents;
    }

    .dn-author-profile__hero {
        grid-template-rows: auto auto;
        column-gap: .8rem;
        row-gap: 0;
    }

    .dn-author-profile__hero > .dn-author-mark {
        grid-area: 1 / 1 / 3 / 2;
    }

    .dn-author-profile__title,
    .dn-author-profile__original {
        grid-column: 2;
        align-self: end;
    }

    .dn-author-shell .dn-author-profile__title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .dn-author-profile__original {
        align-self: start;
    }

    .dn-author-profile__bio,
    .dn-author-profile__jump {
        grid-column: 1 / -1;
    }

    .dn-author-shell .dn-author-book {
        padding: .65rem;
    }

    .dn-author-card__covers img {
        width: 1.85rem;
    }
}
