/* ===== Root tokens ===== */
:root {
  /* Palette (WP theme.json also exposes these as --wp--preset--color--*) */
  --ll-orange: #E85D2F;
  --ll-orange-deep: #C8481F;
  --ll-orange-soft: #F7B89E;
  --ll-sky: #5BC5E8;
  --ll-sky-deep: #2FA8D0;
  --ll-cream: #F4ECDD;
  --ll-cream-deep: #EADFC6;
  --ll-paper: #FBF6EC;
  --ll-ink: #141414;
  --ll-ink-soft: #2B2B2B;
  --ll-yellow: #FFD84D;
  --ll-green: #6BB36B;

  /* Fonts */
  --ll-font-display: 'Fredoka', system-ui, sans-serif;
  --ll-font-body: 'Inter', system-ui, sans-serif;
  --ll-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sticker language */
  --ll-border: 3px solid var(--ll-ink);
  --ll-radius: 14px;
  --ll-shadow-sm: 2px 2px 0 var(--ll-ink);
  --ll-shadow:    4px 4px 0 var(--ll-ink);
  --ll-shadow-lg: 6px 6px 0 var(--ll-ink);

  /* Content measures — reconciled across templates/blocks. theme.json's
     constrained contentSize (720) and wideSize (1200) match --ll-max-text
     and --ll-max-wide. */
  --ll-max-reading: 560px; /* narrow inline copy inside a card/section */
  --ll-max-text:    720px; /* default body measure (pages, articles) */
  --ll-max-content: 960px; /* content-heavy pages with breathing room */
  --ll-max-wide:   1200px; /* wide grids, card rows, full section inners */
}

/* ===== Global resets ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ll-paper);
  color: var(--ll-ink);
  font-family: var(--ll-font-body);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ll-yellow); color: var(--ll-ink); }

*:focus-visible {
  outline: 3px solid var(--ll-sky);
  outline-offset: 2px;
}

/* ===== Shadow tone system (shared across primitives) ===== */
.ll-sticker, .ll-stamp, .ll-btn {
  --ll-shadow-tone: var(--ll-ink);
}
.ll-shadow-tone-light { --ll-shadow-tone: var(--ll-cream-deep); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* ===== Style variation: core/list → is-style-ll-check ===== */

ul.is-style-ll-check {
    list-style: none;
    padding-left: 0;
}

ul.is-style-ll-check li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 10px;
    line-height: 1.55;
}

ul.is-style-ll-check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 28px;
    background-color: var(--ll-check-color, var(--ll-sky));
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 48'><path d='M 6 22 L 12 14 L 20 28 L 36 4 L 42 12 L 22 44 Z'/></svg>")
        no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 48'><path d='M 6 22 L 12 14 L 20 28 L 36 4 L 42 12 L 22 44 Z'/></svg>")
        no-repeat center / contain;
    transform: rotate(-8deg);
}

/* ===== Shared .ll-btn styles =====
 * Loaded globally so any block can use ll-btn / ll-btn-{sm,md,lg,xl} / ll-btn-arrow
 * without depending on the sticker-button block's CSS (which only loads when
 * that specific block is on the page).
 */

.ll-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    border: 3px solid var(--ll-ink);
    box-shadow: 4px 4px 0 var(--ll-shadow-tone);
    font-family: var(--ll-font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    transform: translate(0, 0) rotate(var(--tilt, -1deg));
    transition: transform 120ms, box-shadow 120ms;
    background: none;
}

.ll-btn:hover,
.ll-btn:focus-visible {
    transform: translate(2px, 2px) rotate(var(--tilt, -1deg));
    box-shadow: 2px 2px 0 var(--ll-shadow-tone);
}

.ll-btn:focus-visible {
    outline: 3px solid var(--ll-sky);
    outline-offset: 3px;
}

