/* LL2 0.6.335 — PollNominationPage: the nominations-phase page
 * redesign. Enqueued ONLY on a season poll in its Nominations
 * phase, and every rule keys off the marker class the layer's
 * content pass adds to LL1's .ll-poll-page div, so no other
 * page can be affected.
 *
 * Width: LL1's polls.css caps .pvs-poll-wrap at
 * min(760px, calc(100% - 32px)) and LL2's own 0.6.326 sheet
 * caps the season card at 44rem. Both are out-specified here
 * (three classes beat two, two beat one), at every viewport —
 * LL1's phone media query included. At phone widths the
 * calc(100% - 32px) term governs: no horizontal scroll.
 *
 * Hero: LL1 paints .ll-poll-page with the poll photo as a
 * full-page background over background-color #2b160b (the
 * dark brown). Here the page's own background image is off
 * and its color becomes the title card's cream (#fffaf2,
 * from rgba(255, 250, 242, .96)); the ::before LL1 keeps
 * display:none becomes a bounded hero band across the top
 * carrying the same --ll-poll-background-image var (cover),
 * with the existing title card overlaid — the wrap's children
 * already stack above it via LL1's .ll-poll-page > * rule.
 * A poll whose var resolves to none simply gets the cream
 * page with no band image. */

.ll-poll-page.ll2-poll-nomination-page {
    background-color: #fffaf2;
    background-image: none;
}

.ll-poll-page.ll2-poll-nomination-page::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: clamp(400px, 48vw, 600px);
    background-image: var(--ll-poll-background-image);
    background-position: center 30%;
    background-repeat: no-repeat;
    background-size: cover;
}

.ll-poll-page.ll2-poll-nomination-page .pvs-poll-wrap {
    width: min(1040px, calc(100% - 32px));
}

.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season {
    max-width: none;
}

/* The share box now sits between the hero header (which has
 * its own bottom margin) and the season section (which has
 * its own top margin): LL1's in-main top margin would double
 * the gap. */
.ll-poll-page.ll2-poll-nomination-page .pvs-share-box {
    margin-top: 0;
    margin-bottom: 0;
}

/* 0.6.336: the subscribe block under the "What's next?" box
 * is LL2-owned and server-rendered (.ll2-poll-season__subscribe,
 * inserted by the content pass, which adds this second marker
 * class only when the insertion happened). polls-ui.js builds
 * its own #pvs-newsletter-cta at runtime and re-toggles its
 * visibility on every results render — for a visitor the
 * server recognizes as already subscribed it hides the block
 * in place, which is what made the 0.6.335 runtime relocation
 * "disappear". Here the runtime block is simply never shown:
 * the !important beats the inline display jQuery's show path
 * can set, so polls-ui's toggle can never resurrect a second,
 * duplicate subscribe control. The node itself stays in the
 * DOM (polls-ui's existence guard never re-creates it), and
 * the LL2 block's button carries polls-ui's own
 * pvs-newsletter-cta__button class, so the real modal flow
 * still opens on click. */
.ll-poll-page.ll2-poll-nomination-page--own-subscribe #pvs-newsletter-cta {
    display: none !important;
}

/* 0.6.337 — the combine. The season section is now the
 * page's ONE card: the share box sits inside it as its first
 * section and the business promo as its closing line, and
 * LL1's <main> — the card that used to hold the poll root —
 * no longer paints an empty shell below.
 *
 * The poll root: polls-ui.js renders the vote/results UI
 * into #pvs-poll-root; in Nominations none of it may show
 * (0.6.331 already suppresses the boards it builds). The
 * root itself is now hidden wholesale. The node STAYS in
 * the DOM — polls-ui's init reads its data attributes,
 * renders into it and inserts the newsletter CTA after it;
 * all of that is visibility-independent, and the 0.6.331
 * script still removes the boards as they render. In
 * Voting this stylesheet is not enqueued and the root
 * renders normally. */
.ll-poll-page.ll2-poll-nomination-page #pvs-poll-root {
    display: none;
}

/* The collapsed main: the content pass adds this class
 * only when <main> holds nothing else visible (no intro,
 * winner card or learn-more section) once the promo has
 * moved into the card. LL1's card chrome — white
 * background, border, the 0 18px 44px shadow, the padding
 * — is stripped, so the shell paints nothing at all. A
 * main with real content never gets the class and keeps
 * LL1's card (its poll root is still hidden by the rule
 * above, so no 180px void opens inside it either). */
.ll-poll-page.ll2-poll-nomination-page .pvs-poll-main.ll2-poll-main--collapsed {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* The share section inside the card: LL1's box is its own
 * light-blue card (background, border, radius); inside the
 * combined card those read as a box in a box, so they are
 * stripped — the sentence and the four buttons keep LL1's
 * centered layout. */
.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season .pvs-share-box {
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* "What's next?" as a headed section, not a box: the
 * criteria block's inner background and padding go, and
 * its heading takes the same size and weight as the
 * ballot list's heading, so the card's two section
 * headings read as peers. */
.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__criteria {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__criteria h3,
.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__nominees h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* The ballot list in two columns on wide screens.
 * Multi-column flow reads down the first column, then the
 * second — the list's (alphabetical) order is preserved —
 * and an entry never splits across the break. Narrow
 * screens keep the single column. */
@media (min-width: 720px) {
    .ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__nominees ul {
        columns: 2;
        column-gap: 2.5rem;
    }
}

.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__nominees li {
    break-inside: avoid;
}

/* The form heading sits directly before the form, in the
 * card's flow. */
.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season__form-heading {
    margin: 1.25rem 0 0.5rem;
}

/* The business promo as the card's closing line: small,
 * centered, at the foot of the card — the line polls-ui.js
 * keeps current (its refreshBusinessPromo() rewrites the
 * div's content at init, wherever the div sits). */
.ll-poll-page.ll2-poll-nomination-page .ll2-poll-season .pvs-poll-business-promo {
    margin-top: 1.25rem;
    text-align: center;
}
