/* Stemmen: the public vote page. Loaded on /{slug} only; classes use the vt- prefix.
   Sizes are in px, taken from the Claude Design handoff: Ghost's screen.css sets the root font size
   to 62.5%, and px keeps the page the same whether or not that sheet loaded.
   Mobile first; one breakpoint at 768px switches to the desktop layout. */

.vt-page {
    --vt-teal: #0da2ae;
    --vt-teal-deep: #0a7a77;
    --vt-teal-dark: #084e4c;
    --vt-teal-soft: #d6efee;
    --vt-pink: #ff1a75;
    --vt-pink-deep: #e60059;
    --vt-ink: #15171a;
    --vt-grey-50: #f7f7f7;
    --vt-grey-100: #efefef;
    --vt-grey-400: #9b9b9b;
    --vt-grey-600: #4a4a4a;
    --vt-grey-700: #2c2e30;
    --vt-display: 'Playfair Display', 'Lora', Georgia, serif;
    --vt-heading: 'Lora', Georgia, serif;
    --vt-ui: 'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #fff;
    color: var(--vt-ink);
    font-family: var(--vt-ui);
    font-size: 17px;
    line-height: 1.4;
}

/* The flex and grid rules below would otherwise override the hidden attribute. */
.vt-page [hidden] {
    display: none !important;
}

/* Ghost's theme styles bare elements; inside the page only these rules apply. */
.vt-page h1,
.vt-page h2,
.vt-page h3 {
    margin: 0;
    color: var(--vt-ink) !important;
    font-family: var(--vt-heading) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.vt-page p,
.vt-page ul,
.vt-page ol,
.vt-page figure {
    margin: 0;
    padding: 0;
}

.vt-page ul,
.vt-page ol {
    list-style: none;
}

.vt-page button {
    appearance: none;
    margin: 0;
    font-family: var(--vt-ui);
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}

.vt-page :focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 26, 117, .45);
}

.vt-icon {
    flex: none;
    width: 1.1em;
    height: 1.1em;
}

.vt-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* A browser that remembers its Stembiljet does not flash the vote buttons before the script runs. */
html.vt-has-vote .vt-page[data-state="open"] .vt-choose,
html.vt-has-vote .vt-page[data-state="open"] .vt-bar,
.vt-page.is-voted .vt-choose,
.vt-page.is-voted .vt-bar {
    display: none;
}

/* ---- Buttons ------------------------------------------------------------------- */

.vt-btn,
.vt-vote,
.vt-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--vt-ui);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: background .12s ease;
}

.vt-btn:active,
.vt-vote:active,
.vt-pick:active {
    transform: translateY(1px);
}

.vt-btn.is-pink,
.vt-vote {
    background: var(--vt-pink);
    color: #fff !important;
}

.vt-btn.is-pink:hover,
.vt-vote:hover {
    background: var(--vt-pink-deep);
}

.vt-btn.is-outline {
    height: 56px;
    border-color: var(--vt-ink);
    background: transparent;
    color: var(--vt-ink) !important;
    font-size: 18px;
}

.vt-btn.is-outline:hover {
    background: var(--vt-grey-50);
}

.vt-btn.is-inline {
    display: inline-flex;
    width: auto;
    padding: 0 28px;
}

.vt-btn:disabled {
    cursor: wait;
    opacity: .7;
}

.vt-link {
    padding: 12px;
    border: 0;
    background: none;
    color: var(--vt-grey-600);
    font-size: 15px;
    text-decoration: underline;
}

/* ---- Hero ---------------------------------------------------------------------- */

.vt-hero-inner {
    display: grid;
    gap: 24px;
    padding-top: 24px;
}

.vt-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.vt-kicker {
    color: var(--vt-teal-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vt-page h1 {
    font-family: var(--vt-display) !important;
    font-size: 36px;
    font-style: italic;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.vt-intro {
    font-family: var(--vt-heading);
    font-size: 18px;
    line-height: 1.5;
    color: var(--vt-grey-700);
}

.vt-intro p + p {
    margin-top: 12px;
}

.vt-facts {
    align-self: stretch;
    border-radius: 12px;
    overflow: hidden;
    background: var(--vt-teal-soft);
}

.vt-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--vt-teal-dark);
    font-size: 17px;
    line-height: 1.35;
}

.vt-facts li + li {
    border-top: 1px solid rgba(8, 78, 76, .15);
}

.vt-facts svg {
    flex: none;
    width: 26px;
    height: 26px;
}

.vt-notice {
    align-self: stretch;
    padding: 12px 16px !important;
    border: 1px solid #f3c98b;
    border-radius: 12px;
    background: #fff4e5;
    color: #6b4200;
    font-size: 17px;
}

/* ---- Zo stem je ---------------------------------------------------------------- */

.vt-howto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: var(--vt-grey-50);
}

.vt-page .vt-howto h2 {
    font-size: 20px;
}

