/* Editorial flow keeps the Autobiography modal layout with its own maroon panel. */
.editorial-story-modal .story-modal__dialog {
    background: #591829;
    color: #F6CBBF;
}

.editorial-story-modal .story-modal__close img {
    filter: brightness(0) saturate(100%) invert(89%) sepia(27%) saturate(350%) hue-rotate(320deg);
}

/* Login and sign-up use a single uninterrupted maroon panel. */
.editorial-story-modal .story-modal__header,
.editorial-story-modal .story-modal__header::before {
    background: transparent;
}

.editorial-story-modal .story-step--login,
.editorial-story-modal .story-step--signup,
.editorial-story-modal .story-step--login .story-modal__header,
.editorial-story-modal .story-step--signup .story-modal__header {
    color: #F6CBBF;
}

.editorial-story-modal .story-field input,
.editorial-story-modal .story-field textarea,
.editorial-story-modal .story-field select {
    border-bottom-color: rgba(255, 243, 216, .55);
    color: #F6CBBF;
}

.editorial-story-modal .story-field input::placeholder,
.editorial-story-modal .story-field textarea::placeholder {
    color: #F6CBBF;
}

.editorial-story-modal .story-field input:focus,
.editorial-story-modal .story-field textarea:focus,
.editorial-story-modal .story-field select:focus {
    border-bottom-color: #F6CBBF;
}

.editorial-story-modal .story-button,
.editorial-story-modal .story-button--primary {
    border-color: #F6CDC5;
    color: #591829;
    background: #F6CDC5;
}

.editorial-story-modal .story-text-link {
    color: #F6CBBF;
}

.editorial-story-modal .story-social {
    border-color: #F6CBBF;
    color: #F6CBBF;
}

/* Editorial login screen. */
.editorial-story-modal .story-modal__dialog--login {
    width: min(620px, 100%);
}

.editorial-story-modal .story-modal__dialog--login .story-modal__content {
    min-height: min(810px, calc(100dvh - 48px));
    padding: 60px 64px 42px;
}

.editorial-story-modal .story-step--login {
    display: flex;
    flex-direction: column;
    min-height: min(708px, calc(100dvh - 150px));
}

.editorial-story-modal .story-step--login h1 {
    margin-bottom: 0;
    font-size: 40px;
}

.editorial-story-modal .story-step--login .story-lead {
    display: none;
}

.editorial-story-modal .story-step--login .story-form {
    gap: 28px;
    margin: 50px 0 0;
}

.editorial-story-modal .story-step--login .story-field input {
    padding: 9px 0 12px;
    font-size: 16px;
    letter-spacing: .35px;
}

.editorial-story-modal .story-step--login .story-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
}

.editorial-story-modal .story-step--login .story-button--primary {
    min-width: 175px;
    padding: 22px 28px;
    font-size: 15px;
}

.editorial-story-modal .story-step--login .story-button__arrow {
    margin-left: 33px;
}

.editorial-story-modal .story-step--login .story-text-link {
    font-size: 16px;
    letter-spacing: .25px;
}

.editorial-story-modal .story-step--login .story-socials {
    gap: 22px;
    margin: 47px 0 0;
}

.editorial-story-modal .story-step--login .story-social {
    width: 322px;
    min-height: 70px;
    padding: 14px 36px;
    gap: 16px;
    font-size: 16px;
    letter-spacing: .25px;
}

.editorial-story-modal .story-step--login .story-social img {
    width: 30px;
    height: 30px;
}

.editorial-story-modal .story-step--login>.story-text-link {
    margin-top: auto;
}

@media (max-width: 640px) {
    .editorial-story-modal .story-modal__dialog--login .story-modal__content {
        min-height: calc(100dvh - 20px);
        padding: 54px 32px 36px;
    }

    .editorial-story-modal .story-step--login {
        min-height: calc(100dvh - 110px);
    }

    .editorial-story-modal .story-step--login h1 {
        font-size: 34px;
    }

    .editorial-story-modal .story-step--login .story-form {
        margin-top: 42px;
    }

    .editorial-story-modal .story-step--login .story-social {
        width: 100%;
        padding-right: 24px;
        padding-left: 24px;
    }
}

.editorial-story-modal .editorial-services-step {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: min(760px, calc(100dvh - 164px));
    min-height: 0;
    color: #F6CBBF;
}