/* Size presets */
.ll-btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; }
.ll-btn-md { padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.ll-btn-lg { padding: 18px 34px; font-size: 20px; border-radius: 18px; }
.ll-btn-xl { padding: 22px 40px; font-size: 24px; border-radius: 22px; }

.ll-btn-arrow { width: 1em; height: 1em; stroke: currentColor; stroke-width: 3; fill: none; flex-shrink: 0; }

/* Idle nudge animation — apply via .ll-btn-nudge class */
.ll-btn.ll-btn-nudge {
    animation: idleNudge 4.5s ease-in-out infinite;
}
.ll-btn.ll-btn-nudge:hover,
.ll-btn.ll-btn-nudge:focus-visible {
    animation: none;
}

/* ===== Section blocks stack edge-to-edge =====
 * WP's constrained layout applies margin-block-start between siblings.
 * For full-bleed section blocks, that margin shows the parent's paper
 * background as a strip between sections. Zeroing margins on them.
 * Each section provides its own padding internally.
 */
.wp-block-ll-hero-manifesto,
.wp-block-ll-why-stats,
.wp-block-ll-how-steps,
.wp-block-ll-how-pact,
.wp-block-ll-map-finland,
.wp-block-ll-voices,
.wp-block-ll-faq,
.wp-block-ll-cta-final,
.ll-site-header,
.ll-site-footer,
.wp-site-blocks > .wp-block-template-part {
    margin-block: 0;
}

/* ===== Global scroll behavior (used by research-study → research-references anchor jumps) ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ===== Shared card: blog post (.ll-post) ===== */
/* Used by ll/blog-post-card and by ll/archive-filter-grid when layout=blog-post-card. */

.ll-post {
    display: block;
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ll-ink);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 160ms, box-shadow 160ms;
    max-width: 1000px;
    margin: 24px auto;
}
.ll-post:hover,
.ll-post:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--ll-ink);
}
.ll-post:focus-visible { outline: 3px solid var(--ll-sky); outline-offset: 4px; }

.ll-post__layout {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}
@media (min-width: 680px) {
    .ll-post__layout.is-image-left  { grid-template-columns: 320px 1fr; }
    .ll-post__layout.is-image-right { grid-template-columns: 1fr 320px; }
    .ll-post__layout.is-image-right .ll-post__media { order: 2; border-left: 3px solid var(--ll-ink); border-right: none; }
    .ll-post__layout.is-image-right .ll-post__body  { order: 1; }
}
@media (min-width: 1024px) {
    .ll-post__layout.is-image-left  { grid-template-columns: 400px 1fr; }
    .ll-post__layout.is-image-right { grid-template-columns: 1fr 400px; }
}

.ll-post__layout.is-no-image {
    grid-template-columns: 1fr !important;
}
.ll-post__layout.is-no-image .ll-post__media { display: none; }

.ll-post__media {
    aspect-ratio: 16 / 10;
    background: var(--ll-cream);
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--ll-ink);
    position: relative;
}
@media (min-width: 680px) {
    .ll-post__layout.is-image-left .ll-post__media  { border-bottom: none; border-right: 3px solid var(--ll-ink); aspect-ratio: auto; }
    .ll-post__layout.is-image-right .ll-post__media { border-bottom: none; aspect-ratio: auto; }
}

.ll-post__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}
@media (min-width: 680px)  { .ll-post__body { padding: 32px 28px; } }
@media (min-width: 1024px) { .ll-post__body { padding: 40px 36px; gap: 18px; } }

.ll-post__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ll-post__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--ll-orange);
    color: var(--ll-paper);
    border: 2px solid var(--ll-ink);
    border-radius: 999px;
    font-family: var(--ll-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    transform: rotate(-1deg);
}
.ll-post__category.has-sky-bg         { background: var(--ll-sky); color: var(--ll-ink); }
.ll-post__category.has-yellow-bg      { background: var(--ll-yellow); color: var(--ll-ink); }
.ll-post__category.has-green-bg       { background: var(--ll-green); color: var(--ll-ink); }
.ll-post__category.has-orange-bg      { background: var(--ll-orange); color: var(--ll-paper); }
.ll-post__category.has-orange-soft-bg { background: var(--ll-orange-soft); color: var(--ll-ink); }
.ll-post__category.has-cream-bg       { background: var(--ll-cream); color: var(--ll-ink); }
.ll-post__category.has-paper-bg       { background: var(--ll-paper); color: var(--ll-ink); }
.ll-post__category.has-ink-bg         { background: var(--ll-ink); color: var(--ll-yellow); }

