/* From Your Editor coach (replaces legacy Next sections). */

.fye-coach-host {
    width: 100%;
    max-width: var(--st-desktop-workspace, 68rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.fye-handoff {
    margin: 0 0 16px;
    text-align: left;
}

.fye-handoff-heading {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--st-ink, #111);
}

.fye-coach-primary .fye-handoff-heading {
    margin-top: 4px;
}

.fye-handoff-body,
.fye-coach-rationale {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--st-text, #333);
}

.fye-coach-rationale {
    max-width: 38rem;
}

.fye-coach-alt-hint {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--st-text-secondary, #555);
}

.fye-coach-inline-alt {
    appearance: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    cursor: pointer;
    background: transparent;
    color: var(--st-ink, #111);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fye-coach-primary {
    text-align: left;
    margin: 8px 0 12px;
}

.fye-coach-primary-btn {
    display: block;
    margin: 0;
}

.fye-coach-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-secondary, #666);
}

.fye-coach-onboard-headline {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 500;
    color: var(--st-ink);
}

.fye-coach-onboard-body,
.fye-coach-retention,
.fye-coach-evidence,
.fye-coach-rationale {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--st-text-secondary, #555);
}

.fye-coach-stages {
    margin: 0 0 12px;
    padding-left: 1.1rem;
    font-size: 14px;
    line-height: 1.45;
}

.fye-section-label {
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-text-secondary, #666);
}

.fye-coach-primary-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    background: var(--st-ink, #111);
    color: var(--st-surface, #fff);
    width: 100%;
    max-width: 22rem;
    text-align: center;
}

.fye-coach-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fye-coach-secondary-btn {
    appearance: none;
    border: 1px solid var(--st-border, rgba(0, 0, 0, 0.12));
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: var(--st-ink);
}

.fye-coach-section {
    margin: 8px 0;
    border: 1px solid var(--st-border, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    padding: 6px 10px;
    background: var(--st-surface-subtle, rgba(0, 0, 0, 0.02));
}

.fye-coach-section > summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.fye-epistemic {
    margin: 6px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--st-text-secondary, #777);
}

.fye-coach-section ul {
    margin: 6px 0 0;
    padding-left: 1.1rem;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .fye-coach-host {
        max-width: 100%;
    }

    .fye-coach-section:not([open]) {
        padding-block: 4px;
    }
}

/* Short forward-motion navigator inside the normal Storyfellow shell. */

#screen-next {
    padding: 0;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

#screen-next .next-layout {
    padding-top: var(--st-header-content-gap, 24px);
}

#screen-next.is-early-gathering {
    align-items: center;
    text-align: center;
}

#screen-next.is-early-gathering .next-layout {
    align-items: center;
}

#screen-next.is-early-gathering .next-detail {
    margin-left: auto;
    margin-right: auto;
}

#screen-next.is-early-gathering .next-actions {
    align-items: center;
    width: 100%;
}

.next-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: var(--st-header-content-gap, 24px) var(--st-page-pad-x) 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.next-page-title {
    margin: 0;
    width: 100%;
    max-width: 40rem;
    font-size: clamp(1.5rem, 3.2vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--st-ink, #111);
}

.fye-coach,
.fye-coach-sections {
    text-align: left;
    width: 100%;
}

@media (min-width: 768px) {
    #screen-next .next-layout {
        width: 100%;
        max-width: var(--st-workspace-standard);
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--st-page-pad-x);
        padding-right: var(--st-page-pad-x);
    }
}

@media (min-width: 1024px) {
    #screen-next .next-context,
    #screen-next .next-detail,
    #screen-next .next-section,
    #screen-next .next-section-heading,
    #screen-next .next-book-body,
    #screen-next .next-leftoff-body,
    #screen-next .next-stage-statement,
    #screen-next .next-kicker {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    #screen-next .next-section-do .next-actions {
        max-width: none;
        align-items: center;
    }
}

.next-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-text-secondary, #666);
}

.next-context {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 4px;
    max-width: 100%;
}

.next-context[hidden] {
    display: none;
}

.next-context-row {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--st-text-secondary, #666);
}

.next-context-label {
    font-weight: 500;
    color: var(--st-text, #333);
}

.next-headline {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--st-ink, #111);
}

.next-detail {
    margin: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
    color: var(--st-text, #222);
}

.next-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--st-action-gap, 10px);
    margin-top: 8px;
    width: 100%;
}

.next-action {
    appearance: none;
    box-sizing: border-box;
    align-self: center;
    width: var(--st-action-width, min(100%, 320px));
    max-width: var(--st-action-width, min(100%, 320px));
    min-height: var(--st-touch, 44px);
    border: 1px solid var(--st-border-strong, #ddd);
    background: #fff;
    color: var(--st-ink, #111);
    border-radius: var(--st-radius-pill, 999px);
    padding: 12px 28px;
    font: inherit;
    font-size: var(--st-size-body, 15px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition:
        background-color var(--st-duration, 220ms) var(--st-ease, ease),
        border-color var(--st-duration, 220ms) var(--st-ease, ease),
        color var(--st-duration, 220ms) var(--st-ease, ease);
}

.next-action.is-primary {
    background: var(--st-ink, #111);
    color: #fff;
    border-color: var(--st-ink, #111);
}

.next-action.is-primary:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
}

.next-action.is-primary:active {
    background: #000;
    border-color: #000;
}

.next-action:not(.is-primary):hover {
    border-color: var(--st-ink, #111);
    background: var(--st-bg-soft, #f7f7f7);
}

#screen-next .next-action:focus-visible {
    outline: 1px solid var(--st-focus-ring, #111);
    outline-offset: 2px;
}

.next-section {
    width: 100%;
    max-width: 38em;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
}

.next-section-heading {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--st-text-secondary, #666);
}

.next-stage-statement {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--st-ink, #111);
}

.next-book-title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--st-ink, #111);
}

.next-book-excerpt,
.next-book-empty,
.next-leftoff-empty {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--st-text, #222);
}

.next-inline-action {
    appearance: none;
    align-self: flex-start;
    margin-top: 4px;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--st-ink, #111);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.next-inline-action:focus-visible {
    outline: 1px solid var(--st-focus-ring, #111);
    outline-offset: 2px;
}

.next-leftoff-turns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--st-border, #e8e8e8);
    border-radius: var(--st-radius, 12px);
    background: var(--st-bg-soft, #fafafa);
}

.next-leftoff-turn {
    margin: 0;
}

.next-leftoff-speaker {
    display: block;
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--st-text-secondary, #666);
}

.next-leftoff-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--st-text, #222);
}

.next-pending-callout {
    margin: 0 0 6px;
    max-width: 38em;
    font-size: 14px;
    line-height: 1.45;
    color: var(--st-text-secondary, #555);
}

.next-pending-callout[hidden] {
    display: none;
}

.next-section-do .next-actions {
    margin-top: 4px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

@media (max-width: 520px) {
    .next-layout {
        padding: 40px 0 48px;
        gap: 18px;
    }

    .next-leftoff-turns {
        padding: 12px 14px;
    }

    .next-action {
        max-width: none;
    }
}

.next-action-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.next-action-desc {
    margin: 0 0 8px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-text-secondary, #666);
}

.next-book-detail {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--st-text-secondary, #666);
}
