/* LL2 0.6.346 — PollPagePhases: the season poll page's hero
 * photo, two-phase stepper and all-polls link. Enqueued ONLY
 * on a season poll's own page (any phase) — and, since
 * 0.6.347, on a legacy (non-season) poll's page by
 * PollPagePhasesLegacy, which reuses these exact rules for
 * its stepper and link; the hero-media rules simply never
 * match there. Every rule keys
 * off the layer's own classes, so no other page can be
 * affected.
 *
 * Hero photo: LL1's .pvs-poll-header is a cream card with
 * padding clamp(22px, 4vw, 34px) / clamp(18px, 4vw, 36px), a
 * 1px border and an 18px radius (20px / 16px padding and a
 * 14px radius under LL1's max-width: 600px query). The media
 * block pulls itself flush to the card's inner edges with the
 * negated clamps, so the photo runs edge to edge across the
 * card top as in the approved mock; its own top corners are
 * clipped a pixel inside the card's radius, and the image is
 * cover-cropped to the band's 3:1 aspect (16:9 on phones, so
 * the band keeps some height at narrow widths).
 *
 * Stepper: the current step carries the site green (#127044)
 * as a 2px border over a pale green fill with a green state
 * label; a step still to come and a step already done share
 * the muted treatment (gray border, pale gray fill, gray
 * label and name). The status line under the steps is bold
 * green while a phase is live and gray once the poll has
 * ended. On phones the two steps stack and the arrow turns
 * to point down the flow. */

.ll2-poll-page-phases__all-polls {
    margin: 0 0 10px;
    font-size: 15px;
}

.ll2-poll-page-phases__all-polls a {
    color: #127044;
    font-weight: 600;
    text-decoration: none;
}

.ll2-poll-page-phases__all-polls a:hover,
.ll2-poll-page-phases__all-polls a:focus {
    text-decoration: underline;
}

.ll2-poll-page-phases__hero-media {
    margin: calc(-1 * clamp(22px, 4vw, 34px)) calc(-1 * clamp(18px, 4vw, 36px)) 20px;
    border-radius: 17px 17px 0 0;
    overflow: hidden;
}

.ll2-poll-page-phases__hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}

@media (max-width: 600px) {
    .ll2-poll-page-phases__hero-media {
        margin: -20px -16px 16px;
        border-radius: 13px 13px 0 0;
    }

    .ll2-poll-page-phases__hero-image {
        aspect-ratio: 16 / 9;
    }
}

.ll2-poll-phases {
    margin: 0 0 18px;
}

.ll2-poll-phases__steps {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.ll2-poll-phases__step {
    flex: 1 1 0;
    border: 2px solid #d9d9d2;
    border-radius: 12px;
    background: #f6f6f2;
    padding: 14px 18px 16px;
}

.ll2-poll-phases__step--now {
    border-color: #127044;
    background: #eaf4ec;
}

.ll2-poll-phases__state {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #83898f;
    margin: 0 0 4px;
}

.ll2-poll-phases__step--now .ll2-poll-phases__state {
    color: #127044;
}

.ll2-poll-phases__name {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: #172033;
}

.ll2-poll-phases__step--next .ll2-poll-phases__name,
.ll2-poll-phases__step--done .ll2-poll-phases__name {
    color: #6d7278;
}

.ll2-poll-phases__text {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: #44443e;
}

.ll2-poll-phases__step--next .ll2-poll-phases__text,
.ll2-poll-phases__step--done .ll2-poll-phases__text {
    color: #83898f;
}

.ll2-poll-phases__arrow {
    align-self: center;
    font-size: 22px;
    font-weight: 700;
    color: #83898f;
}

.ll2-poll-phases__line {
    margin: 14px 0 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #127044;
}

.ll2-poll-phases--closed .ll2-poll-phases__line {
    color: #6d7278;
}

@media (max-width: 600px) {
    .ll2-poll-phases__steps {
        flex-direction: column;
    }

    .ll2-poll-phases__arrow {
        transform: rotate(90deg);
    }
}