.editorial-services-step>h1 {
    margin-bottom: 48px;
}

.editorial-services-step__scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 22px;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.editorial-services-step__scroll::-webkit-scrollbar {
    display: none;
}

.story-modal-scrollbar.editorial-services-scrollbar {
    top: 160px;
    right: 20px;
    bottom: 198px;
}

.editorial-services-step__lead {
    margin: 0 0 42px;
    font-size: 18px;
    letter-spacing: .6px;
}

.editorial-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 243, 216, .7);
    font-size: 13px;
    cursor: pointer;
}

.editorial-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.editorial-upload b {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 25px;
    overflow: hidden;
    background: url('../image/upload_icon.svg') center / contain no-repeat;
    font-size: 0;
}

.editorial-upload b::before {
    content: none;
}

.editorial-upload b::after {
    content: none;
}

.editorial-upload__note {
    display: block;
    margin: 12px 0 32px;
    font-size: 12px;
    opacity: .8;
}

.editorial-services-step h3 {
    margin: 0 0 20px;
    color: inherit;
    font: 400 19px Lora, serif;
}

.editorial-services-step__choices {
    display: grid;
    gap: 12px;
}

.editorial-services-step__choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    font-size: 14px;
    cursor: pointer;
}

.editorial-services-step__choices input {
    position: absolute;
    opacity: 0;
}

.editorial-services-step__choices i {
    order: -1;
    width: 32px;
    height: 20px;
    border: 1px solid rgba(255, 243, 216, .7);
    border-radius: 999px;
}

.editorial-services-step__choices i::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    margin: 2px;
    border-radius: 50%;
    background: #F6CBBF;
    transition: transform .2s ease, background .2s ease;
}

.editorial-services-step__choices input:checked+i {
    background: #F6CDC5;
    border-color: #F6CDC5;
}

.editorial-services-step__choices input:checked+i::after {
    background: #591829;
    transform: translateX(12px);
}

.editorial-services-step__footer {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 26px;
    margin-top: 0;
    padding-top: 24px;
    background: #591829;
}

.editorial-services-step__footer .story-help-button {
    flex: 0 0 auto;
    width: 70px;
    height: 36px;
    margin: 0 0 0 auto;
    border: 0;
    color: #591829;
    background: #F6CBBF;
    font-size: 14px;
}

.editorial-services-step__footer .story-actions {
    justify-content: space-between;
    width: 100%;
}

.editorial-services-step__footer .story-button--back,
.editorial-services-step__footer .story-button--primary {
    height: 54px;
    border: 0;
    color: #591829;
    background: #F6CDC5;
    font-size: 15px;
}

.editorial-services-step__footer .story-button--back {
    width: 110px;
}

.editorial-services-step__footer .story-button--primary {
    width: 160px;
}

@media (max-width: 640px) {
    .editorial-story-modal .editorial-services-step {
        height: calc(100dvh - 100px);
    }

    .editorial-services-step>h1 {
        margin-bottom: 34px;
        font-size: 32px;
    }

    .editorial-services-step__footer {
        gap: 20px;
    }

    .editorial-services-step__footer .story-actions {
        flex-wrap: nowrap;
    }

    .editorial-services-step__footer .story-button--back {
        width: 105px;
    }

    .editorial-services-step__footer .story-button--primary {
        width: min(150px, calc(100% - 121px));
    }
}

/* Editorial terms footer buttons. */
.editorial-story-modal .story-terms__footer .story-help-button {
    width: 70px;
    height: 36px;
    border: 0;
    color: #591829;
    background: #F6CBBF;
    font-size: 14px;
}

.editorial-story-modal .story-terms__footer .story-actions {
    margin-top: 26px;
    margin-right: 0;
}

.editorial-story-modal .story-step--terms .story-terms__footer {
    align-self: end;
}

.editorial-story-modal .story-terms__footer .story-button--back,
.editorial-story-modal .story-terms__footer .story-button--primary {
    height: 54px;
    border: 0;
    color: #591829;
    background: #F6CDC5;
    font-size: 15px;
}

.editorial-story-modal .story-terms__footer .story-button--back {
    width: 110px;
}

.editorial-story-modal .story-terms__footer .story-button--primary {
    width: 160px;
}

