/* ORPONSHOP V22.12B
 * Central writer profile component.
 * Shared across all storefront theme presets.
 */

html body.gotop .writer-detail-section
.books-section > .section-title::after,
html body.gotop .writer-detail-section
.books-section > .section-title::before {
    content: none !important;
    display: none !important;
}

html body.gotop .writer-detail-section
.books-section > .section-title {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-image: none !important;
}

html body.gotop .writer-detail-section .writer-info {
    min-width: 0;
    flex: 1;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-preview {
    margin-top: 14px;
    max-width: 100%;
    min-width: 0;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-summary {
    font-family: inherit;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.85;
    font-weight: 400;
    color: var(--orpon-text, inherit);
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--orpon-gold-light, currentColor);
    border-radius: var(--orpon-radius, 10px);
    background: var(--orpon-card, transparent);
    color: var(--orpon-text, inherit);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-link:hover {
    background: var(--orpon-paper, transparent);
    border-color: var(--orpon-gold, currentColor);
    text-decoration: none;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-link:focus-visible,
html body.gotop .writer-detail-section
.orpon-writer-biography summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

html body.gotop .writer-detail-section
.orpon-writer-biography {
    margin: 0 0 28px;
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid var(--orpon-gold-light, #d6d6c9);
    border-radius: var(--orpon-radius, 12px);
    background: var(--orpon-surface-gradient,
        var(--orpon-card, transparent));
    box-shadow: var(--orpon-panel-shadow, none);
    color: var(--orpon-text, inherit);
    scroll-margin-top: 140px;
    min-width: 0;
}

html body.gotop .writer-detail-section
.orpon-writer-biography summary {
    font-family: inherit;
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 700;
    line-height: 1.5;
    min-height: 44px;
    cursor: pointer;
}

html body.gotop .writer-detail-section
.orpon-writer-biography .orpon-reading-bio {
    margin: 16px 0 20px;
    font-family: var(--orpon-reading-font, inherit);
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.9;
    font-weight: 400;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    color: var(--orpon-text, inherit);
    text-align: start;
}

html body.gotop .writer-detail-section
.orpon-writer-bio-link[hidden] {
    display: none !important;
}

html body.gotop .writer-detail-section
#writer-profile-top {
    scroll-margin-top: 140px;
}

@media (max-width: 767px) {

    html body.gotop .writer-detail-section
    .orpon-writer-bio-preview {
        width: 100%;
        margin-top: 14px;
        text-align: start;
    }

    html body.gotop .writer-detail-section
    .orpon-writer-bio-summary {
        font-size: 17px;
        line-height: 1.85;
    }

    html body.gotop .writer-detail-section
    .orpon-writer-bio-link {
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }

    html body.gotop .writer-detail-section
    .orpon-writer-biography {
        padding: 16px;
        margin-bottom: 20px;
        scroll-margin-top: 120px;
    }

    html body.gotop .writer-detail-section
    .orpon-writer-biography .orpon-reading-bio {
        font-size: 18px !important;
        line-height: 1.9 !important;
    }

    html body.gotop .writer-detail-section
    #writer-profile-top {
        scroll-margin-top: 120px;
    }
}

@media (max-width: 359px) {

    html body.gotop .writer-detail-section
    .orpon-writer-biography {
        padding: 12px;
    }

    html body.gotop .writer-detail-section
    .orpon-writer-bio-summary {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html body.gotop .writer-detail-section
    .orpon-writer-bio-link {
        transition: none !important;
    }
}
