/*
 * Text version at the end of the document page, YPUB-4366. Loaded by Document::view() only when the
 * page shows it.
 *
 * Standalone, not a module of main.scss, so it needs no build. Like download_email_modal.css it has
 * its own entry in the pure-s3 src list in Gruntfile.js; without it assets_url_2() resolves to a
 * release path with nothing behind it.
 *
 * Collapsed, the section shows its first lines and fades out; the button removes .is-collapsed.
 * The whole text is in the HTML either way.
 */

.yp-document-full-text {
    max-width: 760px;
    margin: 56px auto 64px;
    padding: 0 16px;
    color: #222;
}

.yp-document-full-text__title {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.yp-document-full-text__body {
    position: relative;
}

.yp-document-full-text__body.is-collapsed {
    max-height: 520px;
    overflow: hidden;
}

.yp-document-full-text__body.is-collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 160px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.yp-document-full-text__page {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #767676;
}

.yp-document-full-text__page::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.yp-document-full-text__page:first-child {
    margin-top: 0;
}

.yp-document-full-text__body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.yp-document-full-text__more {
    display: block;
    margin: 8px auto 0;
    padding: 10px 26px;
    border: 1px solid #222;
    border-radius: 24px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #222;
    cursor: pointer;
}

.yp-document-full-text__more:hover,
.yp-document-full-text__more:focus-visible {
    background: #222;
    color: #fff;
}