/* Editorial payment summary. */
.editorial-story-modal .story-modal__dialog--payment {
    width: min(550px, 100%);
}

.editorial-story-modal .editorial-payment-step .story-payment__main {
    padding: 62px 54px 35px;
}

.editorial-story-modal .editorial-payment-step h1 {
    margin-bottom: 0;
    font-size: 44px;
}

.editorial-story-modal .editorial-payment-summary {
    margin-top: 80px;
    padding: 36px 30px 31px;
    border-radius: 36px;
    background: #244c50;
    color: #F6CBBF;
}

.editorial-story-modal .editorial-payment-summary>p:first-child {
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: .5px;
}

.editorial-story-modal .editorial-payment-summary>strong {
    display: block;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 1px;
}

.editorial-payment-notes {
    margin: 48px 0 0;
    padding-left: 20px;
}

.editorial-payment-notes li {
    margin-bottom: 7px;
    padding-left: 2px;
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: .2px;
}

.editorial-story-modal .editorial-payment-step .story-payment__footer {
    border-top-color: rgba(246, 203, 191, .7);
    padding: 12px 52px 34px;
    background: #591829;
}

.editorial-story-modal .editorial-payment-step .story-payable {
    margin-right: 28px;
}

.editorial-story-modal .editorial-payment-step .story-payable span {
    font-size: 13px;
}

.editorial-story-modal .editorial-payment-step .story-payable strong {
    font-size: 22px;
    font-weight: 400;
}

.editorial-story-modal .editorial-payment-step .story-button--back,
.editorial-story-modal .editorial-payment-step .story-button--primary {
    height: 54px;
    border-color: #F6CBBF;
    font-size: 15px;
}

.editorial-story-modal .editorial-payment-step .story-button--back {
    width: 145px;
    color: #F6CBBF;
    background: transparent;
}

.editorial-story-modal .editorial-payment-step .story-button--back .story-back-arrow--default,
.editorial-story-modal .editorial-payment-step .story-button--back:hover .story-back-arrow--default {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(89%) sepia(27%) saturate(350%) hue-rotate(320deg);
}

.editorial-story-modal .editorial-payment-step .story-button--back .story-back-arrow--hover,
.editorial-story-modal .editorial-payment-step .story-button--back:hover .story-back-arrow--hover {
    opacity: 0;
}

.editorial-story-modal .story-step--payment-window .story-button--back .story-back-arrow--default,
.editorial-story-modal .story-step--payment-window .story-button--back:hover .story-back-arrow--default {
    opacity: 1;
}

.editorial-story-modal .story-step--payment-window .story-button--back .story-back-arrow--hover,
.editorial-story-modal .story-step--payment-window .story-button--back:hover .story-back-arrow--hover {
    opacity: 0;
}

.editorial-story-modal .editorial-payment-step .story-button--primary {
    width: 174px;
    border: 0;
    color: #591829;
    background: #F6CBBF;
}

@media (max-width: 640px) {
    .editorial-story-modal .editorial-payment-step .story-payment__main {
        padding: 54px 28px 28px;
    }

    .editorial-story-modal .editorial-payment-summary {
        margin-top: 80px;
    }

    .editorial-story-modal .editorial-payment-step .story-payment__footer {
        padding-right: 28px;
        padding-left: 28px;
    }

    .editorial-story-modal .editorial-payment-step .story-button--back {
        width: 120px;
    }

    .editorial-story-modal .editorial-payment-step .story-button--primary {
        width: 150px;
    }
}

/* Editorial submission confirmation. */
.editorial-story-modal .editorial-final-step {
    padding-right: 52px;
    padding-left: 52px;
}

.editorial-final-step__help {
    position: absolute;
    z-index: 2;
    top: 64px;
    right: 52px;
    width: 70px;
    height: 36px;
    margin: 0;
    border-color: #F6CBBF;
    color: #F6CBBF;
    background: transparent;
    font-size: 14px;
}

.editorial-story-modal .editorial-final-step .story-complete__scroll {
    justify-content: center;
    padding-top: 90px;
}

.editorial-story-modal .editorial-final-step .story-checkmark {
    display: grid;
    place-items: center;
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    margin-bottom: 52px;
    border-radius: 50%;
    background: #244c50;
    color: #F6CBBF;
}