.vt-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    line-height: 1.35;
}

.vt-step-num {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--vt-ink);
    color: #fff;
    font-weight: 700;
}

/* ---- Kandidaten ---------------------------------------------------------------- */

.vt-section {
    padding-top: 28px;
}

.vt-page .vt-heading {
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vt-ink);
    font-size: 24px;
}

.vt-page .vt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 20px;
}

.vt-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vt-card-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--vt-grey-100);
}

.vt-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The chosen state: a teal frame and a badge on the photo. */
.vt-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid var(--vt-teal);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
}

.vt-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: var(--vt-teal-dark);  /* white on the plain teal falls short of 4.5:1 */
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.vt-card.is-selected .vt-card-photo::after,
.vt-card.is-voted .vt-card-photo::after {
    opacity: 1;
}

.vt-card.is-selected .vt-badge,
.vt-card.is-voted .vt-badge {
    display: flex;
}

.vt-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vt-page .vt-card-name {
    font-size: 26px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vt-card-description {
    font-family: var(--vt-heading);
    font-size: 18px;
    line-height: 1.5;
    color: var(--vt-grey-700);
}

.vt-card-description p + p {
    margin-top: 8px;
}

/* Several Stemmen: one button in three looks, Kies, Gekozen and full. */
.vt-pick {
    border-color: var(--vt-ink);
    background: #fff;
    color: var(--vt-ink);
}

.vt-pick:hover {
    background: var(--vt-grey-50);
}

.vt-pick-on,
.vt-pick-full,
.vt-pick-hint {
    display: none;
}

.vt-pick-on {
    align-items: center;
    gap: 10px;
}

.vt-card.is-selected .vt-pick {
    border-color: var(--vt-teal-dark);
    background: var(--vt-teal-dark);
    color: #fff;
}

.vt-card.is-selected .vt-pick-idle,
.vt-card.is-maxed .vt-pick-idle {
    display: none;
}

.vt-card.is-selected .vt-pick-on {
    display: flex;
}

.vt-card.is-selected .vt-pick-hint {
    display: block;
    margin-top: -8px;
    color: var(--vt-grey-600);
    font-size: 15px;
    text-align: center;
}

.vt-card.is-maxed .vt-pick {
    border-color: var(--vt-grey-100);
    background: var(--vt-grey-100);
    color: var(--vt-grey-600);
    font-size: 17px;
    font-weight: 600;
    cursor: default;
    transform: none;
}

.vt-card.is-maxed .vt-pick-full {
    display: inline;
}

.vt-foot {
    display: flex;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* ---- The bar under several Stemmen --------------------------------------------- */

/* Room for the fixed bar, only on a page that has one. */
.vt-page.has-bar .vt-choose {
    padding-bottom: 150px;
}

.vt-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    border-top: 1px solid var(--vt-ink);
    background: #fff;
}

.vt-bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text dots" "send send";
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

.vt-dots {
    grid-area: dots;
    display: flex;
    gap: 6px;
}

.vt-dot {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 2px solid var(--vt-grey-400);
    border-radius: 999px;
}

.vt-dot.is-on {
    border-color: var(--vt-teal);
    background: var(--vt-teal);
}

.vt-bar-text {
    grid-area: text;
}

.vt-bar-count {
    font-size: 18px;
    font-weight: 700;
}

.vt-bar-names {
    display: none;
    color: var(--vt-grey-600);
    font-size: 15px;
}

.vt-send {
    grid-area: send;
}

.vt-send-off {
    display: none;
}

.vt-send:disabled {
    background: var(--vt-grey-100);
    color: var(--vt-grey-600) !important;
    font-size: 18px;
    font-weight: 600;
    cursor: default;
    opacity: 1;
    transform: none;
}

.vt-send:disabled .vt-send-on {
    display: none;
}

.vt-send:disabled .vt-send-off {
    display: inline;
}

/* ---- Popups: the confirmation and the Spelregels ------------------------------ */

/* On a phone a sheet from the bottom. The sheet fills the dialog, so a click on the dialog
   itself is a click on the backdrop. */
.vt-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: #fff;
    color: var(--vt-ink);
    font-family: var(--vt-ui);
}

.vt-dialog::backdrop {
    background: rgba(21, 23, 26, .55);
}

.vt-sheet {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px calc(36px + env(safe-area-inset-bottom, 0px));
}

.vt-page .vt-dialog h2 {
    font-size: 28px;
    line-height: 1.2;
}

.vt-picklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-picklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vt-heading);
    font-size: 20px;
    font-weight: 700;
}

.vt-picklist .vt-icon {
    color: var(--vt-teal);
}

.vt-note {
    font-family: var(--vt-heading);
    font-size: 18px;
    line-height: 1.5;
    color: var(--vt-grey-600);
}

.vt-error {
    color: #b3261e;
    font-size: 17px;
    font-weight: 600;
}

.vt-turnstile:empty {
    display: none;
}

