.gazette-funding-widget {
    --gazette-progress: 0%;
}

.gazette-funding-widget__rail {
    position: relative;
    height: 0.875rem;
    overflow: hidden;
    border-radius: 9999px;
    background: var(--color-gray-200);
    box-shadow: inset 0 1px 2px rgba(10, 4, 0, 0.08);
}

.gazette-funding-widget__fill {
    height: 100%;
    width: var(--gazette-progress);
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--color-primary-500),
        var(--color-primary-600)
    );
    box-shadow: 0 4px 12px rgba(251, 176, 35, 0.22);
    transition: width 1050ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gazette-funding-widget__track {
    position: relative;
    padding: 0.75rem 0;
}

.gazette-funding-widget__stamp {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.gazette-funding-widget__checkpoint {
    position: absolute;
    left: clamp(1.1rem, var(--step-position), calc(100% - 1.1rem));
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.gazette-funding-widget__dot {
    display: flex;
    height: 2.15rem;
    width: 2.15rem;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(10, 4, 0, 0.16);
}

.gazette-funding-widget__checkpoint--reached .gazette-funding-widget__dot {
    background: var(--color-teal-500);
    color: #ffffff;
}

.gazette-funding-widget__checkpoint--next .gazette-funding-widget__dot {
    background: var(--color-secondary-500);
    color: #ffffff;
}

.gazette-funding-widget__checkpoint--locked .gazette-funding-widget__dot {
    background: var(--color-gray-300);
    color: var(--color-gray-700);
}

.gazette-funding-widget--pending .gazette-funding-widget__fill {
    width: 0;
}

.gazette-funding-widget--ready .gazette-funding-widget__checkpoint--next .gazette-funding-widget__dot {
    animation: gazette-next-tier-pulse 1800ms ease-out 850ms 2;
}

.gazette-campaign-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(251, 176, 35, 0.18), transparent 30%),
        linear-gradient(180deg, #f7f0e5 0%, #f3ede4 100%);
}

.gazette-paper-sheet {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 252, 250, 0.98)),
        repeating-linear-gradient(
            0deg,
            rgba(10, 4, 0, 0.015),
            rgba(10, 4, 0, 0.015) 1px,
            transparent 1px,
            transparent 18px
        );
    box-shadow:
        0 18px 45px rgba(10, 4, 0, 0.08),
        inset 0 0 0 1px rgba(10, 4, 0, 0.05);
}

.gazette-paper-sheet::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 1.25rem;
    height: 1rem;
    width: 6.5rem;
    transform: translateX(-50%) rotate(-2deg);
    border-radius: 0.2rem;
    background: linear-gradient(180deg, #cda900, #f1c615);
    box-shadow: 0 3px 10px rgba(10, 4, 0, 0.12);
}

.gazette-quote-mark {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3rem, 7vw, 4.75rem);
    line-height: 1;
    color: rgba(10, 4, 0, 0.18);
}

.gazette-campaign-kicker {
    letter-spacing: 0.12em;
}

.gazette-collage-grid {
    background-image:
        linear-gradient(rgba(10, 4, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 4, 0, 0.08) 1px, transparent 1px);
    background-size: 1rem 1rem;
}

.gazette-divider-zigzag {
    height: 0.75rem;
    width: 5rem;
    background:
        linear-gradient(135deg, transparent 0.45rem, var(--color-primary-500) 0) top left,
        linear-gradient(225deg, transparent 0.45rem, var(--color-primary-500) 0) top right,
        linear-gradient(315deg, transparent 0.45rem, var(--color-primary-500) 0) bottom right,
        linear-gradient(45deg, transparent 0.45rem, var(--color-primary-500) 0) bottom left;
    background-size: 50% 50%;
    background-repeat: repeat-x;
}

.gazette-editorial-note {
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(15, 102, 111, 0.12);
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 235, 0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(10, 4, 0, 0.012),
            rgba(10, 4, 0, 0.012) 1px,
            transparent 1px,
            transparent 18px
        );
    box-shadow: 0 10px 24px rgba(10, 4, 0, 0.05);
}

.gazette-editorial-note__lead,
.gazette-editorial-note__body {
    margin: 0;
    color: var(--color-gray-800);
}

.gazette-editorial-note__lead {
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.6;
    font-weight: 700;
}

.gazette-editorial-note__body {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--color-gray-700);
}

.gazette-form-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 244, 0.98)),
        repeating-linear-gradient(
            0deg,
            rgba(10, 4, 0, 0.012),
            rgba(10, 4, 0, 0.012) 1px,
            transparent 1px,
            transparent 18px
        );
}

.gazette-payment-intro__media {
    width: min(100%, 14rem);
}

.gazette-payment-intro__media img {
    display: block;
    width: 100%;
    height: auto;
}

.gazette-field-label {
    color: var(--color-gray-900);
    font-size: 0.95rem;
    font-weight: 700;
}

.gazette-field-step {
    color: var(--color-gray-900);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
}

.gazette-field-step__number {
    color: var(--color-teal-500);
}

.gazette-amount-input {
    appearance: textfield;
    min-height: 5rem;
}

.gazette-amount-input::-webkit-outer-spin-button,
.gazette-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gazette-amount-currency {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-900);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.gazette-help-box {
    border: 1px solid rgba(15, 102, 111, 0.12);
    background: rgba(15, 102, 111, 0.06);
}

.gazette-form-errorlist,
.gazette-form-errorlist li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gazette-form-errorlist li {
    color: #991b1b;
    font-size: 0.875rem;
    font-weight: 600;
}

@keyframes gazette-next-tier-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 100, 101, 0.34);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 100, 101, 0);
    }
    100% {
        box-shadow: 0 3px 8px rgba(10, 4, 0, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gazette-funding-widget__fill {
        transition: none;
    }

    .gazette-funding-widget--ready .gazette-funding-widget__checkpoint--next .gazette-funding-widget__dot {
        animation: none;
    }
}