.editorial-final-step .story-checkmark span {
    font: 400 55px/1 Arial, sans-serif;
    transform: translateY(-3px);
}

.editorial-story-modal .editorial-final-step h1 {
    margin-bottom: 38px;
    color: #F6CBBF;
    font-size: 42px;
    line-height: 1.25;
}

.editorial-story-modal .editorial-final-step .story-complete__message {
    max-width: 460px;
    color: #F6CBBF;
    font-size: 17px;
    line-height: 2.35;
}

.editorial-story-modal .editorial-final-step .story-complete__actions {
    flex-wrap: nowrap;
}

.editorial-story-modal .editorial-final-step .story-complete__home,
.editorial-story-modal .editorial-final-step .story-complete__dashboard {
    height: 54px;
    font-size: 15px;
}

.editorial-story-modal .editorial-final-step .story-complete__home {
    width: 150px;
    border-color: #F6CBBF;
    color: #F6CBBF;
    background: transparent;
}

.editorial-story-modal .editorial-final-step .story-complete__dashboard {
    width: 240px;
    border: 0;
    color: #591829;
    background: #F6CBBF;
}

@media (max-width: 640px) {
    .editorial-story-modal .editorial-final-step {
        padding-right: 24px;
        padding-left: 24px;
    }

    .editorial-final-step__help {
        top: 52px;
        right: 24px;
    }

    .editorial-story-modal .editorial-final-step h1 {
        font-size: 34px;
    }

    .editorial-story-modal .editorial-final-step .story-complete__message {
        font-size: 15px;
        line-height: 1.9;
    }

    .editorial-story-modal .editorial-final-step .story-complete__home {
        width: 110px;
    }

    .editorial-story-modal .editorial-final-step .story-complete__dashboard {
        width: min(190px, calc(100% - 126px));
    }
}

/* Full legal document opened from the Help buttons. */
.editorial-legal-modal {
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: none;
    place-items: center;
    padding: 28px 38px;
}

.editorial-legal-modal.is-open {
    display: grid;
}

.editorial-legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 35, 31, .58);
}

.editorial-legal-modal__dialog {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(1150px, 100%);
    height: min(865px, calc(100dvh - 56px));
    overflow: hidden;
    border-radius: 28px;
    padding: 28px 28px 0;
    background: #591829;
    color: #F6CBBF;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.editorial-legal-modal__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 140px;
    height: 52px;
    border: 1px solid #F6CBBF;
    border-radius: 999px;
    background: transparent;
    color: #F6CBBF;
    font: 14px Lora, serif;
}

.editorial-legal-modal__back span {
    font-size: 28px;
    line-height: 0;
}

.editorial-legal-modal__dialog h2 {
    margin: 72px 95px 66px;
    font: 400 46px/1 Lora, serif;
}

.editorial-legal-modal__content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 95px 70px;
    scrollbar-color: #d59a87 transparent;
    scrollbar-width: thin;
}

.editorial-legal-modal__content::-webkit-scrollbar {
    width: 6px;
}

.editorial-legal-modal__content::-webkit-scrollbar-track {
    background: transparent;
}

.editorial-legal-modal__content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d59a87;
}

.editorial-legal-modal__content h3 {
    margin: 0 0 42px;
    font: 400 28px/1.35 Lora, serif;
    letter-spacing: 2px;
}

.editorial-legal-modal__content p {
    margin: 0 0 36px;
    font: 400 16px/1.8 Lora, serif;
    letter-spacing: .7px;
}

@media (max-width: 640px) {
    .editorial-legal-modal {
        padding: 10px;
    }

    .editorial-legal-modal__dialog {
        height: calc(100dvh - 20px);
        border-radius: 18px;
        padding: 20px 14px 0;
    }

    .editorial-legal-modal__back {
        width: 120px;
        height: 44px;
        gap: 9px;
        font-size: 13px;
    }

    .editorial-legal-modal__dialog h2 {
        margin: 45px 18px 40px;
        font-size: 32px;
    }

    .editorial-legal-modal__content {
        padding: 0 18px 40px;
    }

    .editorial-legal-modal__content h3 {
        margin-bottom: 24px;
        font-size: 21px;
    }

    .editorial-legal-modal__content p {
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 1.7;
    }
}