.vt-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#vt-rules .vt-sheet {
    gap: 12px;
}

.vt-page #vt-rules h2 {
    margin-bottom: 4px;
    font-size: 24px;
}

.vt-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-rules li {
    position: relative;
    padding-left: 20px;
    font-family: var(--vt-heading);
    font-size: 17px;
    line-height: 1.5;
}

.vt-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--vt-teal);
    font-weight: 700;
}

.vt-privacy {
    align-self: flex-start;
    color: var(--vt-ink) !important;
    font-size: 15px;
}

.vt-privacy:hover {
    color: var(--vt-pink) !important;
}

#vt-rules .vt-btn {
    margin-top: 8px;
}

/* ---- Bedankt ------------------------------------------------------------------- */

.vt-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}

.vt-done-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--vt-teal);
    color: #fff;
}

.vt-done-mark .vt-icon {
    width: 52px;
    height: 52px;
}

.vt-page .vt-done h2 {
    font-family: var(--vt-display) !important;
    font-size: 36px;
    font-style: italic;
    line-height: 1.1;
}

.vt-done-lead {
    font-family: var(--vt-heading);
    font-size: 20px;
    line-height: 1.5;
}

.vt-page .vt-done-box {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    background: var(--vt-grey-50);
    font-family: var(--vt-heading);
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
}

.vt-done .vt-btn {
    margin-top: 8px;
}

.vt-done .vt-link {
    margin-top: -8px;
}

/* ---- The footer ---------------------------------------------------------------- */

/* The shell's footer without its hero, cards and Verken row: the strip alone, close to the page. */
.lg-foot.is-compact .lg-foot__mark {
    display: none;
}

.lg-foot.is-compact .lg-foot__inner {
    padding: 28px 0;
}

.lg-foot.is-compact .lg-foot__bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* ---- Desktop ------------------------------------------------------------------- */

@media (min-width: 768px) {
    .vt-inner {
        padding: 0 32px;
    }

    .vt-hero-inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        align-items: start;
        gap: 48px;
        padding-top: 48px;
    }

    .vt-hero-main {
        gap: 20px;
    }

    .vt-page h1 {
        font-size: 60px;
        line-height: 1.02;
    }

    .vt-facts li {
        padding: 16px 20px;
        font-size: 18px;
    }

    .vt-howto {
        gap: 14px;
        margin-top: 36px;
        padding: 28px;
    }

    .vt-page .vt-howto h2 {
        font-size: 22px;
    }

    .vt-step {
        gap: 14px;
        font-size: 19px;
    }

    .vt-step-num {
        width: 36px;
        height: 36px;
    }

    .vt-section {
        padding-top: 48px;
    }

    .vt-page .vt-heading {
        padding-bottom: 10px;
        font-size: 28px;
    }

    .vt-page .vt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
        padding-top: 28px;
    }

    .vt-card {
        gap: 16px;
    }

    /* The buttons line up at the bottom of each row. */
    .vt-card-body {
        flex: 1;
    }

    .vt-page .vt-card-name {
        font-size: 24px;
    }

    .vt-btn,
    .vt-vote,
    .vt-pick {
        font-size: 19px;
    }

    .vt-card.is-maxed .vt-pick {
        font-size: 16px;
    }

    .vt-foot {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .vt-page.has-bar .vt-choose {
        padding-bottom: 100px;
    }

    .vt-bar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "dots text send";
        gap: 24px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .vt-dots {
        gap: 8px;
    }

    .vt-dot {
        width: 18px;
        height: 18px;
    }

    .vt-bar-count {
        font-size: 20px;
    }

    .vt-bar-names {
        display: block;
    }

    .vt-send {
        width: auto;
        padding: 0 40px;
    }

    .vt-dialog {
        width: 560px;
        margin: auto;
        border-radius: 16px;
        box-shadow: 0 16px 32px rgba(21, 23, 26, .10);
    }

    .vt-sheet {
        padding: 36px;
    }

    .vt-page .vt-dialog h2 {
        font-size: 30px;
    }

    .vt-picklist li {
        font-size: 21px;
    }

    .vt-sheet-actions {
        gap: 10px;
        margin-top: 4px;
    }

    .vt-page #vt-rules h2 {
        font-size: 26px;
    }

    .vt-rules li {
        font-size: 18px;
    }

    .vt-done {
        gap: 24px;
        padding: 80px 32px;
    }

    .vt-done-mark {
        width: 112px;
        height: 112px;
    }

    .vt-done-mark .vt-icon {
        width: 60px;
        height: 60px;
    }

    .vt-page .vt-done h2 {
        font-size: 52px;
        line-height: 1.05;
    }

    .vt-done-lead {
        font-size: 22px;
    }

    .vt-page .vt-done-box {
        padding: 24px;
        font-size: 19px;
    }

    .vt-done .vt-btn {
        width: auto;
        height: 60px;
        padding: 0 40px;
    }
}