.ll-post__date {
    font-family: var(--ll-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ll-ink-soft);
}

.ll-post__title {
    font-family: var(--ll-font-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ll-ink);
    margin: 0;
}
@media (min-width: 680px)  { .ll-post__title { font-size: 28px; } }
@media (min-width: 1024px) { .ll-post__title { font-size: 32px; } }

.ll-post__excerpt {
    font-family: var(--ll-font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ll-ink);
    margin: 0;
    opacity: 0.85;
}
@media (min-width: 680px) { .ll-post__excerpt { font-size: 16px; } }

.ll-post__read {
    margin-top: 4px;
    font-family: var(--ll-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ll-orange-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ll-post__read::after { content: '→'; font-weight: 700; }

.ll-post.is-compact .ll-post__title { font-size: 20px; }
@media (min-width: 680px) { .ll-post.is-compact .ll-post__title { font-size: 22px; } }
.ll-post.is-compact .ll-post__media { aspect-ratio: 4 / 3; }
@media (min-width: 680px) {
    .ll-post.is-compact .ll-post__layout.is-image-left { grid-template-columns: 220px 1fr; }
    .ll-post.is-compact .ll-post__layout.is-image-left .ll-post__media,
    .ll-post.is-compact .ll-post__layout.is-image-right .ll-post__media {
        aspect-ratio: auto;
        height: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ll-post { transition: none; }
}

/* ===== Shared card: link row (.ll-linkrow) ===== */
/* Used by ll/archive-filter-grid when layout=link-row, and by the ll/link-row
   plugin block delivered in Plan 4. */

.ll-linkrow {
    display: flex;
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ll-ink);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    max-width: 900px;
    margin: 16px auto;
    transition: transform 160ms, box-shadow 160ms;
    flex-direction: column;
}
@media (min-width: 680px) { .ll-linkrow { flex-direction: row; } }

.ll-linkrow:hover,
.ll-linkrow:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ll-ink);
}
.ll-linkrow:focus-visible { outline: 3px solid var(--ll-sky); outline-offset: 3px; }

.ll-linkrow__thumb {
    aspect-ratio: 16 / 10;
    background: var(--ll-cream);
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--ll-ink);
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 680px) {
    .ll-linkrow__thumb {
        width: 200px;
        aspect-ratio: auto;
        height: auto;
        border-bottom: none;
        border-right: 3px solid var(--ll-ink);
    }
}
@media (min-width: 1024px) { .ll-linkrow__thumb { width: 240px; } }

.ll-linkrow.no-thumb .ll-linkrow__thumb { display: none; }

.ll-linkrow__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
@media (min-width: 680px) { .ll-linkrow__body { padding: 20px 24px; } }

.ll-linkrow__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--ll-font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ll-ink-soft);
}
.ll-linkrow__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ll-orange-deep);
    font-weight: 700;
}
.ll-linkrow__source::after { content: '↗'; }

.ll-linkrow__title {
    font-family: var(--ll-font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--ll-ink);
    margin: 0;
}
@media (min-width: 680px) { .ll-linkrow__title { font-size: 22px; } }

.ll-linkrow__excerpt {
    font-family: var(--ll-font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ll-ink);
    opacity: 0.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 680px) { .ll-linkrow__excerpt { font-size: 15px; } }

