/* The small sign-up form on the feed pages. Scoped to .feed-signup so it cannot touch the page around it. */
.feed-signup {
    max-width: 100%;
    overflow: hidden;
    background: #F0FAF8;
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: 14px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    color: #313732;
}

.feed-signup .eyebrow {
    margin-bottom: 0.35rem;
    color: #0F766E;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feed-signup h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.35rem);
    line-height: 1.25;
}

.feed-signup-lead {
    margin-bottom: 0.9rem;
    font-size: clamp(0.875rem, 1vw + 0.45rem, 1rem);
}

.feed-signup-link,
.feed-signup button[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border: 0;
    border-radius: 10px;
    background: #0F766E;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.feed-signup-link:hover,
.feed-signup button[type=submit]:hover {
    background: #115E59;
}

.feed-signup-link:focus-visible,
.feed-signup button:focus-visible,
.feed-signup input:focus-visible {
    outline: 3px solid #0F766E;
    outline-offset: 2px;
}

.feed-signup button[type=submit]:disabled {
    cursor: progress;
    opacity: 0.75;
}

.feed-signup fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-bottom: 0.6rem;
    border: 0;
}

.feed-signup legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.feed-signup fieldset label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
}

.feed-signup fieldset input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #0F766E;
}

.feed-signup-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.feed-signup-row {
    display: flex;
    gap: 0.5rem;
}

.feed-signup-row input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #9CA3AF;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 1rem;
}

.feed-signup-row input[aria-invalid=true] {
    border-color: #B91C1C;
}

.feed-signup-error {
    margin-top: 0.4rem;
    color: #B91C1C;
    font-size: 0.875rem;
    font-weight: 600;
}

.feed-signup-consent {
    margin-top: 0.6rem;
    color: #4B5563;
    font-size: 0.8rem;
    line-height: 1.45;
}

.feed-signup-consent a {
    color: #0F766E;
}

.feed-signup-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feed-signup-success {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 118, 110, 0.35);
    font-weight: 600;
}

.feed-signup-success:focus {
    outline: 3px solid #0F766E;
    outline-offset: 2px;
}

.feed-signup-success span {
    color: #0F766E;
}

.feed-signup [hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .feed-signup-row {
        flex-direction: column;
    }

    .feed-signup button[type=submit],
    .feed-signup-link {
        width: 100%;
    }
}
