/*
 * Shared SproutSpace customer support footer.
 */

.sproutspace-support {
    width: min(100%, 760px);
    margin: 0.85rem auto 0;
    padding: 0.85rem 1rem 0;
    border-top: 1px solid rgba(33, 83, 66, 0.16);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(24, 61, 49, 0.78);
}

.sproutspace-support strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #1f5b47;
    font-weight: 700;
}

.sproutspace-support span {
    display: block;
}

.sproutspace-support a {
    color: #1f6a50;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sproutspace-support a:hover,
.sproutspace-support a:focus-visible {
    color: #154936;
}

.sproutspace-support-standalone {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 640px) {
    .sproutspace-support {
        width: calc(100% - 2rem);
        font-size: 0.86rem;
    }
}


/* Help links shared by the parent sign in and dashboard views. */
.help-entry-link,
.dashboard-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.help-entry-link {
    width: 100%;
    margin-top: 2px;
    color: #34665a;
    font-weight: 800;
}

.help-entry-link:hover,
.help-entry-link:focus-visible {
    color: #244d44;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Public How SproutSpace Works header link */
.public-how-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(52, 102, 90, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 24px rgba(36, 77, 68, .08);
    color: #244d44;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.public-how-link:hover,
.public-how-link:focus-visible {
    background: #fff;
    border-color: rgba(52, 102, 90, .3);
    box-shadow: 0 10px 28px rgba(36, 77, 68, .12);
    color: #244d44;
    text-decoration: none;
    transform: translateY(-1px);
}

/* The Parent Dashboard already has its own Help control. */
body:has(#dashboard-view:not(.hidden)) .public-how-link {
    display: none;
}

@media (max-width: 560px) {
    .public-how-link {
        padding: 8px 10px;
        font-size: .82rem;
    }
}


/* Context help links */
.context-help-title-row,
.context-help-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.context-help-title-row h2,
.context-help-label-row h3,
.context-help-label-row strong {
    margin-top: 0;
    margin-bottom: 0;
}

.context-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(52, 102, 90, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #2f6257;
    box-shadow: 0 4px 12px rgba(36, 77, 68, .08);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: help;
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.context-help-link.context-help-info {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: .72rem;
}

.context-help-link:hover,
.context-help-link:focus-visible {
    background: #fff;
    border-color: rgba(52, 102, 90, .48);
    box-shadow: 0 6px 16px rgba(36, 77, 68, .13);
    color: #214a41;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.context-help-link:focus-visible {
    box-shadow:
        0 0 0 3px rgba(72, 139, 122, .18),
        0 6px 16px rgba(36, 77, 68, .13);
}