.ll-linkrow.is-compact {
    padding: 14px 20px;
    flex-direction: row !important;
}
.ll-linkrow.is-compact .ll-linkrow__thumb,
.ll-linkrow.is-compact .ll-linkrow__excerpt { display: none; }
.ll-linkrow.is-compact .ll-linkrow__body { padding: 0; gap: 4px; }
.ll-linkrow.is-compact .ll-linkrow__title { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
    .ll-linkrow { transition: none; }
}

/* ===== Pledge form (lives in laitteeton-pledges plugin; also consumed by /lupaus/ handler) ===== */

.ll-pledge {
    padding: 48px 20px;
    background: var(--ll-cream);
    border-top: 3px solid var(--ll-ink);
    border-bottom: 3px solid var(--ll-ink);
}
@media (min-width: 680px)  { .ll-pledge { padding: 80px 40px; } }
@media (min-width: 1024px) { .ll-pledge { padding: 120px 80px; } }

.ll-pledge__inner { max-width: 720px; margin: 0 auto; }

.ll-pledge__hero { text-align: center; margin-bottom: 40px; }
.ll-pledge__logo-big {
    max-width: 360px; width: 100%; height: auto;
    transform: rotate(-2deg);
    filter: drop-shadow(4px 4px 0 var(--ll-ink));
    margin-bottom: 32px;
}
@media (min-width: 680px) { .ll-pledge__logo-big { max-width: 460px; margin-bottom: 40px; } }

.ll-pledge__hero-title {
    font-family: var(--ll-font-display); font-weight: 700;
    font-size: 36px; line-height: 1.05; letter-spacing: -0.02em;
    margin: 0 0 16px; color: var(--ll-ink);
}
@media (min-width: 680px) { .ll-pledge__hero-title { font-size: 52px; } }

.ll-pledge__hero-lede {
    font-family: var(--ll-font-body); font-size: 17px; line-height: 1.55;
    margin: 0 auto; max-width: 520px; color: var(--ll-ink); opacity: 0.85;
}

.ll-pledge__form {
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink); border-radius: 20px;
    box-shadow: 8px 8px 0 var(--ll-ink);
    padding: 28px 24px;
}
@media (min-width: 680px)  { .ll-pledge__form { padding: 44px 40px; } }
@media (min-width: 1024px) { .ll-pledge__form { padding: 56px 56px; } }

.ll-pledge__step-meta {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.ll-pledge__step-label {
    font-family: var(--ll-font-mono); font-size: 12px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ll-ink-soft); font-weight: 700;
    flex-shrink: 0;
}
.ll-pledge__progress {
    flex: 1; height: 6px; border-radius: 3px;
    background: var(--ll-cream-deep);
    overflow: hidden;
}
.ll-pledge__progress-bar {
    height: 100%; background: var(--ll-orange);
    border-radius: 3px;
    transition: width 360ms ease-out;
}

.ll-form-field {
    margin-bottom: 22px;
}
.ll-form-field label {
    display: block;
    font-family: var(--ll-font-display); font-weight: 600; font-size: 16px;
    color: var(--ll-ink); margin-bottom: 8px;
}
.ll-form-field__sub {
    font-family: var(--ll-font-body); font-size: 13px;
    color: var(--ll-ink-soft); margin-top: 4px; opacity: 0.8;
}
.ll-form-field__error {
    font-family: var(--ll-font-body); font-size: 13px;
    color: var(--ll-orange-deep); margin-top: 6px;
    font-weight: 600;
}
.ll-form-field input[type="text"],
.ll-form-field input[type="email"],
.ll-form-field input[type="tel"],
.ll-form-field input[type="number"],
.ll-form-field select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--ll-font-body); font-size: 16px;
    color: var(--ll-ink);
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ll-ink);
    outline: none;
    transition: box-shadow 120ms, transform 120ms;
}
.ll-form-field input:focus,
.ll-form-field select:focus {
    box-shadow: 5px 5px 0 var(--ll-orange);
    transform: translate(-2px, -2px);
}
.ll-form-field input::placeholder { color: var(--ll-ink-soft); opacity: 0.5; }

.ll-form-field__extra-link {
    margin-top: 8px;
    display: inline-block;
    font-family: var(--ll-font-mono); font-size: 12px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ll-orange-deep); text-decoration: underline;
    text-decoration-color: var(--ll-orange); text-underline-offset: 3px;
    cursor: pointer;
    background: none; border: none; padding: 0;
}
.ll-form-field__extra-link[hidden] { display: none; }

.ll-form-field__autocomplete {
    position: relative;
}
.ll-form-field__autocomplete-list {
    position: absolute; left: 0; right: 0; top: 100%;
    margin-top: 4px;
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink); border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ll-ink);
    max-height: 240px; overflow-y: auto;
    z-index: 5;
}
.ll-form-field__autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--ll-font-body); font-size: 15px;
    color: var(--ll-ink);
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.ll-form-field__autocomplete-item:last-child { border-bottom: none; }
.ll-form-field__autocomplete-item:hover,
.ll-form-field__autocomplete-item.is-active {
    background: var(--ll-cream);
}

.ll-chip-group {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.ll-chip {
    padding: 10px 14px; min-width: 48px;
    background: var(--ll-paper); color: var(--ll-ink);
    border: 3px solid var(--ll-ink); border-radius: 12px;
    box-shadow: 3px 3px 0 var(--ll-ink);
    font-family: var(--ll-font-display); font-weight: 600; font-size: 16px;
    cursor: pointer;
    transition: transform 120ms, box-shadow 120ms, background 120ms, color 120ms;
}
.ll-chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ll-ink); }
.ll-chip.is-selected {
    background: var(--ll-orange); color: var(--ll-paper);
    transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ll-ink);
}
.ll-chip:focus-visible { outline: 3px solid var(--ll-sky); outline-offset: 3px; }

.ll-checkbox {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    font-family: var(--ll-font-body); font-size: 15px; line-height: 1.5;
    color: var(--ll-ink);
}
.ll-checkbox input { display: none; }
.ll-checkbox__mark {
    flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
    background: var(--ll-paper);
    border: 3px solid var(--ll-ink); border-radius: 6px;
    box-shadow: 2px 2px 0 var(--ll-ink);
    display: flex; align-items: center; justify-content: center;
    transition: background 120ms;
}
.ll-checkbox input:checked + .ll-checkbox__mark { background: var(--ll-orange); }
.ll-checkbox input:checked + .ll-checkbox__mark::before {
    content: '✓'; color: var(--ll-paper); font-weight: 800; font-size: 16px;
}
.ll-checkbox strong { color: var(--ll-ink); }

.ll-pledge__actions {
    display: flex; flex-direction: column; gap: 10px; align-items: stretch;
    margin-top: 32px;
}
@media (min-width: 680px) {
    .ll-pledge__actions { flex-direction: row; justify-content: space-between; align-items: center; }
}

.ll-pledge__back-link {
    font-family: var(--ll-font-mono); font-size: 12px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ll-ink-soft); text-decoration: none;
    padding: 10px 0;
    font-weight: 600;
    cursor: pointer;
    background: none; border: none;
}
.ll-pledge__back-link::before { content: '← '; }

/* Success screen (used by the post-submit "check email" view AND the three /lupaus/ state templates) */
.ll-pledge__success {
    text-align: center; padding: 20px 0;
}
.ll-pledge__success-stamp {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 260px; height: 260px;
    background: var(--ll-yellow);
    border: 4px solid var(--ll-ink); border-radius: 50%;
    box-shadow: 8px 8px 0 var(--ll-ink);
    transform: rotate(-8deg);
    padding: 30px;
    margin-bottom: 32px;
    animation: bounceIn 600ms cubic-bezier(.3, 1.4, .6, 1) both;
}
@keyframes bounceIn {
    0%   { transform: rotate(-30deg) scale(0.3); opacity: 0; }
    60%  { transform: rotate(-4deg) scale(1.08); opacity: 1; }
    100% { transform: rotate(-8deg) scale(1); }
}
.ll-pledge__success-stamp svg { margin-bottom: 12px; }
.ll-pledge__success-text {
    font-family: var(--ll-font-display); font-weight: 700;
    font-size: 20px; line-height: 1.1; color: var(--ll-ink);
    text-transform: uppercase; letter-spacing: -0.01em;
}
.ll-pledge__success-title {
    font-family: var(--ll-font-display); font-weight: 700;
    font-size: 36px; margin: 0 0 14px; line-height: 1.05; color: var(--ll-ink);
}
@media (min-width: 680px) { .ll-pledge__success-title { font-size: 52px; } }
.ll-pledge__success-lede {
    font-family: var(--ll-font-body); font-size: 17px;
    max-width: 440px; margin: 0 auto 28px; color: var(--ll-ink); opacity: 0.85;
    line-height: 1.55;
}
.ll-pledge__success-share {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-top: 8px;
}

/* Background variants for the three /lupaus/ success states */
.ll-pledge.has-bg-orange { background: var(--ll-orange); }
.ll-pledge.has-bg-green  { background: var(--ll-green); }
.ll-pledge.has-bg-sky    { background: var(--ll-sky); }

/* When on colored bg, invert text colors */
.ll-pledge.has-bg-orange .ll-pledge__success-title,
.ll-pledge.has-bg-green .ll-pledge__success-title {
    color: var(--ll-paper);
    text-shadow: 3px 3px 0 var(--ll-ink);
}
.ll-pledge.has-bg-orange .ll-pledge__success-lede,
.ll-pledge.has-bg-green .ll-pledge__success-lede {
    color: var(--ll-paper);
    opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
    .ll-form-field input, .ll-chip, .ll-checkbox__mark,
    .ll-pledge__progress-bar, .ll-pledge__success-stamp { transition: none; animation: none; }
}

/* ===== Recent-signups ticker (lives in laitteeton-pledges) ===== */
.ll-ticker {
    padding: 14px 0;
    overflow: hidden;
    position: relative;
}
.ll-ticker.has-border-dashed {
    border-top: 2px dashed rgba(20, 20, 20, 0.3);
    border-bottom: 2px dashed rgba(20, 20, 20, 0.3);
}
.ll-ticker.has-border-sticker {
    border: 3px solid var(--ll-ink);
    border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ll-ink);
    background: var(--ll-cream);
    padding: 14px 0;
}
.ll-ticker-mask {
    mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.ll-ticker__track {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    animation: tickerScroll var(--ll-ticker-speed, 45s) linear infinite;
    will-change: transform;
    font-family: var(--ll-font-mono);
    font-size: 13px;
    color: var(--ll-ink);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-left: 40px;
}
.ll-ticker:hover .ll-ticker__track { animation-play-state: paused; }
.ll-ticker.speed-slow   { --ll-ticker-speed: 75s; }
.ll-ticker.speed-normal { --ll-ticker-speed: 45s; }
.ll-ticker.speed-fast   { --ll-ticker-speed: 25s; }
.ll-ticker__item {
    display: inline-flex; align-items: baseline; gap: 8px;
}
.ll-ticker__item::before {
    content: '·';
    color: var(--ll-yellow);
    font-weight: 700;
    font-size: 18px;
    margin-right: 12px;
}
.ll-ticker__item:first-child::before { display: none; }
.ll-ticker__city   { font-family: var(--ll-font-display); font-weight: 600; color: var(--ll-ink); }
.ll-ticker__detail { color: var(--ll-ink-soft); opacity: 0.85; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ll-ticker__track { animation: none; }
}

/* ===== Mobile navigation overlay padding =====
   Core's responsive container defaults to 56px 0 0 — menu items sit flush
   against the viewport edge. Add horizontal padding so they breathe. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-left: 24px;
    padding-right: 24px;
}
